PhidgetInterfaceKit

PhidgetInterfaceKit

A class for controlling a PhidgetInterfaceKit.  See your product manual for more specific API details, supported functionality, units, etc.

Summary
PhidgetInterfaceKitA class for controlling a PhidgetInterfaceKit.
EventsEvents supported by PhidgetInterfaceKit.
Properties and Functions
InputCountGets the number of digital inputs supported by this board.
OutputCountGets the number of digital outputs supported by this board.
SensorCountGets the number of sensors (analog inputs) supported by this board
RatiometricGets the ratiometric state for the board.
getInputStateGets the state of a digital input.
getOutputStateGets the state of a digital output.
getSensorValueGets the value of a sensor (0-1000).
getSensorRawValueGets the raw 12-bit value of a sensor (0-4095).
getSensorChangeTriggerGets the change trigger for a sensor.
getDataRateGets the data rate for a sensor, in milliseconds.
DataRateMinGets the minimum data rate for a sensor, in milliseconds.
DataRateMaxGets the maximum data rate for a sensor, in milliseconds.
setOutputStateSets the state of a digital output.
setSensorChangeTriggerSets the change trigger for a sensor.
RatiometricSets the ratiometric state for a board.
setDataRateSets the data rate for a sensor, in milliseconds.

Events

Events supported by PhidgetInterfaceKit.  Pass these constants to the addEventListener() function when adding event listeners to a Phidget object.

PhidgetDataEvent.INPUT_CHANGEdigital input change
PhidgetDataEvent.OUTPUT_CHANGEoutput change
PhidgetDataEvent.SENSOR_CHANGEsensor change

Properties and Functions

InputCount

public function get InputCount():int

Gets the number of digital inputs supported by this board.

OutputCount

public function get OutputCount():int

Gets the number of digital outputs supported by this board.

SensorCount

public function get SensorCount():int

Gets the number of sensors (analog inputs) supported by this board

Ratiometric

public function get Ratiometric():Boolean

Gets the ratiometric state for the board.  Note that not all Interface Kits support Ratiometric.

getInputState

public function getInputState(index: int):Boolean

Gets the state of a digital input.

Parameters

indexdigital input index

getOutputState

public function getOutputState(index: int):Boolean

Gets the state of a digital output.

Parameters

indexdigital output index

getSensorValue

public function getSensorValue(index: int):int

Gets the value of a sensor (0-1000).

Parameters

indexsensor index

getSensorRawValue

public function getSensorRawValue(index: int):int

Gets the raw 12-bit value of a sensor (0-4095).

Parameters

indexsensor index

getSensorChangeTrigger

public function getSensorChangeTrigger(index: int):int

Gets the change trigger for a sensor.

Parameters

indexsensor index

getDataRate

public function getDataRate(index: int):int

Gets the data rate for a sensor, in milliseconds.

Parameters

indexsensor index

DataRateMin

public function getDataRateMin(index: int):int

Gets the minimum data rate for a sensor, in milliseconds.

Parameters

indexsensor index

DataRateMax

public function getDataRateMax(index: int):int

Gets the maximum data rate for a sensor, in milliseconds.

Parameters

indexsensor index

setOutputState

public function setOutputState(index: int,
val: Boolean):void

Sets the state of a digital output.

parameters

indexdigital output index
valoutput state

setSensorChangeTrigger

public function setSensorChangeTrigger(index: int,
val: int):void

Sets the change trigger for a sensor.

Parameters

indexsensor index
valchange trigger

Ratiometric

public function set Ratiometric(val: Boolean):void

Sets the ratiometric state for a board.  Note that not all Interface Kits support ratiometric.

Parameters

valratiometric state

setDataRate

public function setDataRate(index: int,
val: int):void

Sets the data rate for a sensor, in milliseconds.

Parameters

indexsensor index
valdata rate
Base Phidget class from which all specific device classes inherit.
public function get InputCount():int
Gets the number of digital inputs supported by this board.
public function get OutputCount():int
Gets the number of digital outputs supported by this board.
public function get SensorCount():int
Gets the number of sensors (analog inputs) supported by this board
public function get Ratiometric():Boolean
Gets the ratiometric state for the board.
public function getInputState(index: int):Boolean
Gets the state of a digital input.
public function getOutputState(index: int):Boolean
Gets the state of a digital output.
public function getSensorValue(index: int):int
Gets the value of a sensor (0-1000).
public function getSensorRawValue(index: int):int
Gets the raw 12-bit value of a sensor (0-4095).
public function getSensorChangeTrigger(index: int):int
Gets the change trigger for a sensor.
public function getDataRate(index: int):int
Gets the data rate for a sensor, in milliseconds.
public function getDataRateMin(index: int):int
Gets the minimum data rate for a sensor, in milliseconds.
public function getDataRateMax(index: int):int
Gets the maximum data rate for a sensor, in milliseconds.
public function setOutputState(index: int,
val: Boolean):void
Sets the state of a digital output.
public function setSensorChangeTrigger(index: int,
val: int):void
Sets the change trigger for a sensor.
public function setDataRate(index: int,
val: int):void
Sets the data rate for a sensor, in milliseconds.
Close