Platforms to show: All Mac Windows Linux Cross-Platform
PhidgetMotorPositionControllerMBS class
Super class: PhidgetMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
class | Phidgets | MBS Phidgets Plugin | 22.1 | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No | Desktop, Console & Web |
It also contains various other control and monitoring functions that aid in the control of the motor.
For specifics on how to use this class, we recommend watching our video on the Phidget Motor Position Controller class.
Subclass of the PhidgetMBS class.
- 4 events
- event DutyCycleUpdated(dutyCycle as double)
- event ExpectedPositionChanged(expectedPosition as double) New in 25.0
- event PositionChanged(position as double)
- event setTargetVelocityAsyncCompleted(ReturnCode as integer)
- 46 properties
- property Acceleration as Double
- property ActiveCurrentLimit as Double New in 25.0
- property CurrentLimit as Double
- property CurrentRegulatorGain as Double
- property DataInterval as UInt32
- property DeadBand as Double
- property DutyCycle as Double
- property EnableExpectedPosition as Boolean New in 25.0
- property Engaged as Boolean
- property ExpectedPosition as Double New in 25.0
- property FailsafeBrakingEnabled as Boolean New in 25.0
- property FailsafeCurrentLimit as Double New in 25.0
- property FanMode as Integer
- property Inductance as Double New in 25.0
- property IOMode as Integer
- property Kd as Double
- property Ki as Double
- property Kp as Double
- property MaxAcceleration as Double
- property MaxCurrentLimit as Double
- property MaxCurrentRegulatorGain as Double
- property MaxDataInterval as UInt32
- property MaxFailsafeTime as UInt32
- property MaxInductance as Double New in 25.0
- property MaxPosition as Double
- property MaxStallVelocity as Double
- property MaxSurgeCurrentLimit as Double New in 25.0
- property MaxVelocityLimit as Double
- property MinAcceleration as Double
- property MinCurrentLimit as Double
- property MinCurrentRegulatorGain as Double
- property MinDataInterval as UInt32
- property MinFailsafeTime as UInt32
- property MinInductance as Double New in 25.0
- property MinPosition as Double
- property MinStallVelocity as Double
- property MinSurgeCurrentLimit as Double New in 25.0
- property MinVelocityLimit as Double
- property NormalizePID as Boolean New in 25.0
- property Position as Double
- property PositionType as Integer New in 25.0
- property RescaleFactor as Double
- property StallVelocity as Double
- property SurgeCurrentLimit as Double New in 25.0
- property TargetPosition as Double
- property VelocityLimit as Double
- 5 methods
- method addPositionOffset(positionOffset as double)
- method Constructor
- method enableFailsafe(failsafeTime as UInt32)
- method resetFailsafe
- method setTargetVelocityAsync(targetVelocity as double)
- 10 constants
Encoder interface mode
Constant | Value | Description |
---|---|---|
kEncoderIOModeCollector10K | 5 |
Open Collector 10K, 10kΩ pull-up resistors will be applied to the input lines. |
kEncoderIOModeCollector2K2 | 4 |
Open Collector 2.2K, 2.2kΩ pull-up resistors will be applied to the input lines. |
kEncoderIOModeLineDriver10K | 3 |
Line Driver 10K, 10kΩ pull-down resistors will be applied to the input lines. |
kEncoderIOModeLineDriver2K2 | 2 |
Line Driver 2.2K, 2.2kΩ pull-down resistors will be applied to the input lines. |
kEncoderIOModePushPull | 1 |
Push-Pull, No additional pull-up or pull-down resistors will be applied to the input lines. |
Fan Modes
Constant | Value | Description |
---|---|---|
kFanModeAuto | 3 |
The fan will be automatically controlled based on temperature. |
kFanModeOff | 1 |
Turns the fan off. |
kFanModeOn | 2 |
Turns the fan on. |
Position Types
Constant | Value | Description |
---|---|---|
kPositionTypeEncoder | 1 |
Encoder. |
kPositionTypeHallSensor | 2 |
Hall sensor. |
Super class PhidgetMBS
- 4 events
- event Attached
- event Detached
- event Error(errorCode as Integer, errorString as String)
- event PropertyChanged(propertyName as String)
- 43 properties
- property Attached as Boolean
- property Channel as Integer
- property ChannelClass as Integer
- property ChannelClassName as String
- property ChannelName as String
- property ChannelSubclass as Integer
- property ClientVersionMajor as Integer
- property ClientVersionMinor as Integer
- property DataInterval as UInt32
- property DataRate as Double New in 25.0
- property DeviceClass as Integer
- property DeviceClassName as String
- property DeviceID as Integer
- property DeviceLabel as String
- property DeviceName as String
- property DeviceSerialNumber as Integer
- property DeviceSKU as String
- property DeviceVersion as Integer
- property Handle as Integer
- property Hub as PhidgetMBS
- property HubPort as Integer
- property HubPortCount as Integer
- property HubPortSpeed as UInt32 New in 25.0
- property HubPortSupportsAutoSetSpeed as Boolean New in 25.0
- property HubPortSupportsSetSpeed as Boolean New in 25.0
- property IsChannel as Boolean
- property IsHubPortDevice as Boolean
- property IsLocal as Boolean
- property IsOpen as Boolean New in 25.0
- property IsRemote as Boolean
- property MaxDataInterval as UInt32 New in 25.0
- property MaxDataRate as Double New in 25.0
- property MaxHubPortSpeed as UInt32 New in 25.0
- property MeshMode as Integer
- property MinDataInterval as UInt32 New in 25.0
- property MinDataRate as Double New in 25.0
- property Parent as PhidgetMBS
- property ServerHostname as String
- property ServerName as String
- property ServerPeerName as String
- property ServerUniqueName as String
- property ServerVersionMajor as Integer
- property ServerVersionMinor as Integer
- 3 shared properties
- shared property InstanceCount as Integer New in 24.5
- shared property LibraryVersion as String
- shared property LibraryVersionNumber as String
- 8 methods
- method ChildDevices as PhidgetMBS()
- method close
- method Constructor Private
- method Destructor
- method DeviceChannelCount(ChannelClass as Integer) as Integer
- method open
- method openWaitForAttachment(timeoutMs as UInt32 = 1000)
- method writeDeviceLabel(deviceLabel as String)
- 3 shared methods
- shared method finalize(flags as Integer = 0) New in 24.5
- shared method Poll
- shared method resetLibrary
- 317 constants
This class has no sub classes.
Blog Entries
Release notes
- Version 25.0
- Added more properties and methods to PhidgetSpatialMBS, PhidgetMotorPositionControllerMBS, PhidgetBLDCMotorMBS, PhidgetDCMotorMBS, PhidgetMBS, PhidgetLCDMBS and PhidgetHubMBS classes.
The items on this page are in the following plugins: MBS Phidgets Plugin.
PhidgetMissingFunctionExceptionMBS - PhidgetMotorVelocityControllerMBS