Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Can I retrigger a finite analog output without stopping and restarting the task?

I am trying to generate an analog output of a finite number of samples from a PCI-6713 card each time the card is triggered. I am currently accomplishing this by putting the "DAQmx Start Task", "DAQmx Wait Until Done", and "DAQmx Stop Task" in a while loop:



This code works at trigger rates of 50Hz (red is the triggers, blue is the analog output):



 but begins to fail at faster trigger rates, such as 170 Hz:



Is there any way I can let the PCI-6713 card re-trigger and output again without relying on software to stop and re-start the task? Otherwise, is there any way to optimize the LabVIEW code so that the card can re-trigger faster?

Thanks,

John Bosshard
0 Kudos
Message 1 of 3
(3,586 Views)
Hi JBoss,

http://zone.ni.com/devzone/cda/epd/p/id/4787
Here is a great dev zone article on how to accomplish what you want.  The short of it is that you can use the counters on your device to accomplish the behavior you want!
------
Zach Hindes
NI R&D
0 Kudos
Message 2 of 3
(3,562 Views)
This accomplished exactly what I wanted. Thanks much!!!

John
0 Kudos
Message 3 of 3
(3,552 Views)