LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to Plot an real time updating single point 3D scatter graph.

Hi to all,

 

I met a problem using LabVIEW to create a "real time" 3d plot of one single point. What I want to achieve is that, in every loop, three coordinates XYZ are calculated (3 float number), and use them to plot one point use scatter plot, then in the next loop, three new coordinates are calculated and I use them to update my one point plot. For the all-time, there is only one "updating" point in the 3d scatter plot.

 

The problem is that, if I use built array to create the XYZ array as the input of the scatter plot (three 1d arrays with only one element each), there is nothing in the plot. The colour bar beside the graph is changing with coordinates, but I see no point in the graph. However, if I add three shift registers and use append array to add new coordinates into the three arrays, I will get a cumulating plot (which is not I want, of course, but better than nothing). I am confused about the difference between them. Does it mean I have to use a shift register?

 

I am a beginner of LabVIEW, any help appreciated. Thanks in advance.

 

Fin.

0 Kudos
Message 1 of 2
(2,236 Views)

I have seen this issue before. It is to do with "Range Auto Scale" defaulting to +/- NaN when only one point exists.

If anyone from NI is watching, I would call this a bug.

 

In order to fix your problem, go to the 3D graph properties page and unselect Auto Scale and set a reasonable range for the Max and Min for each axis X,Y,Z.

 

Have fun.

 

0xDEAD

 

 

 

scale.PNG

0 Kudos
Message 2 of 2
(2,169 Views)