Benchtop Measurement and Test
Distributed Measurement and Control
Systems Engineering Software
Perspectives showcases how NI sees what’s next in the world of test and technology.
You can request repair, RMA, schedule calibration, or get technical support. A valid service agreement may be required.
Provides support for NI data acquisition and signal conditioning devices.
Provides support for Ethernet, GPIB, serial, USB, and other types of instruments.
Provides support for NI GPIB controllers and NI embedded controllers with GPIB ports.
I'd like to know if a DAQmx Task has been triggered. Perhaps via task property?
In addition to a property node that can be queried, it'd also be very helpful to add DAQmx Event support for the status of the trigger.
Edge or threshold based triggers would latch their status until queried via property node. For retriggered tasks, the first property node query returning True would then reset the status back to False. (Analogous to the counter property for querying whether terminal count has been reached.)
Each edge trigger would produce one DAQmx Event per trigger edge. So there'd be only one unless the task is retriggerable.
Level or state based triggers (such as the pause trigger) would not latch the property node value, they would return the instantaneous status at the time of query.
Each level trigger would produce a DAQmx event when transitioning into the "trigger active" state. For a digital pause trigger set to pause while high, the event would occur on every rising edge of the trigger signal.
I did find that this seems to work. The "AvailSampPerChan" is 0 until a trigger has happened. Then it starts counting up as data is collected. So this just asks if it is greater than 0 indicating a trigger event and then waits for the task to complete. It does assume you will never have a task in excess of 5 min. Nothing I do should ever be that long. You can specify -1 for indefinite, but that seems dangerous.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
What do you need our team of experts to assist you with?
We'll be in touch soon!