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

Hi Redney,

 

it's not clear what you're referring to with "this is the best solution"...

 

"How do I get the array in t-1"

Well, you made that example with "array in t" and "array in t-1". So I suspect you already have those two arrays. Otherwise use a shift register (or a feedback node)...

Best regards,
GerdW


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

Thank you for your help. I meant the best solution as I show below. Just do not know how to get the array at t-1.


 

0 Kudos
Message 32 of 43
(1,457 Views)

How I can get the array at t-1

0 Kudos
Message 33 of 43
(1,456 Views)

Please help me. I don´t find a solution to mi problem yet.

0 Kudos
Message 34 of 43
(1,454 Views)

Attached is some code which will create the arrays I think you want.  Note the shift register is used to retain the previous new data for the next step through the FOR loop.  5 second wait between iterations to look at array elements.

 

Max Min Array.png

Randall Pursley
0 Kudos
Message 35 of 43
(1,450 Views)

Let me explain in detail, is that I need a lot of the solution to this problem. I have an array of sensors, consisting of 4 row and 25 columns. I need the maximum and minimum value measured by each sensor at a time delta t. I'm working with Labview 2011. The array with the need to work is wavelength data, you can see in the attachment image . Also sent them the vi for review.

Download All
0 Kudos
Message 36 of 43
(1,441 Views)

Now send the picture.

0 Kudos
Message 37 of 43
(1,440 Views)

I rewrote it based on what I think you are looking for.  Connect this VI to WavelengthData and the outputs should be the array of Maximum Values and Minimum Values over time.  Internal feedback nodes keep the latest copy of the Max and Min arrays for the next time the VI is called.  If this isn't what you need, then you need to explain it a little better.

 

Max Min Array.png

Randall Pursley
0 Kudos
Message 38 of 43
(1,430 Views)

"I have an array of sensors, consisting of 4 row and 25 columns"

 

So you have 100 physical sensors, each with their own waveform of data?

0 Kudos
Message 39 of 43
(1,425 Views)

Yes i have 100 sensor, each with your own waveform.

0 Kudos
Message 40 of 43
(1,393 Views)