adeline wrote:
> How do i vary the voltage increment with the for loop? As in during
> the first i, there will be an increment of 10V, the next 4i, no
> increment, then the next i another increment of 10V, followed by next
> 4i of no increment? I tried keying into an array, but is too
> troublesome. Is there a better way to let this increment to go on by
> itself, without me keying in 10V,0V,0V,0V,0V,10V,0V,0V,0V,0V, and so
> on?
>
> Thanks for your help in advance.
> student
Hello
Make an Array of 5 Values, use the "Quotient &
Reminder" Function on the [i] (with a divisor of 5) and wire the
reminder to an "index array".
The same (Quotient & Reminder) would work when wired to a
case-statement, where you only have 0 and default. In the 0-case you
inc
rement by 10V, in the default-case 0V.
I hope this helps a bit.
Marco