From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

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,093 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,086 Views)