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

Creating a 3D Plot from Predefined Matrices with HiQ

Primary Software: Other NI Software>>HiQ
Primary Software Version: 4.1
Primary Software Fixed Version: N/A
Secondary Software: N/A

Problem: I have three matrices of points [cartesian (x, y, z), cylindrical (r, q, z), or spherical (r, p, q)] and I want to plot the data.

Solution: First, you need to get the data into HiQ. The fastest way to do this is to use the Import Wizard (look under the Workbook menu)
Next, you need to add a 3-D graph to your worksheet. Once you have the graph you will need to add your plot to the graph. The simplest way to do this is to type this command:
    addPlot(graph,a,b,c);

    graph is the name of the 3-D Graph object.
    a,b,c are the three matrices of data

The order of a,b,c depends on the coordinate system:
    cartesian = x,y,z (where z is a function of x and y)
    cylindrical = q,z,r
    spherical = p,q,r
The second way is to right-click on the graph and select New Plot for the x,y,z (or q,z,r or p,q,r) data and select the Data option and enter the data names with this format:
    x2d[*,*] where x2d is the name of the matrix containing the x data points ( r2d[*,*], etc.)
The attached workbook is an example of how to do this in spherical coordinates.

Note: National Instruments does not support HiQ functionality on Mac OS in LabVIEW 7.0 and will no longer support HiQ functionality on all platforms after LabVIEW 7.0. If your application uses HiQ VIs, consider replacing them with the Analyze and Mathematics VIs. Refer to the LabVIEW Help for information about using the Analyze and Mathematics VIs. You access the LabVIEW Help by selecting Help»VI, Function, & How-To Help.

Related Links: HiQ Support


Attachments:





Report Date: 04/20/2000
Last Updated: 09/15/2004
Document ID: 1WJD7IPQ

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