Phidget.Load
------------

Loads the Phidget library.

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

MBS( "Phidget.Load"; Path ) 

**MBS**( **"Phidget.Load";** /\* Loads the Phidget library. \*/  
**$Path**) /\* The path to the library file. \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| Path | The path to the library file. |  |

### Result

Returns OK or error.

### Description

Loads the Phidget library.  
You need to install client software and provide path to the DLL for Windows, framework for macOS or so file for Linux.  
  
On Windows you may need to call [Process.SetDllDirectory](ProcessSetDllDirectory.md) function to tell Windows where to find dependencies for the python DLL.  
  
On Linux if you get the error wrong ELF class: ELFCLASS32 if you try to load a 32-bit library into a 64-bit application. You may also get errors about version GLIBC\_2.25 or similar if your libc library on the Linux installation isn't new enough for the loaded library.  
### Examples

Load library on macOS:

 Set Variable \[ $r ; Value: MBS ( "Phidget.Load"; "/Library/Frameworks/Phidget22.framework") \]  
Load library on Windows:

 Set Variable \[ $r ; Value: MBS ( "Phidget.Load"; "C:\\\\Program Files\\\\Phidgets\\\\Phidget22\\\\phidget22.dll") \]  
Load library on Linux:

 Set Variable \[ $r ; Value: MBS ( "Phidget.Load"; "libphidget22.so") \]  
### See also

- [Phidget.List](PhidgetList.md)
- [Phidget.Loaded](PhidgetLoaded.md)
- [Process.SetDllDirectory](ProcessSetDllDirectory.md)

### Example Databases

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

### Blog Entries

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

This function checks for a license.

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

  
[Phidget.List](PhidgetList.md) - [Phidget.Loaded](PhidgetLoaded.md)

[HTML Version](PhidgetLoad.shtml)