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.
Constants
RFID ProtocolsThese are the protocols supported by the 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.
writeWrite a tag.

Events

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

PhidgetDataEvent.OUTPUT_CHANGEdigital output change
PhidgetDataEvent.TAGrfid tag detected
PhidgetDataEvent.TAG_LOSTrfid tag removed

Constants

RFID Protocols

These are the protocols supported by the PhidgetRFID.  These constants are used with write and <getLastTagProtocol>.

PHIDGET_RFID_PROTOCOL_EM4100EM4100 (EM4102) 40-bit.
PHIDGET_RFID_PROTOCOL_ISO11785_FDX_BISO11785 FDX-B encoding (Animal ID).
PHIDGET_RFID_PROTOCOL_PHIDGETSPhidgetsTAG Protocol 24 character ASCII.

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():PhidgetRFIDTag

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

write

public function write(tag: PhidgetRFIDTag,  
lock: Boolean = false):void

Write a tag.

Parameters

tagtag string and protocol.
locklock the tag from being written again.  Defaults to FALSE.
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():PhidgetRFIDTag
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.
public function write(tag: PhidgetRFIDTag,  
lock: Boolean = false):void
Write a tag.
Close