DAQ Assistant in subvi not updating output to DAQ board with each call...

Hi All,
I am calling a simple subvi that creates a user-defined number of pulses with "Square Waveform.vi."  This square wave (with the given total number of pulses) is then used as an input to a DAQ Assistant controlling an analog output signal on a NI USB-6259 DAQ board.  I am using Labview 8.5 right now.
However, each time I call this subvi from my main program, the output I measure from the DAQ board is identical to whatever I set in the first call (i.e., if i created two pulses in the first call, I get two pulses on every call, regardless of the input I feed to the subvi).  The multiple calls to this subvi are made in sequential frames in a stacked sequence.  I believe stacked sequences are frowned upon by good labview people, right?  But putting that aside for the moment...
The "#-of-pulses" input I give to the subvi is updated in a subvi front panel number indicator and a graph of this waveform.  Just not in the real output I measure from the board.  Why is the hardware output being asserted (with the original input value) before this new number can reach the DAQ Assistant?
The sloppy fix to this is just to put that square wave creation code in my main program each time I need it.  This does work and fixes my problem.  However, I would like to use subvis to keep things clean.
I am not a good Labview programmer, but have used this software for a number of projects and am stumped by this.  Any ideas?
Thanks,
John

Hi John,
I am running your code over here and seeing
the same results.  I believe the problem is that the DAQ Assistant is
being called inside a loop (really a sequence structure, but
nonetheless more than once).  Sometimes it is difficult to troubleshoot
the DAQ Assistant in cases like this--it is trying to be "smart" and
seems to be avoiding re-configuring its parameters inside the loop. 
This is intended to improve loop speed for when customers are
performing continuous operations.  In this case, it is performing a
finite generation, and the number of samples generated appears to carry
over from one loop iteration to the other.
It sounds
like you have discovered one workaround for this already: putting a DAQ
Assistant in each frame of the main VI.  Two other options that come to mind are:
Use the lower-level DAQmx functions inside
the sub VI.  Here you will have explicit control over when the task is
created and cleared, and when parameters are set.  You can find
examples of how to use the DAQmx API in the Example Finder at:
Help >> Find Examples... >> Hardware Input and Output >> DAQmx
Write
a consistent amount of samples to the DAQ assistant by "zero-padding"
your signal.  For example, instead of writing [10, 1010], try writing
[1000, 1010].  In this case, it wouldn't need to reconfigure the number
of samples to generate.
One lesson to take away here is
that the DAQ Assistant is good for basic functionality, but for more
advanced control over the execution and configuration of your task you
should learn to use the lower-level DAQmx functions.  In this case it
sounds like the problem is actually a bug.  I'll file a bug report, since the DAQ
Assistant is not checking for waveform timing changes even though your
timing is set to Use
Waveform Timing.
Thank you for pointing out this odd
behavior--out of curiosity which version of DAQmx are you using? 
-John
John Passiak

Similar Messages

  • How can I link my daqmx code to another daq assistant to hear my audio output?

    Hi,
    I got a burning question about my school project. I need to use labview and my NI-mydaq to test the difference between
    various samples rates and bit depths.
    I linked an mp3 file to the AUDIO IN of my NI-mydaq and created a way to be able of switching sample rate while running my program.
    Now I would like to link my program inside the NI-mydaq to my AUDIO OUT...
    So...  I generated daqmx code out of an input daq assistant, how can I link my daqmx code to another daq assistant to hear my audio output?

    Hello Fontys_Student...,
    I am not sure I properly understand your question.
    You want to, first, acquire a signal from the AUDIO IN input, second, do some processing on the acquired signal and, third, generate this processed signal at the AUDIO OUT, right? What is the part causing some troubles?
    If you already have the signal acquired and processed, you can simply wire this processed signal to the "data" input of a second DAQ Assistant, right?
    Did you already have a look at the myDAQ User Guide (http://www.ni.com/pdf/manuals/373060e.pdf)? On page 32-35, there is an example showing what you need I suppose. 
    Cédric | NI Belgium

  • I'm working on DC Motor control using DAQ. There is sufficient voltage output from DAQ but not current. What should i do so as to drive the motor

    I'm working on DC Motor control using DAQ. There is sufficient voltage output from DAQ but not current. What should i do so as to drive the motor. Could you suggest me appropriate driver IC using which this problem can be solved.
    Saravanan.T

    You really should use a DC motor controller to control a DC motor, look at the 754410 IC for a good example. You should be able to interface these to most DAQ devices.
    Alan

  • PLEASE HELP!!! my ipod will not updat because of something up with itunes.

    My ipod nano will not update because of some reason with itunes it says when i plug it in that it is unable to update my ipod because all of the playlists selected for updating do not longer excist. and when i manually press upload it say that the disk could not be writen to or from.
    so please help me any suggestions would be very appreciated.
    thx

    Welcome to Apple Discussions!
    See this...
    hudgie: iPod cannot be updated because one or more playlist...
    btabz

  • I updated to FoxFire 7 today and then read an email from my school, they said do not update to 7 - it interfears with class email, how do I un-update, please.

    I updated to FoxFire 7 today and then read an email from my school, they said do not update to 7 - it interfears with class email, how do I un-update, please.

    See https://support.mozilla.com/en-US/kb/Installing%20a%20previous%20version%20of%20Firefox

  • Tried updating my itunes about a month ago, it would not update properly and left me with a notification saying "i tunes was not installed properly, please reinstall itunes" i've uninstalled and reinstalled a few times and still nothing.

    Tried updating my itunes about a month ago, it would not update properly and left me with a notification saying "i tunes was not installed properly, please reinstall itunes" i've uninstalled and reinstalled a few times and still nothing.
    i might need walked through on a few things if they are too complicated.

    Have you:
    - Restore from backup. See:                                                
    iOS: Back up and restore your iOS device with iCloud or iTunes
      - Restore to factory settings/new iOS device.            
    If a PC
    Removing and Reinstalling iTunes, QuickTime, and other software components for Windows XP
    or              
    Removing and reinstalling iTunes and other software components for Windows Vista, Windows 7, or Windows 8

  • Some sites, IRS partcularly, show a form but do not update in Firefox but work with IE any fix?

    When trying to use Firefox to complete lessons on the IRS Practice Lab site, numbers entered on the screen do not update the server application. IE works so it appears that the site is not accepting data from the Firefox screen. Is there a way to ensure that Firefox is compatible with sites that seem to be designed only for IE?

    It is not a pdf. The initial page is https://www.linklearncertification.com/d/. On the right side of the page is a "Practice Lab" link. At this moment it seems to being maintained so is not accessible at all. It should be back up by Monday.
    The problem is that when entries are made on a page they do not actually update the database. The screen "blinks" like something is happening but the return is unchanged.
    I have IE but people using an Apple and Firefox cannot use the site with firefox.

  • Driver Scanner will not update, there is a problem with proxy sttings and the firewall

    Driver Scanner will not update. It says there is a problem in connecting to the Uniblue browser.
    Also there is a problem with the proxy set up and the firewall.

    With that one, let's try getting an installer log to the Apple engineers for a look.
    1. Open a command prompt window. (Start menu -> Run. Type in "cmd". Hit return.)
    2. Drag and drop iTunesSetup.exe onto the window so that the full pathname of the file is at the command line prompt.
    3. Type in a space, then the following line:
    /l*v C:\log.txt
    4. Hit return.
    5. The installer will create a log file:
    C:\log.txt
    Find that file and send it as an attachment to this email address: [email protected]
    in the email to Roy, be sure to include the following information:
    - A link to the thread on Apple Discussions where the issue is being discussed
    - The username you are using in the thread
    - The version of iTunes you are using or trying to use
    - the version of Windows you are using (mention service packs)
    - A concise description of the issue you are seeing
    - The exact text of the error message you are seeing

  • Do not update App Store purchased apps with an updating application!

    Very important piece of info that I have learned through "trial" and error.
    OK here is the deal...
    If you purchase an application at the app store make sure that you never update any of those apps with a 3rd party updater (i.e. Mac Update Desktop)
    I purchased DVDpedia from the app store and everything was working without any problems. A few days later I launched Mac Update Desktop and DVDpedia was in the list of applications that have an available update.
    I selected the app and went ahead with the updating. Once the update was complete and I launched DVDpedia it had lost the connection to The App Store. It was now asking for a serial number to activate it. I am guessing that the new .app file or the pref file was changed to the version that is installed when you purchase the application outside of the App Store.
    Long story shorter... I deleted the .app file and the pref file and had The App Store install it again and everything was back to normal.
    But I just wanted to share this info with everyone so that you know not to update any apps from the App Store in any place other than the App Store.

    Thanks for the heads up I have not made any purchases yet (new machine last week) but will remember this post.

  • Can not update exchange due to error with Active directory

    Error:
    The following error was generated when "$error.Clear();
     Install-CannedRbacRoles -InvocationMode $RoleInstallationMode -DomainController $RoleDomainController
    " was run: "Active Directory operation failed . This error is not retriable. Additional information: Access is denied.
    Active directory response: 00000005: SecErr: DSID-031520B2, problem 4003 (INSUFF_ACCESS_RIGHTS), data 0
    I have tried everything I can find on the web. any assistance would be appreciated. Thank you.

    I see now that you have logged into domain
    Another thing, check if Allowed Inheritance is blocked on this account (bmoore)?
    Cheers,
    Gulab Prasad
    Technology Consultant
    Blog:
    http://www.exchangeranger.com    Twitter:
      LinkedIn:
       Check out CodeTwo’s tools for Exchange admins
    Note: Posts are provided “AS IS” without warranty of any kind, either expressed or implied, including but not limited to the implied warranties of merchantability and/or fitness for a particular purpose.

  • PO rejection in SNC does not update the items in MM with ORDRSP

    Hello everybody
    I have got a problem with the integration of ORDRSP Idocs in MM (ECC6 - SAP_APPL 604) in the case of a PO rejection in SNC (7-SP7).
    When rejecting a PO from SNC, the ORDRSP idoc is not integrated in MM
    and is marked with an error message refering to a quantity difference
    between the Idoc and the PO : "Acknowledgment for PO item 7621019091
    00010 contains quantity variance"
    Associated to the ORDRSP Idocs we are using the process code ORDR, and
    I have checked that if we use the ORDR_SUS process, the integration
    works well and the items are rejected in MM !
    But I haven't found much informations about the differences between
    ORDR and ORDR_SUS.
    Is there a way to make the PO rejection works with the ORDR process or
    could you tell me about the side effects of using ORDR_SUS in place of
    ORDR ?
    Vincent

    Hello Bharath,
    Yes we have the same problem on the Idoc status but didn't fix it.
    Here is the SAP answer about the rejection process :
    With regard to the SNC->ERP integration of the rejection, the process
    code in ERP inbound processing has to be set to ORDR_SUS (-> transactionWE20). Otherwise the rejection will not set the deletion indicator in
    ERP PO and as a result the approval process is not triggered when the
    supplier rejects a PO item.
    Kindly refer to the word attachment showing the WE20 screenshot.
    The purchase order can transfer the rejection information to the
    customer back-end system. The ReplenishmentOrderConfirmation XML messagecontains a corresponding AcceptanceStatusCode. However, to integrate therejection of a purchase order item with the customer back-end system
    using IDocs, you must implement SAP Note 962849, so that the deletion
    indicator is set on the purchase order item in SAP ERP.
    Kindly implement the following note as well:
    1458562 - ROC_Out not sent if the supplier rejects a PO item
    With the implementation of the this note, the R/3 backend system should
    get updated once the supplier 'Rejects' the item.
    Kind regards,
    Vincent

  • Music Store not updating podcasts, and what's with relevance?

    First off, I'm frustrated as all ****. I went to the iTunes Store support site and apparently you can only get help on issues they allow. . . there's not a readily apparent help email or phone number, and none of their chosen topics answer my questions. . .as if no one could EVER have an issue outside of those few they choose. Very closed-minded.
    Okay, rant over.
    Now, I've updated a second episode of my podcast, and iTunes will even download it in my podcast subsription library, but when I click on my 'cast in the iTMS, it's only showing the first episode in the list below. Is this possibly an XML issue, or is the store that slow?
    my xml file is at:
    http://www.dc-kingdom.com/STC/stc.xml
    Also, the relevance is very odd. They have me listed at a pretty low relevance for the very subject my podcast is completely dedicated to. How is relevance determined, and can it change?

    Never mind: The next time I opened iTunes, I was prompted for the Air America login just like I expected. That doesn't explain why it didn't work the other night, so I guess my question wasn't really answered... but apparently my problem is solved anyway.
    iMac 800 MHz   Mac OS X (10.3.9)  

  • PO rejection in SNC does not update the items in MM with ORDR

    Hi experts,
    I have got a problem with the integration of ORDRSP Idocs in MM (ECC6 - SAP_APPL 604) in the case of a PO rejection in SNC (7-SP7).
    The ORDRSP is not integrated in MM and is marked with an error message refering to a quantity difference between the Idoc and the PO.
    Associated to the ORDRSP Idocs we are using the process code ORDR, and I have checked that if we use the ORDR_SUS process, the integration works well and the items are rejected in MM !
    But I haven't found much informations about the differences between ORDR and ORDR_SUS.
    Could anyone tells me about the side effects of using ORDR_SUS in place of ORDR ? Or if there is a way to make the PO rejection works with the ORDR process ?
    Thx.
    Vincent

    Hello Bharath,
    Yes we have the same problem on the Idoc status but didn't fix it.
    Here is the SAP answer about the rejection process :
    With regard to the SNC->ERP integration of the rejection, the process
    code in ERP inbound processing has to be set to ORDR_SUS (-> transactionWE20). Otherwise the rejection will not set the deletion indicator in
    ERP PO and as a result the approval process is not triggered when the
    supplier rejects a PO item.
    Kindly refer to the word attachment showing the WE20 screenshot.
    The purchase order can transfer the rejection information to the
    customer back-end system. The ReplenishmentOrderConfirmation XML messagecontains a corresponding AcceptanceStatusCode. However, to integrate therejection of a purchase order item with the customer back-end system
    using IDocs, you must implement SAP Note 962849, so that the deletion
    indicator is set on the purchase order item in SAP ERP.
    Kindly implement the following note as well:
    1458562 - ROC_Out not sent if the supplier rejects a PO item
    With the implementation of the this note, the R/3 backend system should
    get updated once the supplier 'Rejects' the item.
    Kind regards,
    Vincent

  • Updated playlist from my Mac will not update on my new iPad with match. Tried restart. Failed. Now what?

    Can I force an update? Are there other solutions?

    Hey there rmflint,
    It sounds like you are wanting to update the Apps that were synced over from your computer to your new iPhone 5s. If you are clicking Updates in the App Store in the bottom right corner, would you mind clarifying what happens when you are trying to update them? 
    App Store at a glance
    http://help.apple.com/iphone/7/#/iph3dfd8c19
    Thank you for using Apple Support Communities.
    Take care,
    Sterling

  • Why can I not update to the iOS 5 with my 3rd generation 32GB I Pod Touch?

    When I try and update I get an error message -43.   I have software version 4.3.5.  Hope someone has an answer for me.

    Load this map and save it on your Home Screen
    https://maps.google.com/

Maybe you are looking for

  • How to find the user who did the personalization?

    Hi All, Is there a way to find out which user has done personalizations in a given OA page? For e.g. if a user has done personalization for hiding a text bean in a page, I want to find out that user's name by passing the page name to a script? Even i

  • Can't change typing direction using ctrl+shift in Gmail

    Using firefox 6, in Gmail, I can't change text direction while typing using Ctrl+shift combination. The direction arrows in the email editor are working, just the keyboard shortcut don't. Needles to say it works in other browsers.

  • Search option in explorer

    Hi, I was trying to search for a report in explorer using the search option. For example : In the search I gave crm thenn it should show up all the reports that contains thevalue crm, the search option works fine in development system but when I try

  • Audit tool which generates Users, Roles, Auth objects, and Values

    Hi, I have a list regarding authorization provided by auditors. Here I want to know how the auditors generated the list. Do you know the transaction code or the program ID.....? Probably the data in the list was extracted from our system, and some da

  • Changing the scale of a eprint job

    Is it possible to change the setting for the scale of an eprint job?  I need to print something to be 110% to enlarge it for our clients.  Thank you.