Are 3D Graphs Available in LabWindows/CVI?
Primary Software: LabWindows/CVI Development Systems>>Base Package
Primary Software Version: 7.0
Primary Software Fixed Version: N/A
Secondary Software: LabWindows/CVI Development Systems>>Base Package
Problem: I want to create 3D graphs in LabWindows/CVI but am unable to locate any 3D graph functions. Does LabWindows/CVI have the functionality to produce 3D graphs?
Solution: Yes, LabWindows/CVI does have the functionality to produce 3D graphs.
LabWindows/CVI versions 7.0 and above include the Measurement Studio 3D ActiveX Graph control which allows the plotting of three-dimensional data on the user interface. With the Measurement Studio 3D ActiveX Graph control, you can visualize three-dimensional data and modify the way data appears by changing graph, plot, and contour properties. Several features of this control include:
- Multiple plot styles: point, line, line-point, hidden-line, contour, surface, surface-line, surface-contour, and surface-normal.
- Multiple plots with individual properties such as name, fill color, line style, and contour levels.
- Configurable axes, including customizable ticks, labels, value pairs, captions, and autoscaling.
- Cartesian, cylindrical, and spherical coordinate systems.
- Rotation, panning and zooming at runtime.
To locate the examples in LabWindows/CVI that incorporate the Measurement Studio 3D ActiveX Graph control, follow the steps below:
- Launch LabWindows/CVI.
- Browse to Help » Find Examples » Communicating with External Applications » ActiveX » General.
- Select any of 3D projects which include 3DGraph.prj, 3DGraphAxis.prj, 3DGraphColorMap.prj, and 3DGraphContours.prj.
N
ote: All of these examples are located on the hard drive at
C:\Program Files\National Instruments\CVIxx\samples\userint\activexTo insert a 3D ActiveX Graph control onto a user interface in LabWindows/CVI, follow the steps below:
- Launch LabWindows/CVI.
- Open a new user interface by browsing to File » New » User Interface.
- In the Project Tree, right-click on the project currently named "Untitled" and select Add File.
- Browse to the path C:\Program Files\National Instruments\CVIxx\toolslib\custctrl and select the file 3DGraphCtrl.fp.
- Right-click on the user interface and select ActiveX.
- Scroll down the menu and select CWGraph3D Control (National Instruments).

A 3D Graph now appears on the user interface. An alternative method for inserting a 3D Graph control is to right click on the user interface and browse to Custom Controls » Toolslib Controls » 3D Graph.

Note: Measurement Studio does NOT need to be installed as the 3D ActiveX Graph control comes standard with LabWindows/CVI 7.0 and above.
Related Links: Developer Zone Example Program: Graphing an XY plot in LabWindows/CVIDeveloper Zone Example Program: Digital Graphing in LabWindows/CVI 7.0Developer Zone Example Program: Continuous Acquisition and Graphing in CVI with PCI-4x5x DevicesDeveloper Zone Tutorial: The Fundamentals of FFT-Based Signal Analysis and Measurement in LabVIEW and LabWindows/CVI
Attachments: 
Report Date: 10/21/2005
Last Updated: 01/12/2008
Document ID: 3QKEKD6S