| Components | All | New | MacOS | Windows | Linux | iOS | ||||
| Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old | |
Phidget.Load
Loads the Phidget library.
| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
| Phidget | 13.4 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No |
MBS( "Phidget.Load"; Path ) More
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 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
Example Databases
- Phidgets/Phidget Barometer
- Phidgets/Phidget Digital Outputs
- Phidgets/Phidget Distance Sensor
- Phidgets/Phidget IR Receiver
- Phidgets/Phidget LCD
- Phidgets/Phidget Light Sensor
- Phidgets/Phidget Temperator Sensor
- Phidgets/Phidget Voltage Input
Blog Entries
This function checks for a license.
Created 16th August 2023, last changed 17th February 2026