LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Using a timer to ramp up voltage in code?

I'm currently using a small VI for the Xandrex XPD power supplies, and I have to automate this program so that the voltage will ramp up, say .2 volts every 500 milliseconds to a user defined voltage (say 15Volts). While I know some basic loops can do this, I am somewhat green with LabView and any help that could be given would be much appreciated. Right now my VI can set current limits and voltages on the PSU. With that out of the way I believe there shouldn't be much more needed in the VI to create a ramp time.

I have attached a picture of my block diagram, if there is anything else that's needed I'll post it up. Thanks!
0 Kudos
Message 1 of 4
(2,953 Views)
Stephen,
 
This can be achieved pretty simply using a while loop.  I have attached some example code.  I hope this solves your issue and helps point you in the right direction.  If you feel like you need more help with LabVIEW, you can always check out the LabVIEW Introductory Course at http://zone.ni.com/devzone/cda/tut/p/id/5243.  You can also continue to ask questions here!
 
Thanks,
Stephen Meserve
National Instruments
0 Kudos
Message 2 of 4
(2,941 Views)
smeserve, I am currently running 8.0 and because of that I can't open up the file sice it was made in 8.2.1. Is there  a way around this?
0 Kudos
Message 3 of 4
(2,934 Views)
Here's the VI in 8.0 form. One thing to be aware of is that the time between steps will not be exactly 500msec because Windows is not a realtime (deterministic) operating system. Most of the time it will be very close, but if something happens that severely loads the CPU it is possible for the value to increase significantly.

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 4 of 4
(2,915 Views)