Platforms to show: All Mac Windows Linux Cross-Platform
Back to PhidgetMBS class.
PhidgetMBS.ChildDevices as PhidgetMBS()
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Phidgets | MBS Phidgets Plugin | 22.1 | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No | Desktop, Console & Web |
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Phidgets | MBS Phidgets Plugin | 22.1 | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No | Desktop, Console & Web |
Close will release the channel on the Phidget device, and should be called prior to delete.
PhidgetMBS.Constructor Private
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Phidgets | MBS Phidgets Plugin | 22.1 | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No | Desktop, Console & Web |
Overwritten by subclasses.
This constructor is private to make sure you don't create an object from this class by error. Please use designated functions to create objects.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Phidgets | MBS Phidgets Plugin | 22.1 | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No | Desktop, Console & Web |
PhidgetMBS.DeviceChannelCount(ChannelClass as Integer) as Integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Phidgets | MBS Phidgets Plugin | 22.1 | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No | Desktop, Console & Web |
Pass kChannelClassNothing to get the total number of channels.
Some examples using this method:
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Phidgets | MBS Phidgets Plugin | 22.1 | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No | Desktop, Console & Web |
The specific channel to be opened can be specified by setting any of the following properties:
DeviceSerialNumber
DeviceLabel
Channel
HubPort
IsHubPortDevice
ServerName
IsLocal
IsRemote
Open will return immediately, with the attachment process proceeding asynchronously. Use the Attach event or Attached property to determine when the channel is ready to use.
PhidgetMBS.openWaitForAttachment(timeoutMs as UInt32 = 1000)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Phidgets | MBS Phidgets Plugin | 22.1 | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No | Desktop, Console & Web |
The specific channel to be opened can be specified by setting any of the following properties:
DeviceSerialNumber
DeviceLabel
Channel
HubPort
IsHubPortDevice
ServerName
IsLocal
IsRemote
OpenWaitForAttachment() will block until the channel is attached or a timeout occurs. A timeout value of 0 will wait forever.
Some examples using this method:
PhidgetMBS.writeDeviceLabel(deviceLabel as String)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Phidgets | MBS Phidgets Plugin | 22.1 | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No | Desktop, Console & Web |
This label can then be used to identify the device, and will persist across power cycles.
The label can be at most 10 UTF-16 code units. Most unicode characters take up a single code unit, but some, such as emoji, can take several.
Some older devices can not have their labels set from Windows. For these devices the label should be set from Linux or macOS.
Note: You should be careful when writing labels in your code, because the label is stored in flash which can only be re-written around 10,000 times before it will no longer write. If your program is complex, be sure to test it thoroughly before using WriteLabel to avoid accidentally burning out the flash.
The items on this page are in the following plugins: MBS Phidgets Plugin.
