LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

plot x, y, z, and additional data

Solved!
Go to solution

Hello,

 

I am trying to plot a graph that will display the x, y, and z coordinates while also showing how that relates to an output. So essentially it will be a 3D graph that maps the surface of a device and shows the output. I have thought about doing plots of x, y, and the output while having different plots on the graph for each time the z data changes. Does anyone have any suggestions?

 

Thanks,

 

Tony

0 Kudos
Message 1 of 5
(4,239 Views)

Check out the CVI Help on OpenGL. There are some powerful 3D possibilities there. Strangely the 9.0.1 Example Finder did not find any examples for it.

 

There are also a number of 3DGraph examples which use 3DGraphCtrl.fp.

 

I'm not sure I follow exactly what you want your graph to look like. Is it a set of points that are located by (x,y,z) - or are you trying to plot a continous field of values that changes with x,y and z?

 

--Ian

0 Kudos
Message 2 of 5
(4,231 Views)
I am using the 3D graph control instrument file, but am not sure how to set up the graph correctly. The x, y, and z values are coordinates. The output is a measure of Power that varies depending on how the coordinates change.
0 Kudos
Message 3 of 5
(4,220 Views)
Solution
Accepted by topic author ACowans

If I understand you correctly, this is a four-dimensional data set, which is not easy to graph in a three-dimensional world 🙂  

 

In such cases, you might want to consider using a regular xy graph, showing power as a function of one coordinate (you might want to use a ring to choose between x, y, and z). Then one would consider adding two numeric controls to modify the other two coordinates; hence you would get a cut view out of your complete data set, say P(x,y=const, z=const), and with these three controls you can choose some possible planes (of course, you could add angles, too).

 

Another possibility could be to use a dedicated software, suitable for multidimensional data, e.g.. VisIt (https://wci.llnl.gov/codes/visit/home.html) that might even provide some programmer's interface.

 

The third possibility could be to use a 3D control, and change the color of individual data points according to your power value. Although this is 4-dimensional, it is not very accurate in the forth dimension (few colors only that can be safely distinguished). Moreover, for every single data point you will need a new plot because you can not set color for individual points (to my knowledge: could be a product suggestion for NI...)

 

Thus, first of all, you will need to decide what the most typical / relevant plot would be

Message 4 of 5
(4,209 Views)
Thanks Wolfgang! I'm going to use your ring idea. Don't know why I didn't think of that before. Smiley Happy
0 Kudos
Message 5 of 5
(4,196 Views)