LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Residual voltage on ao channel

Hi there.
How can I remove the residual voltage on my Ao voltage channel?
I'm using the DAQ assistant to generate a voltage to my motor. When the vi stops running, I expect the channel to also stop generating the voltage.
However, it appears that the voltage still remains on the channel.
How can I remove this residual voltage on the channel?
Thanks.

Regards,
CP
0 Kudos
Message 1 of 9
(3,286 Views)

After the loop exits, write a zero to the AO line before stopping your VI. Or arrange the logic so that when the loop is about to stop, the last write sets the voltage to zero. The DAQ device does not know what you want or when you have stopped, so you need to explicitly do that last write.

 

Lynn

0 Kudos
Message 2 of 9
(3,274 Views)

thanks for the help lynn. appreciate it 🙂

0 Kudos
Message 3 of 9
(3,257 Views)
Hey, could you explain more in detail how to do that? Im having the same trouble.
Thanks
0 Kudos
Message 4 of 9
(3,212 Views)

What part did you not understand?  Detaile, specific questions get better answers.

 

One brute force method is to place another DAQ Write with a value of zero as the last thing which executes before clearing the task.  Depending on the architecture of your program there may be more effective ways.

 

Please be specific about what you have tried, what is working, waht is not working, and what actually happens with the part which is not working.  Other people will not have your hardware, so posting your VI with typical data saved as default is helpful.

 

Lynn

0 Kudos
Message 5 of 9
(3,207 Views)

Im having the same problem as in that my DAQ still has residual voltage after i press the stop button on my labview program( its attached). Im trying to control a 3 phase motor using a Yaskawa G7 drive. The only way for me to stop the motor is to set the voltage to 0 but i want the stop button to do that. If you could explain me how to do that id really appreciate it or if you could provide with a sample VI even better since Im not that experienced in the terminology when it comes to labview. Thanks for your quick respose.

0 Kudos
Message 6 of 9
(3,183 Views)

You need to send a zero voltage to the motor drive after the loop stops.  The easiest way to do that might be to place another copy of the Voltage Generator Express VI after the loop.  Wire the error out from the loop to the error in of the VI and then pass the error out from the VI to the Error Handler. Wire a zero constant to the data input of the Voltage Generator.

 

I dont have DAQmx so I cannot easily modify your VI for you.

 

Lynn

0 Kudos
Message 7 of 9
(3,176 Views)

At the least, consider using an event structure.

 

Better yet is to consider an event driven state machine.

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 8 of 9
(3,175 Views)
Thanks for you help lynn. It worked
0 Kudos
Message 9 of 9
(3,170 Views)