Company Events Academic Community Support Solutions Products & Services Contact NI MyNI

Encoder Express VI

LabVIEW 2013 for myRIO Module Help

Edition Date: June 2013

Part Number: 373925A-01

»View Product Info

Owning Palette: myRIO VIs

Requires: myRIO Module

Reads and decodes signals from an encoder. This Express VI reads the number of ticks that the encoder receives since the last counter reset.

Dialog Box Options
Block Diagram Inputs
Block Diagram Outputs

Dialog Box Options

ParameterDescription
NameSpecifies the name of this Express VI. You can also double-click the name of this Express VI on the expandable node to edit the name.
ChannelSpecifies the encoder channel you want to use for reading and decoding signals from the encoder.
ConnectionsSpecifies the NI myRIO pins that correspond to the encoder signals.
Encoder output signal typeSpecifies the type of output signal from the encoder you use. Encoder output signal type contains the following options:
  • Quadrature phase signal—Specifies that the encoder generates two phase signals that are offset by 90 degrees. The count value changes each time there is a falling or rising edge on either of the phases. Most encoders generate quadrature phase signals. You can interpret a quadrature phase signal as Gray code.
  • Step and direction signals—Specifies that the encoder generates a direction signal and a clock signal. The direction signal determines the direction of the encoder. The count value changes on every rising edge of the clock signal.
View CodeDisplays the underlying code of this Express VI.

Block Diagram Inputs

ParameterDescription
Reset CounterSpecifies whether to reset the encoder tick counter to zero. The default is FALSE.
error in (no error)Describes error conditions that occur before this node runs.

Block Diagram Outputs

ParameterDescription
Counter ValueReturns the number of ticks that this Express VI reads from the encoder since the last counter reset. Counter Value can be in the range from -2,147,483,648 to 2,147,483,647.
Counter DirectionReturns the direction of the counter between the last two ticks that the encoder receives.
Overflow?Returns whether the counter value wraps back to zero. Overflow? returns TRUE when the value of the counter goes from the maximum value to the minimum value or from the minimum value to the maximum value. After this Express VI reads the count value once, Overflow? changes to FALSE until the counter value wraps back to zero again.
error outContains error information. This output provides standard error out functionality.

 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit