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