LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Simple Advice

Hi

I am very new to labview and currently relying on exsisting drivers. I have connected a DC PSU via GPIB -USB-HS and am looking to solely write information ( currents and voltages) from labview to the unit. The driver I downloaded simply allows current or voltage selection and transmits the set values upon pressing the run button. I was hoping to modify the driver to allow me to output a range of currents or voltages over a pre defined time, say output 1v for 20 seconds then 1.5v for 20 seconds etc, during one cycle without having to manually change the labview values and re-running the program each time.

Any advice would be much appreciated I have included a copy of the driver I am using.

Regards

Marc
0 Kudos
Message 1 of 4
(2,737 Views)
Good Afternoon Marc,
Unfortunately the VI you sent had none of the drivers attached, but what you ask is fairly easy. If you put your "Send" sub-vi (the middle one of the three I think, hard to tell without them attached!) into either a for loop or a while loop and then write some code to increment the voltage message while it loops, this should work. You will want to have limits, and the step timing can be done in a number of ways, the simplest (not necessarily the best) is to put a timer function in the loop with either a control on the front panel to allow you to set/vary the time.

If you perform a "Save with options" and select the Development Distribution we should get all the necessary sub-vi's to look at your problem.


Putnam Monroe
Certified LabVIEW Developer
Putnam
Certified LabVIEW Developer

Senior Test Engineer North Shore Technology, Inc.
Currently using LV 2012-LabVIEW 2018, RT8.5


LabVIEW Champion



0 Kudos
Message 2 of 4
(2,729 Views)
Hi,

Thanks for the help, I have now attached the file correctly as requested
0 Kudos
Message 3 of 4
(2,724 Views)
Here's a modified version that does what you want. It's just a cluster array with a voltage set point and duration.
Message 4 of 4
(2,682 Views)