LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Why does the VI continue to execute after it has stopped?

I am using labview 6.0.2, with the shipping Function Generator VI. When I output lets say a sine wave to my oscilloscope, via my NI PCI-MIO-16XE-50 DAQ card, and then stop the VI, the signal continues even though the VI has stopped running. The only way for me to stop the signal is by closing Labview altogether. Is there someway to set the output voltage and every other parameter(ie. offset, frequency...) to 0, when the VI has stopped running???
0 Kudos
Message 1 of 3
(2,578 Views)
The reason is that LabVIEW makes a call to NI-DAQ, which starts the output on the card. The timing and buffer for the output is all on the card, so even if labview is stopped, the card continues to output.

When stop is pressed, you should run a VI in the DAQ palette which resets the board, and will stop all outputs and acquisitions.

Mark
0 Kudos
Message 2 of 3
(2,578 Views)
Thanks a lot for solving the problem. I used a VI that reset the board just like you said.
0 Kudos
Message 3 of 3
(2,578 Views)