cancel
Showing results for 
Search instead for 
Did you mean: 

3D Surface Plot Helper To Dynamic Array

SOLVED
CNLSN
Member
Solved!

3D Surface Plot Helper To Dynamic Array

Message contains an attachment

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.

 

13 REPLIES 13
altenbach
Knight of NI

Re: 3D Surface Plot Helper To Dynamic Array

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

CNLSN
Member

Re: 3D Surface Plot Helper To Dynamic Array

@altenbach sure thing - what version would you like?

altenbach
Knight of NI

Re: 3D Surface Plot Helper To Dynamic Array

2020 or lower

 

CNLSN
Member

Re: 3D Surface Plot Helper To Dynamic Array

Message contains an attachment

Here it is for 2020.

Highlighted
altenbach
Knight of NI

Re: 3D Surface Plot Helper To Dynamic Array

No, that's still in 2021.

CNLSN
Member

Re: 3D Surface Plot Helper To Dynamic Array

Message contains an attachment

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

altenbach
Knight of NI
Solution

Re: 3D Surface Plot Helper To Dynamic Array

Message contains an image Message contains an attachment

@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

 

 

 

 

CNLSN
Member

Re: 3D Surface Plot Helper To Dynamic Array

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.

altenbach
Knight of NI

Re: 3D Surface Plot Helper To Dynamic Array

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