Phidget.Open
------------

Opens the Phidget channel.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [Phidget](component_Phidget.md) | [13.4](newinversion134.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No |

MBS( "Phidget.Open"; PhidgetRef { ; TimeOut } ) 

**MBS**( **"Phidget.Open";** /\* Opens the Phidget channel. \*/  
**$PhidgetRef**; /\* The reference number for the phidget.e.g. $phidget \*/   
**$TimeOut**) /\* Optional; The timeout for waiting for the device to respond.  
Default is 5000 milliseconds.e.g. 1000 \*/ 

### Parameters

| 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 |

### Result

Returns OK or error.

### Description

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](PhidgetSetProperty.md) to set these properties.  
### Examples

Open a phidget:

 Set Variable \[ $$phidget ; Value: MBS ( "[Phidget.Create](PhidgetCreate.md)"; "LCD" ) \]   
Set Variable \[ $r ; Value: MBS ( "Phidget.Open"; $$phidget ) \]  
### See also

- [Phidget.Create](PhidgetCreate.md)
- [Phidget.SetProperty](PhidgetSetProperty.md)

### Example Databases

- [Phidgets/Phidget Barometer](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Phidgets/Phidget%20Barometer.shtml#2ScriptAnchor_)
- [Phidgets/Phidget Digital Outputs](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Phidgets/Phidget%20Digital%20Outputs.shtml#2ScriptAnchor_)
- [Phidgets/Phidget Distance Sensor](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Phidgets/Phidget%20Distance%20Sensor.shtml#2ScriptAnchor_)
- [Phidgets/Phidget IR Receiver](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Phidgets/Phidget%20IR%20Receiver.shtml#2ScriptAnchor_)
- [Phidgets/Phidget LCD](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Phidgets/Phidget%20LCD.shtml#2ScriptAnchor_)
- [Phidgets/Phidget Light Sensor](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Phidgets/Phidget%20Light%20Sensor.shtml#2ScriptAnchor_)
- [Phidgets/Phidget Temperator Sensor](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Phidgets/Phidget%20Temperator%20Sensor.shtml#2ScriptAnchor_)
- [Phidgets/Phidget Voltage Input](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Phidgets/Phidget%20Voltage%20Input.shtml#2ScriptAnchor_)

### Blog Entries

- [Using the RFID reader from Phidgets in FileMaker](https://www.mbsplugins.de/archive/2025-09-18/Using_the_RFID_reader_from_Phi/monkeybreadsoftware_blog_filemaker)
- [MBS Plugin Advent calendar: 10 - Phidgets](https://www.mbsplugins.de/archive/2023-12-10/MBS_Plugin_Advent_calendar_10_/monkeybreadsoftware_blog_filemaker)
- [News in MBS FileMaker Plugin 13.4](https://www.mbsplugins.de/archive/2023-09-20/News_in_MBS_FileMaker_Plugin_1/monkeybreadsoftware_blog_filemaker)

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

  
[Phidget.Loaded](PhidgetLoaded.md) - [Phidget.Release](PhidgetRelease.md)

[HTML Version](PhidgetOpen.shtml)