OldPhidgetEncoderMBS methods

Online Documentation   -   Statistics   -   FAQ   -   Plugin Parts (All, Dependencies)   -   Class hierarchy

New in Version 22.2 22.3 22.4 22.5 23.0 23.1 23.2 23.3 23.4 23.5 24.0 24.1

The list of the   topics,   classes,   interfaces,   controls,   modules,   global methods by category,   global methods by name,   screenshots,   licenses   and   examples.

Platforms to show: All Mac Windows Linux Cross-Platform

Back to OldPhidgetEncoderMBS class.

OldPhidgetEncoderMBS.Constructor

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Phidgets MBS Phidgets Plugin 7.7 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
The constructor.

On success the handle value is not zero.
The Lasterror property is set.

OldPhidgetEncoderMBS.getEnabled(index as Integer) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Phidgets MBS Phidgets Plugin 11.0 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Gets the enabled state of an encoder. This is whether the encoder is powered or not.

The Lasterror property is set.

OldPhidgetEncoderMBS.getEncoderCount as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Phidgets MBS Phidgets Plugin 8.4 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Gets the number of encoder inputs supported by this board.

The Lasterror property is set.

OldPhidgetEncoderMBS.getIndexPosition(index as Integer) as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Phidgets MBS Phidgets Plugin 11.0 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Queries index position.

Gets the position of the last index pulse, as referenced to getPosition.
This will return EPHIDGET_UNKNOWN if there hasn't been an index event, or if the encoder doesn't support index.

The Lasterror property is set.

OldPhidgetEncoderMBS.getInputCount as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Phidgets MBS Phidgets Plugin 8.4 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Gets the number of digital inputs supported by this board.

The Lasterror property is set.

OldPhidgetEncoderMBS.getInputState(index as Integer) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Phidgets MBS Phidgets Plugin 8.4 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Gets the state of a digital input.

The Lasterror property is set.

OldPhidgetEncoderMBS.getPosition(index as Integer) as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Phidgets MBS Phidgets Plugin 8.4 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Gets the current position of an encoder.

The Lasterror property is set.

OldPhidgetEncoderMBS.setEnabled(index as Integer, value as boolean)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Phidgets MBS Phidgets Plugin 11.0 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Sets the enabled state of an encoder. This is whether the encoder is powered or not.

The Lasterror property is set.

OldPhidgetEncoderMBS.setPosition(index as Integer, value as Integer)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Phidgets MBS Phidgets Plugin 8.4 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Sets the current position of an encoder.

The Lasterror property is set.

The items on this page are in the following plugins: MBS Phidgets Plugin.


💬 Ask a question or report a problem