Show/Hide hidden text
This chapter gives an overview of the events that are raised by a PhidgetRFID device and that can be used in the Event Listener.
Please read the chapters "Phidgets - RFID" and "Event Listener" if you would like to know how to add and use both. The available members that can be used in our scripting language are explained in the chapter "Phidgets - RFID Members".
Example:
Label1.Text = isConnected
This event is raised whenever the connection state changes from disconnected to connected or vice versa.
The event returns one parameter to WD which is a Boolean value with the name "isConnected" and holds either "True" or "False".
If you select this event and copy the example into the scripting field of the Event Listener, it will write "True" or "False" into the Label with ID 1 whenever the device dis-/connects.
|
Example:
Label1.Text = tag
This event is raised whenever the Phidgets device registers a tag entering its RF filed.
The event returns two parameters to WD. The first, "tag", contains the identifier code written on the tag itself as string. As the tags can be configured with different protocols, EM4100, ISO11785 FDX-B and PhidgetTag, the second parameter "protocol" returns the name of the protocol the current tag is encoded with.
If you select the event and copy the example into the scripting field of the Event Listener, it will write the tag code into the Label with ID 1 whenever a new one is detected.
|
Example:
Label1.Text = tag
This event is raised whenever the Phidgets device registers a tag leaving its RF filed.
The event returns two parameters to WD. The first, "tag", contains the identifier code written on the tag itself as string. As the tags can be configured with different protocols, EM4100, ISO11785 FDX-B and PhidgetTag, the second parameter "protocol" returns the name of the protocol the current tag is encoded with.
If you select the event and copy the example into the scripting field of the Event Listener, it will write the tag code into the Label with ID 1 whenever a leaving tag is detected.
|