Platforms to show: All Mac Windows Linux Cross-Platform
OldPhidgetMotorControlMBS class Deprecated
Super class: OldPhidgetMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
class | Phidgets | MBS Phidgets Plugin | 7.7 | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No | Desktop, Console & Web |
This item is deprecated and should no longer be used.
You can use PhidgetDCMotorMBS instead.
The class for the phidget motor control device.
The PhidgetMotorControl is a component that provides a high-level programmer interface to control a PhidgetMotorControl device connected through a USB port.
With this component, the programmer can:
- Control direction, and start and stop DC motors.
- Control the velocity and acceleration of each DC motor.
- Read the limit switch.
- 8 events
- event BackEMFUpdated(index as Integer, voltage as Double)
- event CurrentChanged(index as Integer, value as Double)
- event CurrentUpdated(index as Integer, current as Double)
- event EncoderPositionChanged(index as Integer, time as Integer, positionChange as Integer)
- event EncoderPositionUpdated(index as Integer, positionChange as Integer)
- event InputChanged(index as Integer, value as Integer)
- event SensorUpdated(index as Integer, sensorValue as Integer)
- event VelocityChanged(index as Integer, value as Double)
- 25 methods
- method Constructor
- method getAcceleration(index as Integer) as Double
- method getAccelerationMax(index as Integer) as Double
- method getAccelerationMin(index as Integer) as Double
- method getBackEMF(index as Integer) as Double
- method getBackEMFSensingState(index as Integer) as Integer
- method getBraking(index as Integer) as Double
- method getCurrent(index as Integer) as Double
- method getEncoderCount as Integer
- method getEncoderPosition(index as Integer) as Integer
- method getInputCount as Integer
- method getInputState(index as Integer) as boolean
- method getMotorCount as Integer
- method getRatiometric as Integer
- method getSensorCount as Integer
- method getSensorRawValue(index as Integer) as Integer
- method getSensorValue(index as Integer) as Integer
- method getSupplyVoltage as Double
- method getVelocity(index as Integer) as Double
- method setAcceleration(index as Integer, value as Double)
- method setBackEMFSensingState(index as Integer, EMFState as Integer)
- method setBraking(index as Integer, value as Double)
- method setEncoderPosition(index as Integer, position as Integer)
- method setRatiometric(value as Integer)
- method setVelocity(index as Integer, value as Double)
Super class OldPhidgetMBS
- 7 events
- event Attach
- event Detach
- event Error(errorCode as Integer, errorDescription as string)
- event ServerConnect
- event ServerDisconnect
- event Wakeup
- event WillSleep
- 2 properties
- 24 methods
- method Close
- method disableLogging
- method enableLogging(level as Integer, outputFile as string)
- method GetDeviceClass as Integer
- method GetDeviceID as Integer
- method GetDeviceLabel as string
- method GetDeviceName as string
- method GetDeviceStatus as Integer
- method GetDeviceType as string
- method GetDeviceVersion as Integer
- method GetErrorDescription(errorcode as Integer) as string
- method GetLibraryVersion as string
- method GetSerialNumber as Integer
- method GetServerAddress(byref port as Integer) as string
- method GetServerID as string
- method GetServerStatus as Integer
- method Open(serialNumber as Integer = -1)
- method OpenLabel(label as string = "")
- method openLabelRemote(label as string, serverID as string, password as string = "")
- method openLabelRemoteIP(label as string, addr as string, port as Integer, password as string = "")
- method openRemote(serial as Integer, serverID as string, password as string = "")
- method openRemoteIP(serial as Integer, addr as string, port as Integer, password as string = "")
- method SetDeviceLabel(label as string)
- method waitForAttachment(milliseconds as Integer)
- 2 shared methods
- 161 constants
This class has no sub classes.
Some examples using this class:
The items on this page are in the following plugins: MBS Phidgets Plugin.
OldPhidgetMissingFunctionExceptionMBS - OldPhidgetNMEADataMBS