LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

4D-data on a 3D-graph

Hi,

 

I am trying to put 4D-data on a 3D-graph, and I am using a similar approach as his thread: http://forums.ni.com/t5/LabVIEW/How-to-display-4d-data-within-a-3d-scatter-plot/m-p/1402738. The manner described is to bin all the XYZ-data according to the W-values. For instance you use 128 bins to group the XYZ-data based on their W-values. Then you plot 128 3D-graphs on the same plot and assign a color to each bin, in this way the W-value is represented by the changing color. My problem is, some bins contain one datapoint, so you plot a 3D-graph with only one point. This point is not visible, unless you are rotating the graph, so you see more points on the graph when you rotate it. Is there a solution to this problem? I can't change the number of bins, so that's not a solution I like to see

 

regards

 

KF

0 Kudos
Message 1 of 11
(8,670 Views)

@KF2 wrote:

 

This point is not visible, unless you are rotating the graph, so you see more points on the graph when you rotate it. Is there a solution to this problem? I can't change the number of bins, so that's not a solution I like to see


Can you explain why you see it when you move the graph but don't if you don't? The only difference wieh moving is that it uses "fast draw" (unless otherwise configured), so the axes are and points simplified.

 

On a side point, you could dramatically simplify the code if you use none instead of custom color ramp. None uses only a single color element in the array. I also don't see the need for a sequence structure because dataflow already determines the correct execution order if you would wire the error cluster. Also you only need to touch the cluster elements that change. Here's a quick redo of the FOR loop that changes the colors.

 

Message 2 of 11
(8,655 Views)

Hi altenbach,

 

thanks for the improvement, I added my VI again, you see a 3dgraph constructed with one point. If I look at the graph without moving it, I don't see the point, if I move I can see it, apparently this is quick draw. If I add another different point, I can see both when I am not moving. So my question actally was, why can I only see it on quick draw?

 

If I don't check fast draw option, I don't see when I look at it and when I move it. I would like to see it without having to use rotate/fast draw, so I can also use bins with one data point

 

best regards

 

KF

0 Kudos
Message 3 of 11
(8,641 Views)

Altenbach,

 

If you know the answer don't keep me in suspense please!

 

 

0 Kudos
Message 4 of 11
(8,594 Views)

Sorry, I don't know the answer to the first question.

0 Kudos
Message 5 of 11
(8,584 Views)

Hello KF2,

 

I have just tried the example and I did see the individual point.

 

There was however one thing "special" I noticed at my side with the last VI:

- When I rotate the right 3D Scatter Plot I do see the rectangular frame around it.

- If I rotate it, then I do see the point appearing instead of the rectangle around the point.

 

To change that representation, you can:

- right-click on the scatter plot

- Select 3D Plot Properties

- Go to Scatter and change the Point Style and Point Size in the Scatter section.

 

If I have misunderstood you, then please let me know.

Kind Regards,
Thierry C - CLA, CTA - Senior R&D Engineer (Former Support Engineer) - National Instruments
If someone helped you, let them know. Mark as solved and/or give a kudo. 😉
0 Kudos
Message 6 of 11
(8,546 Views)

Hi ThiCop,

 

Yes everyone seems to have no problem generating the point on the display, but I can't get it on the screen somehow, only if I rotate. I have no clue how this is possible as does anyone else

 

Best regards

 

KF

0 Kudos
Message 7 of 11
(8,524 Views)

Hello KF2,

 

I'm going to look into this when I'm back at the office tomorrow.

 

I'll keep you updated.

Kind Regards,
Thierry C - CLA, CTA - Senior R&D Engineer (Former Support Engineer) - National Instruments
If someone helped you, let them know. Mark as solved and/or give a kudo. 😉
0 Kudos
Message 8 of 11
(8,504 Views)

Hello KF2,

 

Can you provide me with some more information about the OS and NI software versions you're using?

You can easily document this through a MAX Report:

http://digital.ni.com/public.nsf/allkb/271F252B4EF0A2E0862570E70056A1E4?OpenDocument

 

Seeing that most people cannot produce it, I would like to see if I can reproduce it with exactly your NI software set-up.

Kind Regards,
Thierry C - CLA, CTA - Senior R&D Engineer (Former Support Engineer) - National Instruments
If someone helped you, let them know. Mark as solved and/or give a kudo. 😉
Message 9 of 11
(8,481 Views)

Hi Thicop,

 

This is what I have

 

NI LabVIEW 2009 Full Version

NI LabVIEW 2009 System Identification Toolkit

NI Measurement & Automation Explorer 4.6.0

NI System API Windows 32-bit

NI LabVIEW 2009 Control Design and Simulation Module

NI LabWindows/CVI 9.0 Run-Time Engine

NI System API RT

NI TDM Excel Add-In 2.1

 

Windows 7 Professional

SP1

 

Best regards

 

KF

0 Kudos
Message 10 of 11
(8,465 Views)