PhidgetRFID

PhidgetRFID

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

Summary
PhidgetRFIDA class for controlling a PhidgetRFID.
EventsEvents supported by PhidgetRFID.
Properties
OutputCountGets the number of digital outputs supported by this board.
AntennaGets the antenna state.
LEDGets the onboard LED state.
TagPresentGets whether a tag is currently being detected by the reader.
AntennaSets the antenna state.
LEDSets the onboard LED state.
Functions
getLastTagGets the last tag read.
getOutputStateGets the state of a digital output.
setOutputStateSets the state of a digital output.

Events

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

PhidgetDataEvent.INPUT_CHANGEdigital input change
PhidgetDataEvent.TAGrfid tag detected
PhidgetDataEvent.TAG_LOSTrfid tag removed

Properties

OutputCount

public function get OutputCount():int

Gets the number of digital outputs supported by this board.

Antenna

public function get Antenna():Boolean

Gets the antenna state.

LED

public function get LED():Boolean

Gets the onboard LED state.

TagPresent

public function get TagPresent():Boolean

Gets whether a tag is currently being detected by the reader.

Antenna

public function set Antenna(val: Boolean):void

Sets the antenna state.  Note that the antenna is initially disabled and must be enabled before any tags will be read.

Parameters

valantenna state

LED

public function set LED(val: Boolean):void

Sets the onboard LED state.

Parameters

valled state

Functions

getLastTag

public function getLastTag():String

Gets the last tag read.  This tag may or may not still be on the reader.

getOutputState

public function getOutputState(index: int):Boolean

Gets the state of a digital output.

Parameters

indexdigital output index

setOutputState

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

Sets the state of a digital output.

Parameters

indexdigital output index
valoutput state
Base Phidget class from which all specific device classes inherit.
public function get OutputCount():int
Gets the number of digital outputs supported by this board.
public function get Antenna():Boolean
Gets the antenna state.
public function get LED():Boolean
Gets the onboard LED state.
public function get TagPresent():Boolean
Gets whether a tag is currently being detected by the reader.
public function getLastTag():String
Gets the last tag read.
public function getOutputState(index: int):Boolean
Gets the state of a digital output.
public function setOutputState(index: int,
val: Boolean):void
Sets the state of a digital output.
Close