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.
- 3 events
- event DutyCycleUpdated(dutyCycle as double)
- event PositionChanged(position as double)
- event setTargetVelocityAsyncCompleted(ReturnCode as integer)
- 33 properties
- property Acceleration as Double
- property CurrentLimit as Double
- property CurrentRegulatorGain as Double
- property DataInterval as UInt32
- property DeadBand as Double
- property DutyCycle as Double
- property Engaged as Boolean
- property FanMode as Integer
- 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 MaxPosition as Double
- property MaxStallVelocity as Double
- 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 MinPosition as Double
- property MinStallVelocity as Double
- property MinVelocityLimit as Double
- property Position as Double
- property RescaleFactor as Double
- property StallVelocity as Double
- 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)
- 8 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. |
Super class PhidgetMBS
- 4 events
- event Attached
- event Detached
- event Error(errorCode as Integer, errorString as String)
- event PropertyChanged(propertyName as String)
- 33 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 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 IsChannel as Boolean
- property IsHubPortDevice as Boolean
- property IsLocal as Boolean
- property IsRemote as Boolean
- property MeshMode as Integer
- 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
- 2 shared properties
- 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)
- 2 shared methods
- shared method Poll
- shared method resetLibrary
- 292 constants
This class has no sub classes.
Blog Entries
The items on this page are in the following plugins: MBS Phidgets Plugin.
PhidgetMissingFunctionExceptionMBS - PhidgetNetMBS