Academic Company Events Community Support Solutions Products & Services Contact NI MyNI
13 ratings:
 2.92 out of 5   

Are 3D Graphs Available in LabWindows™/CVI?



Primary Software:
Primary Software Version: 2013 SP1
Primary Software Fixed Version: N/A
Secondary Software: LabWindows/CVI Development Systems>>LabWindows/CVI Base Package

Problem:
I want to create 3D graphs in LabWindows/CVI, but I am unable to locate any 3D graph functions. Does LabWindows/CVI have the functionality to produce 3D graphs? How can I plot and display 3D data in LabWindows/CVI?

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 run-time.
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. Open the NI Example Finder from Help»Find Examples and navigate to Communicating with External Applications»ActiveX»General.
  3. Select any of 3D projects, which include 3DGraph.cws, 3DGraphAxis.cws, 3DGraphColorMap.cws, and 3DGraphContours.cws. The Information pane on the right-hand side of the Example Finder will give you a description of what each example does.
Note: All of these examples can be found on your computer in the installation directory for LabWindows/CVI, located at C:\Program Files\National Instruments\CVIxxxx\samples\userint\activex by default.

To insert a 3D ActiveX Graph control onto a user interface in LabWindows/CVI, complete the following steps:
  1. Launch LabWindows/CVI.
  2. Open your existing user interface project or create a new user interface by browsing to File»New»User Interface (*.uir).
  3. Right-click on the user interface and select ActiveX.
  4. Scroll down the menu and select CWGraph3D Control (National Instruments) then click OK.

    Note: You can also insert a 3D Graph control by right-clicking on the user interface and browsing to Custom Controls»Toolslib Controls»3D Graph.
A 3D Graph will now appear on your user interface. To view the available functions for programming the 3D ActiveX Graph control, you can load its function panel in the Instruments menu: 
  1. In LabWindows/CVI, select Instrument»Load
  2. Browse to the toolslib folder for your version of LabWindows/CVI, located by default in the installation directory at C:\Program Files\National Instruments\CVIxxxx\toolslib\custctrl .
  3. Select the file 3DGraphCtrl.fp and click Load. The 3D Graph functions will now be available in the Instruments menu under National Instruments CW 3D Graph:

To program using these functions in your LabWindows/CVI project, you will also need to add the function panel for the 3D ActiveX Graph control to your project:
  1. In the Workspace window, right-click on the project name and select Add Existing File.
  2. Browse to the toolslib folder for your version of CVI, located by default in the installation directory at C:\Program Files\National Instruments\CVIxxxx\toolslib\custctrl.
  3. Select the file 3DGraphCtrl.fp and click OK.
Note: You do not need to have Measurement Studio installed to use the 3D ActiveX Graph control in LabWindows/CVI. The 3D ActiveX Graph control comes installed with LabWindows/CVI 7.0 and above.

Related Links:
LabWindows/CVI Help: 3D Graph Control
LabWindows/CVI Help: Toolslib Controls Overview
KnowledgeBase 66GG8BAR: Where Can I Find Examples for the Legacy 3D Graph ActiveX Control?
NI Community: Hole and Scatter Graphs in 3D using Discontinuities  in CVI

Attachments:





Report Date: 10/21/2005
Last Updated: 09/02/2014
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