LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

3D Surface Plot Helper To Dynamic Array

Solved!
Go to solution

Hi all,

 

I'm trying to use sensors connected to an Arduino. My goal is to create an X-Y plane with fixed values and use the sensor values as Z values. This is my first attempt at trying to make a dynamic 3 dimensional image and using the '3D Surface plot helper'. My example here uses only 4 sensors in a 2 x 2 array. While I get updating values and the graph's Z values continuously change, I'm not actually seeing anything plotted on the graph.

 

Hopefully I've explained what I'm after in a concise manner.

 

Thanks for any help.

 

0 Kudos
Message 1 of 14
(1,550 Views)

Can you use "save for previous" before attaching. (I don't have LabVIEW 2021 here).

0 Kudos
Message 2 of 14
(1,538 Views)

@altenbach sure thing - what version would you like?

0 Kudos
Message 3 of 14
(1,527 Views)

2020 or lower

 

0 Kudos
Message 4 of 14
(1,524 Views)
0 Kudos
Message 5 of 14
(1,521 Views)

No, that's still in 2021.

0 Kudos
Message 6 of 14
(1,493 Views)

That's odd. I thought I had pressed "20.0". Here it is (hopefully) for 2019.

0 Kudos
Message 7 of 14
(1,477 Views)
Solution
Accepted by topic author CNLSN

@CNLSN wrote:

That's odd. I thought I had pressed "20.0". Here it is (hopefully) for 2019.


You probably attached the regular instead of the down-converted version. Happens... 😉

 

Can you show us how a typical received string looks like?

 

All you probably need to to reshape your 4 elements 1D array yo a 2x2 2D array.

 

(Your feedback nodes make absolutely no sense and just cause your displayed data to lag behind by one iteration. Also, the 3D plots ask for SGL data, so it is even more puzzling why you would first scan it as EXT?? Why all these coercion dots???)

 

 

Here's one possibility (I disabled your IO because I don't have your hardware and simulate data instead. Once we know the format of the received string, things can be further simplified, of course):

 

 

altenbach_0-1647534324960.png

 

 

 

 

Message 8 of 14
(1,461 Views)

Haha yeah, that might've been it.

 

Yes, of course - the strings look like "A11B12C13D14".

 

I've tried your .vi and I'm receiving the numbers into the array but it looks something like:

 

Sensor 2 | Sensor 1          instead of             Sensor 1 | Sensor 2

Sensor 3 | Sensor 4                                       Sensor 3 | Sensor 4

 

Is there a way to define the placement of the sensors (paticulary, with respect to the graph)?

 

Thank you for your help.

0 Kudos
Message 9 of 14
(1,454 Views)

You can change the order of the four letters in the diagram constant to get a different order of elements. Right?

 

 

Message 10 of 14
(1,449 Views)