LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Determine the maximum and the minimum value for each value of 2D array

Solved!
Go to solution

As return results need an array of values ​​of minimum and maximum values ​​a obtained from the variation of each input array element.

0 Kudos
Message 21 of 43
(1,229 Views)

I found a solution, but I can only get maximum and minimum values ​​for the first column of the array, can somebody explain why. The arrangement with the values ​​is Wavelength Array. In the for loop I get the maximum and minimum values​​, but only the first column

0 Kudos
Message 22 of 43
(1,228 Views)

They might be able to explain why if you attached a sample VI that demostrates the problems you are having.  Without seeing any code people have to guess what is happening.

0 Kudos
Message 23 of 43
(1,227 Views)

In the posts 1, 3, 8, 9, 10, 11, 13, 16, 18, 19, 20 and 21, you have mentioned the same thing repeatedly. I have not found much change in what you were trying to explain or how.

 

Regarding the image you have updated, 'Solution', I beleive that the output is not of just one column but is a 2D array of again 4rows and 25 columns.

What made you understand that the output is the max and min of only one column?

 

The For loop used in your attachment comapres two successive rows for max and min values.

 

Please try to be more clear as to what you want, what are your elements, attach a vi of what you tested and where you obtained the max and min of only one column.

 

When we spend our time on the same post repeatedly, we expect to reach a quality solution.

Regards
Freelance_LV
TestAutomation Consultant
0 Kudos
Message 24 of 43
(1,211 Views)

Sending vis with which I work, the main vi is WLS Trace - DN. As you can see, the 2D array is obtained from an external transducer. Each array element varies with time, describing a waveform. What I need is to get the maximum value and minimum of each array element elapsed time.

Download All
0 Kudos
Message 25 of 43
(1,203 Views)

Hi

 

I am sorry to say but I only have LV2010SP1. So, cannot open your code and see what is needed.

 

However, let me know if you have tried to implement what I have given in an earlier post.

 

 

Regards
Freelance_LV
TestAutomation Consultant
0 Kudos
Message 26 of 43
(1,202 Views)

I need to obtain an array of maximum and a minimum of comparison of  array in time t with the same array at time t-1, compared element by element. I exemplified in the following table should be the operation

 

Array in t-1

Compare

Array in t

Result

Maximum at t

 

Minimum at t

 

1

2

3

4

5

4

7

10

5

4

7

10

1

2

3

4

5

6

7

8

20

15

2

4

20

15

7

8

5

6

2

4

9

10

11

12

1

9

25

30

9

10

25

30

1

9

11

12

0 Kudos
Message 27 of 43
(1,195 Views)

Hi Redney,

 

use polymorphism of basic functions:

check.png

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 28 of 43
(1,195 Views)

However, I am attaching a VI that gives you different types of max and min values. Hope this will be solving your issue.

 

In response to your latest post, I believe that is what you are getting as per the image 'Solution' and the same as in the VI i just attached.

Regards
Freelance_LV
TestAutomation Consultant
0 Kudos
Message 29 of 43
(1,196 Views)

I think this is the best solution. But I have not clear how to implement it. How do I get the array in t-1

0 Kudos
Message 30 of 43
(1,193 Views)