PhidgetDataEvent

PhidgetDataEvent

A class for data events from Phidget boards.

Summary
PhidgetDataEventA class for data events from Phidget boards.
Constants
Data Event TypesPass these constants to the addEventListener() function when adding event listeners to a Phidget object.
Properties
IndexGets the index for this event, for indexed events.
Data

Constants

Data Event Types

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

ACCELERATION_CHANGEAn acceleration changed.  Used by PhidgetAccelerometer.
BACKEMF_UPDATEFixed rate BackEMF event.  Used by PhidgetMotorControl.
BRIDGE_DATABridge data is recieved.  Used by PhidgetBridge.
CODEAn IR code was recieved.  Used by PhidgetIR.
COUNTCounts were recieved. used by PhidgetFrequencyCounter.
CURRENT_CHANGEA current changed.  Used by PhidgetAdvancedServo, PhidgetMotorControl and PhidgetStepper.
CURRENT_UPDATEFixed rate current event.  Used by PhidgetMotorControl.
FIX_CHANGEA position fix status changed.  Used by PhidgetGPS.
INPUT_CHANGEA digital input changed.  Used by PhidgetEncoder, PhidgetInterfaceKit, PhidgetMotorControl and PhidgetStepper.
LEARNAn IR code was learned.  Used by PhidgetIR.
OUTPUT_CHANGEA digital output changed.  Used by PhidgetInterfaceKit and PhidgetRFID.
PH_CHANGEA PH changed.  Used by PhidgetPHSensor.
POSITION_CHANGEA position changed.  Used by PhidgetAdvancedServo, PhidgetEncoder, PhidgetGPS, PhidgetMotorControl, PhidgetServo and PhidgetStepper.
POSITION_UPDATEFixed rate position event.  Used by PhidgetMotorControl.
RAW_DATARaw data was recieved.  Used by PhidgetIR.
SENSOR_CHANGEAn analog input changed.  Used by PhidgetInterfaceKit.
SENSOR_UPDATEFixed rate sensor event.  Used by PhidgetMotorControl.
SPATIAL_DATASpatial data was recieved.  Used by PhidgetSpatial.
TAGAn RFID tag was detected.  Used by PhidgetRFID.
TAG_LOSTAn RFID tag was removed.  Used by PhidgetRFID.
TEMPERATURE_CHANGEA temperature changed.  Used by PhidgetTemperatureSensor.
VELOCITY_CHANGEA velocity changed.  Used by PhidgetAdvancedServo, PhidgetMotorControl and PhidgetStepper.
WEIGHT_CHANGEA weight changed.  Used by PhidgetWeightSensor.

Properties

Index

public function get Index():int

Gets the index for this event, for indexed events.

Data

public function get Data():Object

Gets the data for this event.  The data type will depend on the event type, as follows

ACCELERATION_CHANGENumber
CODEPhidgetIRCode
CURRENT_CHANGENumber
INPUT_CHANGEBoolean
LEARNPhidgetIRLearnedCode
OUTPUT_CHANGEBoolean
PH_CHANGENumber
POSITION_CHANGENumber
RAW_DATAArray or ints
SENSOR_CHANGEint
SPATIAL_DATAPhidgetSpatialEventData
TAGPhidgetRFIDTag
TAG_LOSTPhidgetRFIDTag
TEMPERATURE_CHANGENumber
VELOCITY_CHANGENumber
WEIGHT_CHANGENumber
A class for Phidget events.
public function get Index():int
Gets the index for this event, for indexed events.
public function get Data():Object
A class for controlling a PhidgetAccelerometer.
A class for controlling a PhidgetMotorControl.
A class for controlling a PhidgetBridge.
A class for controlling a PhidgetIR.
A class for controlling a PhidgetFrequencyCounter.
A class for controlling a PhidgetAdvancedServo.
A class for controlling a PhidgetStepper.
A class for interfacing with a PhidgetGPS.
A class for controlling a PhidgetEncoder.
A class for controlling a PhidgetInterfaceKit.
A class for controlling a PhidgetRFID.
A class for controlling a PhidgetPHSensor.
A class for controlling a PhidgetServo.
A class for controlling a PhidgetSpatial.
A class for controlling a PhidgetTemperatureSensor.
A class for controlling a PhidgetWeightSensor.
A class for storing an IR code.
A class for storing a learned IR code.
Represents a set of spatial data, as recieved via the Spatial Data event
Represents an RFID Tag, as recieved via the RFID Tag events
Close