phid | An attached phidget motor control handle. |
count | The motor count. Gets the current velocity of a motor. |
phid | An attached phidget motor control handle. |
index | The motor index. |
velocity | The current velocity. Sets the velocity of a motor. |
phid | An attached phidget motor control handle. |
index | The motor index. |
velocity | The velocity. Sets a velocity change event handler. This is called when the velocity changes. |
phid | An attached phidget motor control handle. |
fptr | Callback function pointer. |
userPtr | A pointer for use by the user - this value is passed back into the callback function. Gets the last set acceleration of a motor. |
phid | An attached phidget motor control handle. |
index | The motor index. |
acceleration | The acceleration. Sets the last set acceleration of a motor. |
phid | An attached phidget motor control handle. |
index | The motor index. |
acceleration | The acceleration. Gets the maximum acceleration supported by a motor |
phid | An attached phidget motor control handle |
index | The motor index. |
max | The maximum acceleration. Gets the minimum acceleration supported by a motor. |
phid | An attached phidget motor control handle |
index | The motor index. |
min | The minimum acceleration Gets the current current draw for a motor. |
phid | An attached phidget motor control handle |
index | The motor index. |
current | The current. Sets a current change event handler. This is called when the current draw changes. |
phid | An attached phidget motor control handle |
fptr | Callback function pointer. |
userPtr | A pointer for use by the user - this value is passed back into the callback function. Gets the number of digital inputs supported by this board. |
phid | An attached phidget motor control handle. |
count | The ditial input count. Gets the state of a digital input. |
phid | An attached phidget motor control handle. |
index | The input index. |
inputState | The input state. Possible values are PTRUE and PFALSE. Set a digital input change handler. This is called when a digital input changes. |
phid | An attached phidget motor control handle. |
fptr | Callback function pointer. |
userPtr | A pointer for use by the user - this value is passed back into the callback function. Gets the number of encoder inputs supported by this board. |
phid | An attached phidget motor control handle. |
count | The encoder input count. Gets the position of an encoder. This position starts at 0 every time the phidget is opened. |
phid | An attached phidget motor control handle. |
index | The encoder index. |
position | The encoder position. Sets the encoder position. This can be used to set the position to a known value, and should only be called when the encoder is not moving. |
phid | An attached phidget motor control handle. |
index | The encoder index. |
position | The encoder position. Set an encoder position change handler. This is called when the encoder position changes. |
phid | An attached phidget motor control handle. |
fptr | Callback function pointer. |
userPtr | A pointer for use by the user - this value is passed back into the callback function. Set an encoder position update handler. This is called at a constant rate; every 8ms, whether the encoder position has changed or not. |
phid | An attached phidget motor control handle. |
fptr | Callback function pointer. |
userPtr | A pointer for use by the user - this value is passed back into the callback function. Gets the Back EMF sensing state for a motor. |
phid | An attached phidget motor control handle. |
index | The motor index. |
bEMFState | The back EMF sensing state. Sets the Back EMF sensing state for a motor. |
phid | An attached phidget motor control handle. |
index | The motor index. |
bEMFState | The back EMF sensing state. Gets the Back EMF voltage for a motor. |
phid | An attached phidget motor control handle. |
index | The motor index. |
voltage | The back EMF voltage, in volts. Set a back EMF update handler. This is called at a constant rate; every 16ms, when back EMF sensing is enabled for that motor. |
phid | An attached phidget motor control handle. |
fptr | Callback function pointer. |
userPtr | A pointer for use by the user - this value is passed back into the callback function. Gets the Supply voltage for the motors. This could be higher then the actual supply voltage. |
phid | An attached phidget motor control handle. |
supplyVoltage | The supply voltage, in volts. Gets the Braking value for a motor. |
phid | An attached phidget motor control handle. |
index | The motor index. |
braking | The braking value, in percent. Sets the Braking value for a motor. This is applied when velocity is 0. Default is 0%. |
phid | An attached phidget motor control handle. |
index | The motor index. |
braking | The braking value, in percent. Gets the number of sensor inputs supported by this board. |
phid | An attached phidget motor control handle. |
count | The sensor input count. Gets the value of a sensor. |
phid | An attached phidget motor control handle. |
index | The sensor index. |
sensorValue | The sensor value, range: 0-1000. Gets the raw value of a sensor (12-bit). |
phid | An attached phidget motor control handle. |
index | The sensor index. |
sensorRawValue | The sensor value, range: 0-4096. Set a sensor update handler. This is called at a constant rate; every 8ms. |
phid | An attached phidget motor control handle. |
fptr | Callback function pointer. |
userPtr | A pointer for use by the user - this value is passed back into the callback function. Gets the ratiometric state. |
phid | An attached phidget motor control handle. |
ratiometric | The ratiometric state. Sets the ratiometric state. This control the voltage reference used for sampling the analog sensors. |
phid | An attached phidget motor control handle. |
ratiometric | The ratiometric state. Set a current update handler. This is called at a constant rate; every 8ms. |
phid | An attached phidget motor control handle. |
fptr | Callback function pointer. |
userPtr | A pointer for use by the user - this value is passed back into the callback function. |