Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Setting analog output of a 6221 board to zero after stopping a task

After generating a waveform on the AO of my 6221 board, I stop the task with the DAQmx Stop.vi. This leaves the output of the AO at whatever value it happened to be when it was stopped. However, I want the output to go to zero when I am not using the board anymore. To accomplish this, I put in a DAQmx Write.vi with a waveform that is at zero, started it with DAQmx Start.vi, and finally ran DAQmx Stop.vi again. While this second waveform runs, the output is at zero. However, when it stops, the output gets shifted to a non-zero output. How can I reset the output?

Thanks
0 Kudos
Message 1 of 2
(2,598 Views)
Hello,
 
It looks like you are trying to set the output to zero using two different tasks. It might be better to set it to zero right after the while loop using the same task. If you look at this other post, that might help you out. Specifically, please take a look at reply 4, where the VI is attached. It seems like that is what you are trying to accomplish.
 
Thank you,
 
Raajit
 
 
Raajit L
National Instruments
Message 2 of 2
(2,574 Views)