02-19-2010 12:34 PM
Solved! Go to Solution.
02-19-2010 12:38 PM
02-19-2010 12:52 PM
02-19-2010 01:12 PM
02-19-2010 01:44 PM
I wired it without DAQ Assistant and everything works as expected. Thanks for all your help. Just curious now as to why DAQ Assistant doesn't work right.
Thanks again!
02-23-2010 10:20 AM
Hi Jack,
After looking at your code I just want to clarify what you were seeing with the DAQ Assistant. You cannot change the sampling rate or number of samples dynamically while your code is running due to some of the caveats of the DAQ Assistant. This is explained in a knolwledgebase here and has an example of how to get the desired functionality with the DAQmx VIs.
However, you should be able to change the rate and number of samples before you run your VI. These values will then stick for the entire duration of the execution. If you completely stop the VI (using your End Program button) you should be able to change the values and start the VI again with new values. I downloaded your VI and removed the right half which deals with writing to a file, and everything worked as expected.