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

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