LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

SubArrays sorted and greater than some value

Greetings!

A have an array 10 columns and 20 rows with values between 50 & 100, I would like to:

1) extract the column with the highest values into a 1-d array

2) combine 2 columns into a 1-d display (40 rows) array then separate it into 2 1-d arrays, with one 1-d array (20 rows) w/ values over 75 & one 1-d array (20 rows) w/ values under 75.

3) I would like to create 2 new 1-d arrays sorting the information from scenario 2.

4) and last, from my 40 row 1-d display find the first 3 values over 90.

I can't find good examples in texts or on the web to help with this problem.

Thank for your help!
0 Kudos
Message 1 of 7
(2,889 Views)

Right-click on the Block diagram and have a look around the array functions in function palette.

 

0 Kudos
Message 2 of 7
(2,879 Views)
1.  Highest Values <-- Plural?  Suggest you sum each column
2 - 4.  You will need to follow the advice of the previous suggestion.

Can you post an image of the front panel that shows what you have to start with, and where you want to be when your done?  Maybe just using 5 numbers in each column.  Your post is rather confusing.  My initial thought is that this can be done in fewer steps... but I am NOT clear on exactly what you want.

Paul
0 Kudos
Message 3 of 7
(2,870 Views)

hai!

just send the VI which you are trying to find, i will do that and send you back, try first by yourself, if not done send me i will see that and give you an solution

0 Kudos
Message 4 of 7
(2,866 Views)
Attached is the vi file of what I have so far.

Thanks for your help!
0 Kudos
Message 5 of 7
(2,850 Views)
Greetings,

Attached is a screen shot of what I have so far.

Thanks for your help!
0 Kudos
Message 6 of 7
(2,849 Views)
Hi newbie 2,
I have attached an example of how I would find the top three values in an array.  What specific areas are you finding yourself hung up on?
Eric A.
National Instruments
Distributed I/O Product Support Engineer
0 Kudos
Message 7 of 7
(2,821 Views)