The Daily CLAD

Community Browser
cancel
Showing results for 
Search instead for 
Did you mean: 

CLAD2017 - Answer the requirement: Take it to the maximum

SercoSteveB
Active Participant

You are asked to write a VI that will take in a 1D Array of numeric values and output the maximum value found within the array (Maximum Value Out) and the array index of the maximum value (Maximum Value Index Out).  If two or more elements within the array contain the maximum value the VI should output the lowest array index found containing that value.  NOTE:  All elements in the array have a value of greater than or equal to zero. 

 

Which of the following VIs does NOT satisfy the requirements?

 

Have a go at coding a VI yourself or expand the Spoiler tag to see the answer options.

 

Spoiler

 

a)

Array Max Min 1.png

 

b)

Array Max Min 2.png

 

c)

Array Max Min 3.png

 

d)

Array Max Min 4.png

 

 

Comments