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

Is There a Way to Assign a Pseudo 4th Dimension to a 3D Graph in LabVIEW or HiQ?

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

Problem: I need to represent a function like color = f(x,y,z). In practice, I must assign a color to a 3-dimensional surface, depending on its temperature. Is it possible to do this kind of 4-dimensional graph with LabVIEW or HiQ?

Solution: You can do this very easily in HiQ and LabVIEW. It's not a capability that is exposed through the Add Plot dialogs, though. You have to create it using the "createGraph" function in HiQ. There is an optional fourth parameter that represents a fourth dimension. This parameter is used to choose the colors from the color map when drawing the surface. So if this data represents temperature, then the surface will be colored to reflect the actual temperatures on the surface. If this parameter isn't there, HiQ uses the Z data to choose the color.

In LabVIEW you can use the 3D Parametric Graph. If you look at 3D Parametric Surface.vi (Diagram) you will see where the X, Y and Z data gets wired into an invoke node. There is a 4th input, wMatrix, and this is where you would wire in the 4th dimension (intensity) data. See the attached screen shot for details.

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:


Adding Intensity Data.jpg


Report Date: 02/17/2000
Last Updated: 09/15/2004
Document ID: 1UGI14DM

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