LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to compare values from multiples shared variable and find max and min

Hi,

 

1-I have around 40 shared variables, i need to compute the max value among them and point out which one, What is the best method to perform the operation ? ( or just use For Loop )

 

2- I have numeric indicators on my front panel and i need some kind of color change or attention when the value exceeds a specidic number ? any comment or example

 

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

Hi Usman,

 

1. Put all values into an array and use ArrayMinMax. It will give you max/min values as well as their index in the array…

 

2. Use property nodes of those indicators to set colors depending on the value…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 2
(2,088 Views)