LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to change 3D data to 2D data ?

HI,all

 

I  have a 3D data like following picture

1.png

2.png

3.png

I want  change to 2D data  like following picture

4.png

 

How can I do?  THANKS~

 

 

0 Kudos
Message 1 of 6
(3,433 Views)

In your desired result I only see a 1D array, what is the second dimension?

 

Also, where is this data being generated? It looks like the array might be being formatted incorrectly to begin with. Could we see the code where the array is being created?

 

Mike...


Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 2 of 6
(3,423 Views)

sorrry.. The title must change 3D array to 1D array 

 

This is my VI. but you might can't run this, because it's contain scope card.

0 Kudos
Message 3 of 6
(3,415 Views)
0 Kudos
Message 4 of 6
(3,413 Views)

Why don't you just use the Auto-indexing tunnels on the FOR loops?  The code in there can become a lot simpler.


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
0 Kudos
Message 5 of 6
(3,406 Views)

I can open your VIs, but I don't see where the 3D array is coming from. The outputs of the express VIs are a 2D array. The loops extract the first 15 columns of each row and after a bit of scaling, extracts the maximum value from each row. The two loops will each generate a 1D array. See crossrulz post to see how this part could be done more efficiently, but for now my main question is:

 

Where do you get the 3D array?

 

Mike...


Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 6 of 6
(3,401 Views)