Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 12.2   12.3   12.4   12.5   13.0   13.1   13.2   13.3   13.4   13.5    Statistic    FMM    Blog  

Phidget.Create

Creates an instance of a Phidget channel.

Component Version macOS Windows Linux Server iOS SDK
Phidget 13.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ❌ No
MBS( "Phidget.Create"; Type )   More

Parameters

Parameter Description Example
Type The type of device object to create.
Can be one of VoltageRatioInput, DigitalInput, DigitalOutput, RCServo, VoltageOutput, VoltageInput, CapacitiveTouch, RFID, GPS, Gyroscope, Magnetometer, Spatial, TemperatureSensor, Encoder, FrequencyCounter, IR, PHSensor, DCMotor, CurrentInput, Stepper, LCD, MotorPositionController, BLDCMotor, DistanceSensor, LightSensor, PressureSensor, ResistanceInput, PowerGuard, SoundSensor, Hub, Dictionary, Accelerometer, HumiditySensor.
"DigitalInput"

Result

Returns OK or error.

Description

Creates an instance of a Phidget channel.
Once created the channel may need to be configured to match the physical device and channel index you want to attach to, and then be opened by calling Phidget.Open.
The Phidget channel handle must be released with Phidget.Release.

Examples

Creates a LCD object:

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

See also

Example Databases

Blog Entries

This function checks for a license.

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


Phidget.Close - Phidget.EnableFailsafe

💬 Ask a question or report a problem