Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

Stop pulse generation after last item of buffer

Hi,
I am working with NI USB 6363 and DAQmx C API. My CO task periodically generates sine half periods specified by 16 items 0.0980171, 0.290285, 0.471397, 0.634393, 0.77301, 0.881921, 0.95694, 0.995185, 0.995185, 0.95694, 0.881921, 0.77301, 0.634393, 0.471397, 0.290285, 0.0980171. This task is possible to stop by clicking on a button in GUI.

 

When the stop button is pressed, the stop function of the task is called immediatelly. But in my case is very important to wait for sending all 16 items before the task can be stopped. Is there some signal or other way in the DAQmx C API which I could use to reach described functionality?

Best regards,
Vladimir

0 Kudos
Message 1 of 1
(4,793 Views)