I am generating a finite train of pulses using DAQmx, and I trigger these trains of pulses with a digital input. I set the task to be retriggerable to achieve this behavior.
Now I need to know exactly when a generation of these pulses has stopped. I cannot get the Is Task Done.vi or the Wait Until Done.vi to work.
The reason for "DAQmx Is Task Done.vi" and "DAQmx Wait Until Done.vi" apparently not working is that a retriggerable task is never considered done. However there are other solutions for getting a notification every time the task was triggered or to gracefully stop the task.
There are three different possible solutions in case you need a notification every time the task was executed:
If you want to gracefully stop a general output channel's task, you can set the DAQmx Trigger property Start.Retriggerable (Start:More:Retriggerable) to FALSE first and then use "DAQmx Is Task Done.vi" and/or "DAQmx Wait Until Done.vi" to determine the status of the now-finite task.
Collaborate with other users in our discussion forums
A valid service agreement may be required, and support options vary by country.