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.1
12.2
12.3
12.4
12.5
13.0
13.1
13.2
13.3
13.4
Statistic
FMM
Blog
Installs a script trigger with the phidget.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
Phidget | 13.4 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No |
Parameter | Description | Example |
---|---|---|
PhidgetRef | The reference number for the phidget. | $phidget |
Event | The name of the event. | "Attach" |
FileName | The file name of the FileMaker database containing the script. | Get(FileName) |
ScriptName | The script name of the script to trigger. | |
Tag | Optional tag value. Goes into the JSON passed to the script, so you can pass whatever you like to the script. |
Returns OK or error.
Device Class | Event | Parameters |
All devices | Attach | - |
Detach | - | |
PropertyChange | property | |
Error | errorString, errorCode | |
Accelerometer | AccelerationChange | timestamp, acceleration |
BLDCMotor | BrakingStrengthChange | brakingStrength |
PositionChange | position | |
VelocityUpdate | velocity | |
CapacitiveTouch | Touch | touchValue |
TouchEnd | ||
CurrentInput | CurrentChange | current |
DCMotor | BackEMFChange | backEMF |
BrakingStrengthChange | brakingStrength | |
VelocityUpdate | velocity | |
Dictionary | - | - |
DigitalInput | StateChange | state |
DigitalOutput | - | - |
DistanceSensor | DistanceChange | distance |
SonarReflectionsUpdate | count, distances, amplitudes | |
Encoder | PositionChange | positionChange, timeChange, indexTriggered |
FrequencyCounter | CountChange | counts, timeChange |
FrequencyChange | frequency | |
GPS | HeadingChange | heading, velocity |
PositionChange | latitude, longitude, altitude | |
PositionFixStateChange | positionFixState | |
Gyroscope | AngularRateUpdate | timestamp, angularRate |
Hub | - | - |
HumiditySensor. | HumidityChange | humidity |
IR | Code | code, bitcount, isRepeat |
Learn | code, codeInfo | |
RawData | data, dataLen | |
LCD | - | - |
LightSensor | IlluminanceChange | illuminance |
Magnetometer | MagneticFieldChange | timestamp, magneticField |
MotorPositionController | PositionChange | position |
DutyCycleUpdate | dutyCycle | |
PHSensor | PHChange | ph |
PowerGuard | - | - |
PressureSensor | PressureChange | pressure |
RCServo | PositionChange | position |
TargetPositionReached | position | |
VelocityChange | velocity | |
ResistanceInput | ResistanceChange | resistance |
RFID | Tag | tag, protocool |
TagLost | tag, protocool | |
SoundSensor | SPLChange | dB, dBA, dBC, octaves |
Spatial | AlgorithmData | timestamp, quaternion |
SpatialData | timestamp, acceleration, angularRate, magneticField | |
Stepper | PositionChange | position |
Stopped | - | |
VelocityChange | velocity | |
TemperatureSensor | TemperatureChange | temperature |
VoltageInput | SensorChange | sensorValue, sensorUnit |
VoltageChange | voltage | |
VoltageOutput | - | - |
VoltageRatioInput | SensorChange | sensorValue, sensorUnit |
VoltageChange | voltageRatio |
Set attach and detach script triggers:
Set Variable [ $r ; Value: MBS( "Phidget.SetScriptTrigger"; $$phidget; "Attach"; Get(FileName); "Attached" ) ]
Set Variable [ $r ; Value: MBS( "Phidget.SetScriptTrigger"; $$phidget; "Detach"; Get(FileName); "Detached" ) ]
This function is free to use.
Created 16th August 2023, last changed 17th August 2023