PhidgetStepper |
A class for controlling a PhidgetStepper. See your product manual for more specific API details, supported functionality, units, etc.
| PhidgetStepper | A class for controlling a PhidgetStepper. |
| Events | Events supported by PhidgetStepper. |
| Properties | |
| InputCount | Gets the number of digital inputs available on this controller. |
| MotorCount | Gets the number of motors supported by this controller. |
| Functions | |
| getAccelerationMin | Gets the minimum settable acceleration for a motor. |
| getAccelerationMax | Gets the maximum settable acceleration for a motor |
| getPositionMin | Gets the minimum position that a motor can travel to. |
| getPositionMax | Gets the maximum position that a motor can travel to. |
| getVelocityMin | Gets the minimum velocity that a motor can be set to. |
| getVelocityMax | Gets the maximum velocity that a motor can be set to or return. |
| getCurrentMin | Gets the minimum settable current limit for a motor. |
| getCurrentMax | Gets the maximum settable current limit for a motor. |
| getInputState | Gets the state of a digital input. |
| getAcceleration | Gets the last set acceleration for a motor. |
| getVelocity | Gets the current velocity for a motor. |
| getVelocityLimit | Gets the last set velocity limit for a motor. |
| getCurrentLimit | Gets the last set current limit for a motor. |
| getCurrent | Gets the current current draw for a motor. |
| getCurrentPosition | Gets the current position of a motor. |
| getTargetPosition | Gets the last set target position. |
| getEngaged | Gets the engaged state of a motor. |
| getStopped | Gets the stopped state of a motor. |
| setAcceleration | Sets the acceleration for a motor. |
| setVelocityLimit | Sets the upper velocity limit for a motor. |
| setCurrentPosition | Sets the current position of a motor. |
| setTargetPosition | Sets a new target position for a motor. |
| setCurrentLimit | Sets the upper current limit for a motor. |
| setEngaged | Sets the engaged state of a motor. |
Events supported by PhidgetStepper. Pass these constants to the addEventListener() function when adding event listeners to a Phidget object.
| PhidgetDataEvent.INPUT_CHANGE | digital input change |
| PhidgetDataEvent.VELOCITY_CHANGE | velocity change |
| PhidgetDataEvent.POSITION_CHANGE | position change |
| PhidgetDataEvent.CURRENT_CHANGE | current change |
Gets the number of digital inputs available on this controller.
public function get InputCount():int
Gets the number of motors supported by this controller.
public function get MotorCount():int
Gets the minimum settable acceleration for a motor.
public function getAccelerationMin( index: int ):Number
Gets the maximum settable acceleration for a motor
public function getAccelerationMax( index: int ):Number
Gets the minimum position that a motor can travel to.
public function getPositionMin( index: int ):Number
Gets the maximum position that a motor can travel to.
public function getPositionMax( index: int ):Number
Gets the minimum velocity that a motor can be set to.
public function getVelocityMin( index: int ):Number
Gets the maximum velocity that a motor can be set to or return.
public function getVelocityMax( index: int ):Number
Gets the minimum settable current limit for a motor.
public function getCurrentMin( index: int ):Number
Gets the maximum settable current limit for a motor.
public function getCurrentMax( index: int ):Number
Gets the state of a digital input.
public function getInputState( index: int ):Boolean
Gets the last set acceleration for a motor.
public function getAcceleration( index: int ):Number
Gets the current velocity for a motor.
public function getVelocity( index: int ):Number
Gets the last set velocity limit for a motor.
public function getVelocityLimit( index: int ):Number
Gets the last set current limit for a motor.
public function getCurrentLimit( index: int ):Number
Gets the current current draw for a motor.
public function getCurrent( index: int ):Number
Gets the current position of a motor.
public function getCurrentPosition( index: int ):Number
Gets the last set target position.
public function getTargetPosition( index: int ):Number
Gets the engaged state of a motor.
public function getEngaged( index: int ):Boolean
Gets the stopped state of a motor.
public function getStopped( index: int ):Boolean
Sets the acceleration for a motor.
public function setAcceleration( index: int, val: Number ):void
Sets the upper velocity limit for a motor.
public function setVelocityLimit( index: int, val: Number ):void
Sets the current position of a motor.
public function setCurrentPosition( index: int, val: Number ):void
Sets a new target position for a motor.
public function setTargetPosition( index: int, val: Number ):void
Sets the upper current limit for a motor.
public function setCurrentLimit( index: int, val: Number ):void
Sets the engaged state of a motor.
public function setEngaged( index: int, val: Boolean ):void