LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

DAQmx: stop a task during finite samples data generation

Dear all,

 

I'm generating data on an analog output.I create a waveform and then the data on the analog output, start the task and Wait until the generation is completed.

The problem is that I need an emergency stop if, for example, I need to stop the generation of millions of samples if my waveform is wrong or if Something appends outside.

Could you help me please?

 

Stop_OutputGeneration.png

Sébastien

 

0 Kudos
Message 1 of 2
(1,987 Views)

Well, if "Wait Until Done" is a problem, don't use it.  Instead you could use the query "Is Task Done" in a loop, preferably with idling delay of maybe 25-100 msec.   Then you can terminate the loop on either the done boolean output or whatever your "emergency stop" condition might be.

 

 

-Kevin P

ALERT! LabVIEW's subscription-only policy came to an end (finally!). Unfortunately, pricing favors the captured and committed over new adopters -- so tread carefully.
0 Kudos
Message 2 of 2
(1,957 Views)