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
Queries child devices for hub.

PhidgetMBS.close

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Phidgets MBS Phidgets Plugin 22.1 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Closes a Phidget channel that has been opened.

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
The private constructor.

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.

PhidgetMBS.Destructor

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Phidgets MBS Phidgets Plugin 22.1 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
The destructor.

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
Gets the number of channels of the specified channel class on the device.

Pass kChannelClassNothing to get the total number of channels.

Some examples using this method:

PhidgetMBS.open

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Phidgets MBS Phidgets Plugin 22.1 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Opens the Phidget channel.

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
Opens the Phidget channel and waits a defined amount of time for the device to attach.

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
Writes a label to the device in the form of a string in the device flash memory.

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.


The biggest plugin in space...