Platforms to show: All Mac Windows Linux Cross-Platform
PhidgetMBS class
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
class | Phidgets | MBS Phidgets Plugin | 22.1 | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No | Desktop, Console & Web |
This class is also used to specify the associations between the Phidget software objects and their corresponding physical devices, and makes it possible to determine which Phidget is which in cases where it might otherwise be ambiguous.
This class contains various functions such as Release, Retain, and getParent designed to be used with the Phidget Manager. These specialized functions may be safely ignored if your application does not require a Manager. You can check the Manager API for more information.
All errors are reported as exceptions.
And MBS Plugin schedules all events to raise on main thread, so you can easily update GUI.
Please use LoadLibrary shared method in PhidgetManagerMBS class to load Phidgets library before using the classes
This is an abstract class. You can't create an instance, but you can get one from various plugin functions.
- 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
- 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
- 292 constants
Sub classes:
- class PhidgetAccelerometerMBS
- class PhidgetBLDCMotorMBS
- class PhidgetCapacitiveTouchMBS
- class PhidgetCurrentInputMBS
- class PhidgetDCMotorMBS
- class PhidgetDictionaryMBS
- class PhidgetDigitalInputMBS
- class PhidgetDigitalOutputMBS
- class PhidgetDistanceSensorMBS
- class PhidgetEncoderMBS
- class PhidgetFrequencyCounterMBS
- class PhidgetGPSMBS
- class PhidgetGyroscopeMBS
- class PhidgetHubMBS
- class PhidgetHumiditySensorMBS
- class PhidgetIRMBS
- class PhidgetLCDMBS
- class PhidgetLightSensorMBS
- class PhidgetMagnetometerMBS
- class PhidgetMotorPositionControllerMBS
- class PhidgetPHSensorMBS
- class PhidgetPowerGuardMBS
- class PhidgetPressureSensorMBS
- class PhidgetRCServoMBS
- class PhidgetResistanceInputMBS
- class PhidgetRFIDMBS
- class PhidgetSoundSensorMBS
- class PhidgetSpatialMBS
- class PhidgetStepperMBS
- class PhidgetTemperatureSensorMBS
- class PhidgetVoltageInputMBS
- class PhidgetVoltageOutputMBS
- class PhidgetVoltageRatioInputMBS
Some properties using for this class:
- PhidgetMBS.Hub as PhidgetMBS
- PhidgetMBS.Parent as PhidgetMBS
Some events using this class:
- PhidgetManagerMBS.Attached(phid as PhidgetMBS)
- PhidgetManagerMBS.Detached(phid as PhidgetMBS)
Some examples using this class:
Blog Entries
- MBS Xojo Plugins, version 24.5pr6
- MBS Xojo Plugins, version 24.2pr3
- MBS Xojo Plugins, version 24.2pr2
Xojo Developer Magazine
Release notes
- Version 24.5
- Added finalize method and InstanceCount property for PhidgetMBS class.
- Version 24.2
- Improved PhidgetMBS classes to prevent crashes with disconnected devices.
The items on this page are in the following plugins: MBS Phidgets Plugin.
PhidgetManagerMBS - PhidgetMissingFunctionExceptionMBS