Read Encoder DataReads position status or data from the selected encoder. |
Device Compatibility
|
attribute is the attribute you want to read. The following are valid attributes:
|
|||||||
board in is a unique number assigned by Measurement & Automation Explorer used to send and receive commands and data to or from a specific NI motion controller. | |||||||
axis in is the axis to read with this VI. | |||||||
index in is the encoder index value. Valid value is 1 for the primary encoder. | |||||||
error in (no error) describes error conditions that occur before this VI runs. The default input of this cluster is no error. If an error already occurred, this VI returns the value of error in in error out. The VI runs normally only if no incoming error exists. Otherwise, the VI passes the error in value to error out. The error in cluster contains the following parameters:
|
|||||||
data is a cluster of variables that contains the values for the selected attribute. Read the correct element of the cluster for the attribute. The values of the other elements in the cluster are undefined.
|
|||||||
board out is provided for flow control. You can string together NI-Motion VIs by wiring the board out terminal of one VI to the board in terminal of the next VI. | |||||||
axis out is provided for flow control. You can string together NI-Motion VIs by wiring the axis out terminal of one VI to the axis in terminal of the next VI. | |||||||
index out is provided for flow control. You can string together NI-Motion VIs by wiring the index out terminal of one VI to the index in terminal of the next VI. | |||||||
error out contains error information. If error in indicates an error, error out contains the same error information. Otherwise, it describes the error status that this VI produces.
|
Using This VI
Use this VI to read status or data from the selected encoder.
Caution If this VI uses reflective memory, it should not be used for event checking. In this case, only use the information returned by this VI for display purposes. Refer to Reflective Memory VIs for more information. |
Note Refer to VI Execution Times for benchmark timing information about your controller. |