Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
Phidget.AddPositionOffset
Adds an offset (positive or negative) to the current position.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
Phidget | 13.4 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No |
MBS( "Phidget.AddPositionOffset"; PhidgetRef; positionOffset ) More
Parameters
Parameter | Description | Example |
---|---|---|
PhidgetRef | The reference number for the phidget. | $phidget |
positionOffset | Amount to offset the position by | 0 |
Result
Returns OK or error.
Description
Adds an offset (positive or negative) to the current position.Please check phidgets documentation about what values are acceptable for your device.
This can be especially useful for zeroing position.
For Stepper, MotorPositionController, or BLDCMotor only.
This function is free to use.
Created 16th August 2023, last changed 16th August 2023