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: 

Programming -Urgent!

Hello! I am trying to create a For loop with range -50 to 0 to 50. The
psuedocode should be

For i=-50 to 50
Program
i= i+1
Next I

Thanks,
tm
0 Kudos
Message 1 of 3
(2,805 Views)
Hi Eric

Use the For Loop and set the number of iterations to 101. Next subtract 50 off the values out of 'i'.

Eric Lin wrote:

> Hello! I am trying to create a For loop with range -50 to 0 to 50. The
> psuedocode should be
>
> For i=-50 to 50
> Program
> i= i+1
> Next I
>
> Thanks,
> tm
0 Kudos
Message 2 of 3
(2,805 Views)
Hallo, Eric,

Du meintest am 17.04.00 zum Thema Programming -Urgent!:

> Hello! I am trying to create a For loop with range -50 to 0 to 50.
> The psuedocode should be
>
> For i=-50 to 50
> Program
> i= i+1
> Next I

That loop increments in steps of 2 from -50 over -48 and so on to +50
.... ("next" increments by itself).

Viele Gruesse!
Helmut
0 Kudos
Message 3 of 3
(2,805 Views)