LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Incrementing variable subscript

I'm trying to write a labview probram where I will have several numerical values for several different yet equally important measurements of the same variety.  In a for loop i want to find their maximum and have it output which value is the maximum and save it as a seperate name.

 

In Matlab, It would be done something like this.

g1=1

g2=2

g3=3

g4=4

gsave=0

 

For i=1:4

  if gi>gsave

     gsave=gi

else gsave=gsave

end

 

The what i really want to know if show i can label a numeric value with a subscript and then interate that subscript without haveing to make a bunch of the same structures or comparison and saving. 

0 Kudos
Message 1 of 2
(2,116 Views)

arrayMax.png

0 Kudos
Message 2 of 2
(2,101 Views)