From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Example Code

3D Sensor Mapping Example

Products and Environment

This section reflects the products and operating system used to create the example.

To download NI software, including the products shown below, visit ni.com/downloads.

    Software

  • LabVIEW

Code and Documents

Attachment

Description

Overview

This example allows you to load a 3D model (4 models are provided), place sensors on the model and map simulated sensor data to the model.


Description

New way to visualize acquired and simulated data in your VIs: 3D sensor mapping.  Using a basic Express VI, you can import a 3D CAD model, assign sensors, and map DAQ channel data directly onto the model.  This example illustrates how to use this feature.


Requirements: LabVIEW 2012 (or compatible).


Steps to Implement or Execute Code:

  1. Run the VI.  By default the VI will use automatically simulated data
  2. Press the LED to toggle between automatically generated values and input values from the sliders on the left of the 3D picture control
  3. Navigate to the block diagram and double click on the Sensor Mapping Express VI to open its dialog window. 
    1. Left click anywhere in the window and drag the cursor to rotate the model. 
    2. Hold the Shift key, left click, and drag the cursor to zoom in and out.
    3. Hold the Ctrl key, left click and drag to move the model to a new position in the window.

Additional Information or References:

 

3D Sensor Mapping Example FP.png

 

3D Sensor Mapping Example sn.png


**This document has been updated to meet the current required format for the NI Code Exchange.**

Todd S.
LabVIEW Community Manager
National Instruments

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.

Comments
Trin
Member
Member
on

Is it possible to use Scene Mesh refrenece instead of CAD file? I need to use this VI but my input can not be represented as CAD

Mads
Active Participant
Active Participant
on

Has anyone modified this function to use a different sensor geometry than a singular point? I'm interested in being able to make the sensor a continous line along the surface of the structure (the measurement does not represent the value at a point, but rather the average along a geodesic path...).