LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

i would like to know how to get labview to take a multiple reading with differant voltages?

trying to write a program with labview 6i. i have a vi that i can use to apply a voltage and take a reading, but i want to be able to sweep through voltages and take all the reading.
0 Kudos
Message 1 of 6
(2,932 Views)
You use either a for or while loop. You can do it either with an array of steps or define the number of steps, step size, and initial value.
0 Kudos
Message 2 of 6
(2,932 Views)
i tried the for loop with an array of of values, but but the step increment is nonadjustable. i need to step the voltages .2,.4,.6,.8,1.0,1.2,1.4,1.6,1.8,2.0,2.2,2.4,2.6,2.8,3.0,4.0,5.0,6.0,7.0,8.0,9.0,10.0, somewhat like that. how would you do something like that.
0 Kudos
Message 3 of 6
(2,932 Views)
> i tried the for loop with an array of of values, but but the step
> increment is nonadjustable. i need to step the voltages
> 2,.4,.6,.8,1.0,1.2,1.4,1.6,1.8,2.0,2.2,2.4,2.6,2.8,3.0,4.0,5.0,6.0,7.0,8.0,9.0,10.0,
> somewhat like that. how would you do something like that.

If you are trying to create a linear ramp, there are a couple easy ways
to do it. In the analysis palette under signal generation there will be
a ramp generation VI. You pass in the parameters and it will return an
array of values.

Or you can use a For loop. As you mention, i always counts by one as an
integer, but you can multiple it by your step size and add to the first
point and you have your ramp. Even better, once you are happy with it,
Select it and make a
subVI using Edit>>Create SubVI and it will shrink
to just an icon that you can use wherever you need this.

Greg McKaskle
0 Kudos
Message 4 of 6
(2,932 Views)
I am unclear from your question what you want to do. Contrary to the other posters, I read your question as wanting to do data acquisition. If I am right, consider posting to the DAQ forum. http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101&RPAGEID=2&UCATEGORY_0=_12&UCATEGORY_S=0
0 Kudos
Message 5 of 6
(2,932 Views)
it has some data acquistion, but i'm not using a daq board. Just a gpib board. i have a meter and i want to tell it to source a voltage take a reading then display it, as soon asit's done that i want it to chenge the source voltage give me another reading and so on. an array of constants would work great, but i can't do the increments that i need.
0 Kudos
Message 6 of 6
(2,932 Views)