3D GRAPHS IN LABVIEW
Recommended by 0 users
For many real-world data sets such as the temperature distribution on a surface, joint time-frequency analysis and the motion of an airplane, you need to visualize data in three dimensions. With the 3D graphs, you can visualize three-dimensional data and alter the way that data appears by modifying the 3D graph properties.
LabVIEW includes the following types of 3D graphs:
- 3D surface graph: Draws a surface in 3D space.
- 3D parametric surface graph: Draws a parametric surface in 3D space.
- 3D curve graph: Draws a line in 3D space.
Use the 3D graphs in conjunction with the 3D Graph VIs to plot curves and surfaces. A curve contains individual points on the graph, each point having an x, y and z coordinates. The VI then connects these points with a line. A curve is ideal for visualizing the path of a moving object, such as the flight path of an airplane. The below Figure shows an example of a 3D curve graph.
A surface plot uses x, y and z data to plot points on the graph. The surface plot then connects these points forming a three-dimensional surface view of the data. For example, you could use a surface plot for terrain mapping. Figure (a) shows examples of a 3D surface graph and Figure (b) shows a 3D parametric surface graph. The 3D graphs use ActiveX technology and VIs that handle 3D representation. When you select a 3D graph, LabVIEW places an ActiveX container on the front panel that contains a 3D graph control. LabVIEW also places a reference to the 3D graph control on the block diagram. LabVIEW wires this reference to one of the three 3D Graph VIs.
Complete the following steps to plot data on a 3D graph.
- Add a 3D graph to the front panel.
- Select a polymorphic instance from the helper VI on the block diagram.
- Configure the appearance of the graph with the 3D Graph properties. Use the Property Node to configure the appearance from the block diagram. Select 3D Plot Properties from the shortcut menu to configure the appearance with the 3D Plot Properties dialog box.
- Wire data to each input to graph the plot.
- Run the VI.