Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

analog output keeping value after program

Solved!
Go to solution

I am using a USB 6001 to output a simple analog voltage. Right now I am still in the experimenting stage to see how to control my voltage when I noticed that after I end my program, the DAQ is still outputing the last analog value.

Attached is my VI. I am using the stop and clear commands at the end of the program so I do not understand why it continues to keep the latest value. I used a break point so I know the program is getting to the stop and clear commands.

 

How do I make the outputs return to 0 when I end the program, assuming there is a way other than writing 0 at the end of the program.

 

I did not find related articles but if there are please reply with a link.

Thank you very much for any assistance.

Tommy

0 Kudos
Message 1 of 4
(4,201 Views)
Solution
Accepted by topic author TIcon
The DAQ device is supposed to retain the last value so writing a 0 before clearing the task is the correct method.
Message 2 of 4
(4,189 Views)

I was hoping for a way to reset the entire device to zero rather than having to change each output but at least now I know. 

Thank you Dennis.

0 Kudos
Message 3 of 4
(4,149 Views)
There is a reset function but since you can write to all channels with a single DAQmx Write, I prefer to do that. It's faster in my experience.
Message 4 of 4
(4,142 Views)