LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Why can't I get the maximum of these numbers?

Solved!
Go to solution

I want to get the maximum of a list of numbers (see attachment) . However, when I use the Min & Max from array vi, the maximum value output yields nothing. My guess is that there is something wrong with the data format, but I am having difficulty figuring out how I can fix it. Thanks for your help!

0 Kudos
Message 1 of 5
(2,460 Views)

Your data type is an array of clusters of arrays. If you pass this through Max and Min function it will return the cluster with the largest 'first' array element. In your VI however you are wired to the "max index" output, not the "max value" output.

 

max_of_array.jpg

Thoric (CLA, CLED, CTD and LabVIEW Champion)


0 Kudos
Message 2 of 5
(2,446 Views)

Is there a way to get the maximum vertically? For example, with the numbers you posted, I want to get 8 and 5.

0 Kudos
Message 3 of 5
(2,431 Views)
Solution
Accepted by topic author westerman111

Use a FOR loop and Unbundle.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 4 of 5
(2,426 Views)

Thanks very much! I am relatively new to Labview, so I found that very helpful.

0 Kudos
Message 5 of 5
(2,408 Views)