07-15-2009 08:03 PM
Hi,
I'm doing some AO/DO using a couple of PXI boards, including a PXI-6221 M series. I'm wondering if it possible to progammatically change the sample rate at some point in time.
After a certain time my program enters a low-maintenance mode, and it needs to go from very fast output rates to just maintaining some default values. I figured the best way to do this would be to change the sample rate to very low so the demand on the computer goes down, yet the default waveforms are maintained.
Is there a way to do this? If not, might there be another way to accomplish my objective? I was also thinking of starting another task, which outputs to the same channels at a slower rate, at the exact time the first task finishes. However, this would have to occur at the exact time the first task finishes; I can't wait around for the other task to be cleared, the new task to be started, etc.
Thanks a lot for any replies.
Solved! Go to Solution.
07-16-2009 05:28 PM
Djaunl,
I think what you might want is non-Regeneration.
Try the example Cont Gen Voltage Wfm-Int Clk-Non Regeneration.vi found at Hardware Input&Output>>DAQmx>>Voltage.
07-17-2009 03:54 PM
Hi Jason,
Thanks for the reply. I was already using non-regeneration; I just wasn't aware that I could change the sample rate with the DAQmx Timing Property Node after the task was started.
Thanks!
Dan
07-21-2009 09:40 AM
Hi Dan,
Using a property node, you can change the AO sample clock rate while your program is running.