Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old


Opens the Phidget channel.

Component Version macOS Windows Linux Server iOS SDK
Phidget 13.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ❌ No
MBS( "Phidget.Open"; PhidgetRef { ; Timeout } )   More


Parameter Description Example Flags
PhidgetRef The reference number for the phidget. $phidget
Timeout The timeout for waiting for the device to respond.
Default is 5000 milliseconds.
1000 Optional


Returns OK or error.


Opens the Phidget channel.
The open function 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.
But if you pass a timeout value. the function 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

Use Phidget.SetProperty to set these properties.


Open a phidget:

Set Variable [ $$phidget ; Value: MBS( "Phidget.Create"; "LCD" ) ]
Set Variable [ $r ; Value: MBS( "Phidget.Open"; $$phidget ) ]

See also

Example Databases

Blog Entries

Created 16th August 2023, last changed 17th August 2023

Phidget.Loaded - Phidget.Release