Platforms to show: All Mac Windows Linux Cross-Platform

Back to OldPhidgetMotorControlMBS class.

OldPhidgetMotorControlMBS.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.
Lasterror is set.

OldPhidgetMotorControlMBS.getAcceleration(index as Integer) as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Phidgets MBS Phidgets Plugin 7.7 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Gets the current acceleration.

Note that this value defaults to 10 upon initialisation.
The Lasterror property is set.

OldPhidgetMotorControlMBS.getAccelerationMax(index as Integer) as Double

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 maximum acceleration supported by a motor.

The Lasterror property is set.

OldPhidgetMotorControlMBS.getAccelerationMin(index as Integer) as Double

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 minimum acceleration supported by a motor.

The Lasterror property is set.

OldPhidgetMotorControlMBS.getBackEMF(index as Integer) as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Phidgets MBS Phidgets Plugin 11.1 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Gets the Back EMF voltage for a motor.

Lasterror is set.

OldPhidgetMotorControlMBS.getBackEMFSensingState(index as Integer) as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Phidgets MBS Phidgets Plugin 11.1 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Gets the Back EMF sensing state for a motor.

Lasterror is set.

OldPhidgetMotorControlMBS.getBraking(index as Integer) as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Phidgets MBS Phidgets Plugin 11.1 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Gets the Braking value for a motor.

Lasterror is set.
Returns the braking value, in percent.

OldPhidgetMotorControlMBS.getCurrent(index as Integer) as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Phidgets MBS Phidgets Plugin 7.7 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
get the current motor current consumption.

The Lasterror property is set.

OldPhidgetMotorControlMBS.getEncoderCount as Integer

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

Lasterror is set.

OldPhidgetMotorControlMBS.getEncoderPosition(index as Integer) as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Phidgets MBS Phidgets Plugin 11.1 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Gets the position of an encoder. This position starts at 0 every time the phidget is opened.

Lasterror is set.

OldPhidgetMotorControlMBS.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.

OldPhidgetMotorControlMBS.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.

OldPhidgetMotorControlMBS.getMotorCount 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 motors supported by this controller.

The Lasterror property is set.

OldPhidgetMotorControlMBS.getRatiometric as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Phidgets MBS Phidgets Plugin 11.1 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Gets the ratiometric state.

Lasterror is set.

OldPhidgetMotorControlMBS.getSensorCount as Integer

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

Lasterror is set.

OldPhidgetMotorControlMBS.getSensorRawValue(index as Integer) as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Phidgets MBS Phidgets Plugin 11.1 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Gets the raw value of a sensor (12-bit).

Lasterror is set.

OldPhidgetMotorControlMBS.getSensorValue(index as Integer) as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Phidgets MBS Phidgets Plugin 11.1 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Gets the value of a sensor.

Lasterror is set.

OldPhidgetMotorControlMBS.getSupplyVoltage as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Phidgets MBS Phidgets Plugin 11.1 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Gets the Supply voltage for the motors.

This could be higher then the actual supply voltage.
Returns the supply voltage, in volts.
Lasterror is set.

OldPhidgetMotorControlMBS.getVelocity(index as Integer) as Double

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 velocity of a motor.

The Lasterror property is set.

OldPhidgetMotorControlMBS.setAcceleration(index as Integer, value as Double)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Phidgets MBS Phidgets Plugin 7.7 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Sets the Motor's Maximum accesleration.

Valid values are 0-100.
The Lasterror property is set.

OldPhidgetMotorControlMBS.setBackEMFSensingState(index as Integer, EMFState as Integer)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Phidgets MBS Phidgets Plugin 11.1 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Sets the Back EMF sensing state for a motor.

Lasterror is set.

OldPhidgetMotorControlMBS.setBraking(index as Integer, value as Double)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Phidgets MBS Phidgets Plugin 11.1 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Sets the Braking value for a motor.

This is applied when velocity is 0. Default is 0%.
value: The braking value, in percent.
Lasterror is set.

OldPhidgetMotorControlMBS.setEncoderPosition(index as Integer, position as Integer)

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

This can be used to set the position to a known value, and should only be called when the encoder is not moving.
Lasterror is set.

OldPhidgetMotorControlMBS.setRatiometric(value as Integer)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Phidgets MBS Phidgets Plugin 11.1 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Sets the ratiometric state.

This control the voltage reference used for sampling the analog sensors.
Lasterror is set.

OldPhidgetMotorControlMBS.setVelocity(index as Integer, value as Double)

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 velocity of a motor.

The Lasterror property is set.

Some examples using this method:

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


The biggest plugin in space...