Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI
2 ratings:
 4 out of 5     Rate this Document

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:
  1. Launch LabWindows/CVI.

  2. Browse to Help » Find Examples » Communicating with External Applications » ActiveX » General.

  3. Select any of 3D projects which include 3DGraph.prj, 3DGraphAxis.prj, 3DGraphColorMap.prj, and 3DGraphContours.prj.

Note: All of these examples are located on the hard drive at C:\Program Files\National Instruments\CVIxx\samples\userint\activex

To insert a 3D ActiveX Graph control onto a user interface in LabWindows/CVI, follow the steps below:
  1. Launch LabWindows/CVI.

  2. Open a new user interface by browsing to File » New » User Interface.

  3. In the Project Tree, right-click on the project currently named "Untitled" and select Add File.

  4. Browse to the path C:\Program Files\National Instruments\CVIxx\toolslib\custctrl and select the file 3DGraphCtrl.fp.

  5. Right-click on the user interface and select ActiveX.

  6. 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/CVI
Developer Zone Example Program: Digital Graphing in LabWindows/CVI 7.0
Developer Zone Example Program: Continuous Acquisition and Graphing in CVI with PCI-4x5x Devices
Developer Zone Tutorial: The Fundamentals of FFT-Based Signal Analysis and Measurement in LabVIEW and LabWindows/CVI

Attachments:


3D Graph.gifActiveX Object.gif


Report Date: 10/21/2005
Last Updated: 01/12/2008
Document ID: 3QKEKD6S

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
  1 2 3 4 5
Please Contact NI for all product and support inquiries.submit