LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Labview basic

Dear forum members of Ni Instruments. I have one problem, it looks like easy, but for me realy difficult.
I need to compare 5 arrays and choose 3.
If any array exist the biggest and smallest element of the 5 arrays, choose the another 3 arrays. 
The Vi attached. I am using Labview 8.0. 
 
Thank you in advise.
 
Sincerely yours,
Harutyun Melikyan!
 
 
0 Kudos
Message 1 of 7
(3,548 Views)
What should happen if the smallest and largest element are both in the same array?
Message 2 of 7
(3,542 Views)
Here's one simple solution (LabVIEW 8.0). Modify as needed.
 
Why don't you want to use any "structures"?


Message Edited by altenbach on 12-09-2007 10:45 PM
Message 3 of 7
(3,531 Views)

Dear Altenbach, thank you for good question.

I have 5 arrays, each array contain the 551 elements, which like this:

                                                                           for example  -0.1, -0.15, ....., -54, ...., -0,15, -0.1 Each array, have one minimum(-54)

                                                     Next array is about similar -0.1, -0.15, ....., -56, ...., -0,15, -0.1                                                    (-56)

                                                                                3rd            -0.1, -0.15, ....., -55, ...., -0,15, -0.1                                                   (-55)

                                                                                 4th            -0.1, -0.15, ....., -55.15, ...., -0,15, -0.1                                             (-55.15)

                                                                                 5th            -0.1, -0.15, ....., -55.17, ...., -0,15, -0.1                                              (-55.17)

I want to delete2(or choose 3), I mean the array in which the minimum is -54, and array with -56 delete. And choose another 3 arrays. Later I will average 3 curves, which is the nearest each other, and another 2 which are far, I want don't use in averaging process.

I think now I represent my problem with more details.

0 Kudos
Message 4 of 7
(3,530 Views)

Dear Altenbach in my explanation process I understand my mistake.

I have 5 negative curves which we obtain from 5 arrays. each array element start from for example -0.1, -0.2, ..., -53.12, -54.15,-53.15 ..., -0.2, -0.1. In this array the smalest element is -54.15. I have like this 5 arrays(curves). I want to delete 2arrays, in which exist of these 5 negative elements, but I want delete the arrays which have minimum and maximum. For example:

the 1st array minimum is -54, 2nd -53, 3rd -55, 4th -51, 5th -56. I will delete the arrays, in which exists -51, and -56 elements, which are the minimum of these 2 arrays correspondingly.

Sorry for my bad explanation, I sure now I explain my problem correctly.

Best regards

Harutyun Melikyan!

 

0 Kudos
Message 5 of 7
(3,518 Views)

Dear Altenbach thank you for your great help.

Here attached the JPEG, which explain my problem fully.

Thank you in advise.

With best regards

Harutyun Melikyan!

0 Kudos
Message 6 of 7
(3,496 Views)
Maybe something like this?
Message 7 of 7
(3,488 Views)