Z4Sight_ConfigureEncoder
Configures the encoder.
Syntax
C++
Python
def Z4Sight_ConfigureEncoder( state: Z4Sight_State, /, *, inDeviceID: Z4SightSystemAndDeviceIdentifier | None = None, inEncoder: int = 1, inBit0Source: int = 1, inBit1Source: int = 2, inOutputMode: Z4SightEncoderOutputMode = Z4SightEncoderOutputMode.Default, inPositionTrigger: int = 0, inResetSource: Z4SightEncoderResetSource = Z4SightEncoderResetSource.Null, inResetCounter: bool = False, inEnable: bool = True ) -> None
Parameters
| Name | Type | Range | Default | Description | |
|---|---|---|---|---|---|
![]() |
ioState | Z4Sight_State | |||
![]() |
inDeviceID | Z4SightSystemAndDeviceIdentifier | None | None | Device identification. | |
![]() |
inEncoder | int | 1 - 2 | 1 | Encoder. |
![]() |
inBit0Source | int | 0 - 63 | 1 | Auxiliary input signal on which to receive bit 0 of the 2-bit Gray code. |
![]() |
inBit1Source | int | 0 - 63 | 2 | Auxiliary input signal on which to receive bit 1 of the 2-bit Gray code. |
![]() |
inOutputMode | Z4SightEncoderOutputMode | Z4SightEncoderOutputMode.Default | Circumstances in which the rotary decoder should output a pulse. | |
![]() |
inPositionTrigger | int | 0 | Rotary decoder's counter value upon which a trigger is generated. | |
![]() |
inResetSource | Z4SightEncoderResetSource | Z4SightEncoderResetSource.Null | Signal source to use to reset the rotary decoder's counter to 0. | |
![]() |
inResetCounter | bool | False | Reset the encoder counter value to 0 at the end of configuration. | |
![]() |
inEnable | bool | True | Enable or disable the encoder. |


