Overview:
Demonstrates on measuring the position of linear encoder.
Description:
This example returns the position of a linear encoder then resets each time the Z index is reached.
Requirements:
LabVIEW 2012 or compatible.
NI-DAQmx 15.5.1 or compatible.
Steps to Implement or Execute Code:
- Specify the counter at which the signal will be acquired.
- Specify other controls on the front panel which define how to count and interpret the pulses the encoder generates.
- Run this VI.
- Measured position will be displayed on the waveform chart.
Block Diagram Steps:
- Creates a channel that uses a linear encoder to measure linear position.
- Sets the sample clock source and other necessary timing parameters.
- Runs the task to begin acquisition.
- Returns the data in terms of linear encoder position.
- Clears the task and displays any error occurs.
**This document has been updated to meet the current required format for the NI Code Exchange.**
ColeR
Field Engineer