Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
Phidget.Close
Closes a Phidget channel that has been opened.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
Phidget | 13.4 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No |
MBS( "Phidget.Close"; PhidgetRef ) More
Parameters
Parameter | Description | Example |
---|---|---|
PhidgetRef | The reference number for the phidget. | $phidget |
Result
Returns OK or error.
Description
Closes a Phidget channel that has been opened.This function will release the channel on the Phidget device, and should be called prior to Phidget.Release.
Examples
Closes the device and free memory:
If [ Length ( $$phidget ) > 0 ]
Set Variable [ $r ; Value: MBS("Phidget.Close"; $$phidget) ]
Set Variable [ $r ; Value: MBS("Phidget.Release"; $$phidget) ]
Set Variable [ $$phidget ; Value: "" ]
End If
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 is free to use.
Created 16th August 2023, last changed 17th August 2023