Quantcast
Channel: LabVIEW topics
Viewing all articles
Browse latest Browse all 69157

Incrementing variable subscript

$
0
0

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. 


Viewing all articles
Browse latest Browse all 69157

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>