HSIO: High-Speed IO

Top  Previous  Next

The High-Speed IO functions use interrupts to monitor the on-board input signals and reads the state significantly faster than it is possible to do directly from VPL.

This can be used e.g. to read incremental encoders.

See also the PCT function.

 

Note: Only one type of high-speed IO can be used on each signal at a time, including PCT.

Note: Generating too fast input on too many input signals for too long a time may affect the performance. Make sure to check the performance with a realistic workload.

 

Incremental encoders

Incremental encoders are linear or rotary encoders that are used to determine the movement of an object. The encoder will typically have two or three outputs, A, B and Z. A and B are used to report the position while Z is used for indexing the encoder, and is typically only active once for every full rotation.

 


hsioEncoderEnable

Configures and enables an encoder.


hsioEncoderDisable

Disables an encoder.


hsioEncoderRead

Reads the current position of an encoder.


hsioEncoderReset

Resets the current position of an encoder.