Stop Trigger for wave generation?

Hello-
I'm using NIDAQmx Tools for some custom control routines. I see the option of a start trigger for wave generation commands, but, is there way to implement a stop trigger for wave generation? The only way I see it happening is by using a user function to read the input used for the trigger in a loop and send the stop command when the level is crossed, but that is limited by how fast the loop can run. Thanks.
I don't know if it is precisely what you want, but what you describe is similar to what NI calls a "pause trigger". See the documentation of DAQmx_Scan /PAUS flag. A pause trigger allows you to gate the waveform generation on and off. When the pause trigger is off, the analog output maintains the output voltage at the level is was at; if you turn the pause trigger back on, generation resumes where it left off.

John Weeks
WaveMetrics, Inc.
support@wavemetrics.com