ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Local/Global/something else?

This question quite rightly shouts �beginner� (but we have all got to start somewhere)

Background info � (Using LCR 4284) trying to create a stepped voltage using just the DC source. So inputs accordingly are start voltage, step voltage, hold period and stop voltage.

Obviously take start voltage, add the step voltage hold for a period of time then increment again.

My problem is with the �new voltage� typically I would have just created a loop based loosely on the pseudo code below

Start voltage + step voltage = x
If ( x does not = stop voltage) then
x + step voltage
hold for period of time

else stop

tried looking at local/global variables to create a variable (x) but nothing seemed to operate in the way I expected it
.

Or would a shift register be better?

Well thank you for any time you spend answering this query

David Green
0 Kudos
Message 1 of 5
(3,097 Views)
Try this. It Helps?

ian"
Ian F
Since LabVIEW 5.1... 7.1.1... 2009, 2010, 2014
依恩与LabVIEW
LVVILIB.blogspot.com
Message 2 of 5
(3,097 Views)
the attatchment looks as though it is the solution to my problem and maybe other peoples problems, but i am getting an error code (8- file permission error, cannot load vi resource).

Coments from anyone else?

David
0 Kudos
Message 3 of 5
(3,097 Views)
It was created in LV6i. I have saved a copy of previous version and have it sent to your email. Check it out. Hope it is ok now.
Ian F
Since LabVIEW 5.1... 7.1.1... 2009, 2010, 2014
依恩与LabVIEW
LVVILIB.blogspot.com
0 Kudos
Message 4 of 5
(3,097 Views)
David Green wrote:
> This question quite rightly shouts 'beginner' (but we have all got to
> start somewhere)
>
> Background info - (Using LCR 4284) trying to create a stepped voltage
> using just the DC source. So inputs accordingly are start voltage,
> step voltage, hold period and stop voltage.
>
> Obviously take start voltage, add the step voltage hold for a period
> of time then increment again.
>
> My problem is with the 'new voltage' typically I would have just
> created a loop based loosely on the pseudo code below
>
> Start voltage + step voltage = x
> If ( x does not = stop voltage) then
> x + step voltage
> hold for period of time
>
> else stop
>
> tried looking at local/global variables to create a variable (x) but
> nothing seemed to operate in th
e way I expected it.
>
> Or would a shift register be better?
>
> Well thank you for any time you spend answering this query
>
> David Green

Instead of adding the step voltage at each point, you could use

x=Start+i*Step

and put it in a for loop structure.





--
Remove "spamkill." when replying to this message
0 Kudos
Message 5 of 5
(3,097 Views)