Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I set an analog output voltage on my USB-6009 to zero instantaneously?

I am using the USB-6009 and controlling the amplitude of the analog output voltage with a slider control on the front panel.  I would like to be able to use a Boolean control to set the voltage to zero instantly.  Then, ideally, by clicking the button again, the voltage would return to the value indicated by the slider control.  I haven't found a way to do this yet... is it possible?
 
Another thing I've noticed that is when the VI stops running, the output voltage retains its previous value.  Is it possible to set the properties of the output voltage such that when the stop button is pressed, the voltage goes to zero?  Would this be a better option for setting the voltage to zero than a Boolean button?
0 Kudos
Message 1 of 2
(2,845 Views)

Yes, you can control the voltage out with a Boolean. The Boolean would be wired to case statement and in the true case, you pass a 0 to the DAQmx Write. In the false case, pass the value from the slider.

When your loop finishes and before you do the DAQmx Clear Task, do a final DAQmx Write of 0.

0 Kudos
Message 2 of 2
(2,840 Views)