## Description of the problem

How to display a channel that has the maximum value from all the measured channels?

## Description of the solution

To determine and display the channel with minimum and maximum value from all the channels can be challenging when analyzing a lot of channels. For example, there can be 64 analog channels in simulation mode:

Once we have all the channels we want, let’s determine the min and max values. Firstly, we must use formulas in Math, more precisely Arrays functions. We use min and max for determining the minimum and maximum values for the array of 64 channels max(['AI 1','AI 2','...','AI 63','AI 64']) and min(['AI 1','AI 2','...','AI 63','AI 64']):

To show the channel with the max/min channel, we have two possibilities, either by using math or by using discrete displays. With math, we can just use maxpos and minpos on the array of channels. With discrete display, the advantage is that we can also customize the text and the color for each value. Since the maxpos of the first element in array is 0 we have added +1 in our example for more clear value to Name transfer. With discrete display we will connect the channel position in an array list to its name: