Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

How to linearly ramp output voltage from 0 to the limit?

Hello,

 

I posted a few weeks back asking for help with setting up Labview with a power supply and have just now actually gotten it (yay large companies).

 

I am fairly new to Labview, and have gotten the drivers for my Agilen N6705B analyzer and can control output voltage. I have tried to linearly ramp output the voltage by the following method (I'm assuming the iteration is linear):

 

- While the current voltage is less than the limit, keep increasing voltage.Inside the while loop, I have a sub-VI that outputs the max output voltage of the system. I then compare this to the iteration value.

- The main issue is the while loop area. I think that I can leave all sub -vi's after the while loop intact as by that time, the voltage is already set.

 

But I fear this is where I am confuses. In a while loop, what is the value of the iteration 'i' ? Sorry if this sounds dumb, but I've been stuck on this for a while.

 

I have attached the VI for reference. Thanks for any help in advance.

0 Kudos
Message 1 of 2
(3,637 Views)

Your VI is not ramping anything. The inner while loop is nonsense. Go to Help and enable Context Help. Then move your mouse over the while loop. Click on Detailed Help in the help window to bring up the help for a while loop. That should explain what the iteration terminal is.

 

p.s. There is the Ramp function that you can use to create an array of voltage steps. I would wire this to a for loop with the set voltage function in it. A single comparision to the max voltage of the supply can terminate the loop early if you wih. Repeating each and every setup function inside of a while loop (your outer loop) is silly.

0 Kudos
Message 2 of 2
(3,616 Views)