To download NI software, including the products shown below, visit ni.com/downloads.
Overview
This VI demonstrates how to use invoke nodes to manipulate 3D objects based on real-world data acquired with DAQmx functions.
Description
This VI demonstrates how to use invoke nodes to manipulate 3D objects based on real-world data acquired with DAQmx functions. This VI allows you to change the sizes and relative positions of two 3D objects via controls on the front panel, and then it allows you to control the angular rotation of the objects via an angular encoder (or quadrature encoder). This can be useful for displaying the location or position of physical parts in situations where the user doesn't have a direct view of the parts.
Requirement
Software
LabVIEW 2012 or compatible
NI-DAQmx 9.5.5 or compatible
Hardware
NI Multifuntion DAQ Device
Steps to Implement or Execute Code
1. Download DAQmx rotate object.vi
2.Wire an angular or quadrature encoder to your NI DAQ device
3. On the front panel, set the counter you would like to use in the "Counter" control (wire channel A of your encoder to the default input for this counter's source)
4. On the front panel, select the PFI line to which you have wired the B channel of your encoder in the "CI.Encoder.BInputTerm" control
5.Run the VI. Spin your angular or quadrature encoder, and notice that the object displayed on the front panel rotates accordingly.
Additional Information or References


**This document has been updated to meet the current required format for the NI Code Exchange.**
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.