Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

how to force an analog output to zero when press stop (via daqmx)

hi

i'm trying to make a simple control action on a dc motor using a usb6259: generate a voltage output and read the position.

Now, i'd like that the signal output goes to zero when i press the stop button..any suggestion?

 

 

0 Kudos
Message 1 of 4
(3,434 Views)

Just do a DAQmx Write with a 0 value before you stop the task.

0 Kudos
Message 2 of 4
(3,419 Views)

i've done it before open this thread but it doesn't works..

now i reach my objective stopping both task before write to 0

 

thanx

 

0 Kudos
Message 3 of 4
(3,415 Views)

You could use a structure to events in order to set the output to zero when you press the stop button.
I am attaching an example that might be useful

I hope it is useful

Sabrina Nicosia

0 Kudos
Message 4 of 4
(3,368 Views)