LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Counter Problems (Integers)

Greetings,

I want to make a script that has three inputs (start,stop,increment) (all of them are integers)



For example:

 

Start: 140

Stop: 180

Increment: 2

 

The output of the script should be 140,142,144…..180

 

My problem:

 

The loop continuous until the stop integer (in this example 180) is reached. Only the stop integer (180) exits the loop. How do I edit the VI to get all the integers in between the start en stop as well?


Any help would be greatly appreciated.

Thanks in advance,

Henk

 

This application is made in Labview 8.5

Download All
0 Kudos
Message 1 of 5
(3,014 Views)

Counter.png

Omar
0 Kudos
Message 2 of 5
(2,997 Views)

I could be wrong but wont on the second itteration of the loop you will 2x1=2 + 140 = 142 , then on the third itteration 2x2=4 +140=144 ?

0 Kudos
Message 3 of 5
(2,991 Views)

Sorry, I read the problem incorrectly!

 

Alan

0 Kudos
Message 4 of 5
(2,989 Views)

Note , he will need to enable auto indexing to get the array part to work.

 

Alan

0 Kudos
Message 5 of 5
(2,981 Views)