Encoder Express VI
- Updated2023-02-21
- 2 minute(s) read
Requires: myRIO Toolkit, roboRIO Toolkit, or NI ELVIS RIO Control Toolkit
Reads and decodes signals from an encoder through the encoder channels. 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
Parameter | Description |
---|---|
Node name | Specifies 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. |
Channel | Specifies the encoder channel to read and decode signals from the encoder. |
Connections | Shows the pins that correspond to the encoder signals. |
Encoder output signal type | Specifies the type of output signal from the encoder you use. Encoder output signal type contains the following options:
|
View Code | Displays the underlying code of this Express VI. |
Connection Diagram | Shows the I/O connector pinouts. The highlighted pinouts represent the channels that you configure. |
Block Diagram Inputs
Parameter | Description |
---|---|
Reset Counter | Specifies 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
Parameter | Description |
---|---|
Counter Value | Returns the number of ticks that this Express VI reads from the encoder since the last counter reset. Counter Value must be in the range from -2,147,483,648 to 2,147,483,647. |
Counter Direction | Returns 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 out | Contains error information. This output provides standard error out functionality. |
Encoder Details
Related Information
I/O Connectors (myRIO Toolkit)