Loading...
This chapter gives an overview of the members available for the Phidgets RFID device.
Please read the chapter "Phidgets - PhidgetRFID" if you would like to know how to add and use this device. As explained in the topic"Object and Member Notation (dot syntax)", all kinds of objects can be addressed in the scripting language by using their members which set (or return if applicable) properties or methods of that object. Please refer to the chapter "Script Language" for more details about scripting in general.
Project.Phidgets_PhidgetRFID(deviceName or ID) |
Example: Alternative Example: |
This gives access to all further members of the device "Phidgets_PhidgetRFID" from the Configuration dialog. Using the Project object is an alternative to addressing the device directly by entering its name. The Project object allows to address the device through its name or ID. Substituting the ID with a dynamic variable allows automation. Actions can be performed on many devices of the same type simultaneously, e.g. by using for-loops: |
Phidgets_PhidgetRFIDName.AntennaEnabled |
Example: Alternative Example: |
This member sets and returns the state of the antenna from the RFID reader which is displayed next to "Antenna" in the Configuration menu when selecting the according Phidget device. True = "On" state and False = "Off" state. You could also write it into a Widget, e.g. a Label via the script: Label1.Text = Phidgets_PhidgetRFID1.AntennaEnabled Example2: The second example shows how to enable it. |
Phidgets_PhidgetRFIDName.DeviceSerial |
Example: Alternative Example: |
This member sets and returns the serial number which is displayed next to "Serial" in the Configuration menu when selecting the according Phidgets device. You could also write it into a Widget, e.g. a Label via the script: Label1.Text = Phidgets_PhidgetRFID1.DeviceSerial Example2: The second example shows, how to set the serial number of the device in the Configuration menu to 530161. |
Phidgets_PhidgetRFIDName.Disable |
Example: Alternative Example: |
This disables the Phidgets device in the Configuration dialog as if the "Enable" check box in the window was unchecked. Use the .Enable member to reverse this command. |
Phidgets_PhidgetRFIDName.Enable |
Example: Alternative Example: |
This enables the Phidgets device in the Configuration dialog as if the "Enable" check box in the window was checked. Use the .Disable member to reverse this command. |
Phidgets_PhidgetRFIDName.ExternalLedEnabled |
Example: Alternative Example: |
This member sets and returns the state of the external LED from the RFID reader which is displayed next to "External LED" in the Configuration menu when selecting the according Phidget device. True = "On" state and False = "Off" state. You could also write it into a Widget, e.g. a Label via the script: Label1.Text = Phidgets_PhidgetRFID1.ExternalLedEnabled Example2: The second example shows how to enable it. |
Phidgets_PhidgetRFIDName.ExternalOutputEnabled |
Example: Alternative Example: |
This member sets and returns the state of the external output from the RFID reader which is displayed next to "External Output" in the Configuration menu when selecting the according Phidget device. True = "On" state and False = "Off" state. You could also write it into a Widget, e.g. a Label via the script: Label1.Text = Phidgets_PhidgetRFID1.ExternalOutputEnabled Example2: The second example shows how to enable it. |
Phidgets_PhidgetRFIDName.GetAntennaEnabled |
Example: Alternative Example: |
This member returns the state of the antenna from the RFID reader which is displayed next to "Antenna" in the Configuration menu when selecting the according Phidget device. True = "On" state and False = "Off" state. You could also write it into a Widget, e.g. a Label via the script: Label1.Text = Phidgets_PhidgetRFID1.GetAntennaEnabled |
Phidgets_PhidgetRFIDName.GetExternalLedEnabled |
Example: Alternative Example: |
This member returns the state of the external LED from the RFID reader which is displayed next to "External LED" in the Configuration menu when selecting the according Phidget device. True = "On" state and False = "Off" state. You could also write it into a Widget, e.g. a Label via the script: Label1.Text = Phidgets_PhidgetRFID1.GetExternalLedEnabled |
Phidgets_PhidgetRFIDName.GetExternalOutputEnabled |
Example: Alternative Example: |
This member returns the state of the external output from the RFID reader which is displayed next to "External Output" in the Configuration menu when selecting the according Phidget device. True = "On" state and False = "Off" state. You could also write it into a Widget, e.g. a Label via the script: Label1.Text = Phidgets_PhidgetRFID1.GetExternalOutputEnabled |
Phidgets_PhidgetRFIDName.GetInternalLedEnabled |
Example: Alternative Example: |
This member returns the state of the internal LED from the RFID reader which is displayed next to "Internal LED" in the Configuration menu when selecting the according Phidget device. True = "On" state and False = "Off" state. You could also write it into a Widget, e.g. a Label via the script: Label1.Text = Phidgets_PhidgetRFID1.GetInternalLedEnabled |
Phidgets_PhidgetRFIDName.GetTagProtocol |
Example: Alternative Example: |
This member returns the protocol of the RFID tag, e.g. "EM4100" or "NONE" in case no tag is present. You could also write it into a Widget, e.g. a Label via the script: Label1.Text = Phidgets_PhidgetRFID1.GetTagProtocol |
Phidgets_PhidgetRFIDName.GetTagString |
Example: Alternative Example: |
This member returns the text of the RFID tag, e.g. "4d004a54b1" or "NONE" in case no tag is present. You could also write it into a Widget, e.g. a Label via the script: Label1.Text = Phidgets_PhidgetRFID1.GetTagString |
Phidgets_PhidgetRFIDName.InternalLedEnabled |
Example: Alternative Example: |
This member sets and returns the state of the internal LED from the RFID reader which is displayed next to "Internal LED" in the Configuration menu when selecting the according Phidget device. True = "On" state and False = "Off" state. You could also write it into a Widget, e.g. a Label via the script: Label1.Text = Phidgets_PhidgetRFID1.InternalLedEnabled |
Phidgets_PhidgetRFIDName.IsConnected |
Example: Alternative Example: |
This member returns the connection status for the Phidgets device as a Boolean value. The result is "True" if the device is connected and "False" if it is currently disconnected. You could also write it into a Widget, e.g. a Label via the script: Label1.Text = Phidgets_PhidgetRFID1.IsConnected |
Phidgets_PhidgetRFIDName.IsEnabled |
Example: Alternative Example: |
This member returns the status of the check box "Enable" of the configuration dialog when selecting the according Phidgets device. The result, a Boolean value (or string), is "True" if the device is enabled and "False" if it is currently not enabled. You could also write it into a Widget, e.g. a Label via the script: Label1.Text = Phidgets_PhidgetRFID1.IsEnabled |
Phidgets_PhidgetRFIDName.IsTagPresent |
Example: Alternative Example: |
This member returns whether the RFID reader detects a tag. True = "Present" state and False = "Not present" state. You could also write it into a Widget, e.g. a Label via the script: Label1.Text = Phidgets_PhidgetRFID1.IsTagPresent |
Phidgets_PhidgetRFIDName.SetAntennaEnabled(state) |
Example: Alternative Example: |
This member sets the state of the antenna from the RFID reader which is displayed next to "Antenna" in the Configuration menu when selecting the according Phidget device. True = "On" state and False = "Off" state. |
Phidgets_PhidgetRFIDName.SetExternalLedEnabled(state) |
Example: Alternative Example: |
This member sets the state of the external LED from the RFID reader which is displayed next to "External LED" in the Configuration menu when selecting the according Phidget device. True = "On" state and False = "Off" state. |
Phidgets_PhidgetRFIDName.SetExternalOutputEnabled(state) |
Example: Alternative Example: |
This member sets the state of the external output from the RFID reader which is displayed next to "External Output" in the Configuration menu when selecting the according Phidget device. True = "On" state and False = "Off" state. |
Phidgets_PhidgetRFIDName.SetInternalLedEnabled(state) |
Example: Alternative Example: |
This member sets the state of the internal LED from the RFID reader which is displayed next to "Internal LED" in the Configuration menu when selecting the according Phidget device. True = "On" state and False = "Off" state. |
Phidgets_PhidgetRFIDName.TagProtocol |
Example: Alternative Example: |
This member returns the protocol of the RFID tag, e.g. "EM4100" or "NONE" in case no tag is present. You could also write it into a Widget, e.g. a Label via the script: Label1.Text = Phidgets_PhidgetRFID1.TagProtocol |
Phidgets_PhidgetRFIDName.TagString |
Example: Alternative Example: |
This member returns the text of the RFID tag, e.g. "4d004a54b1" or "NONE" in case no tag is present. You could also write it into a Widget, e.g. a Label via the script: Label1.Text = Phidgets_PhidgetRFID1.TagString |
Phidgets_PhidgetRFIDName.WriteTag(newTagString,protocol) |
Example: Alternative Example: |
This writes the tag string "test" and with the protocol "PhidgetTAG" to the present RFID tag (if it is rewritable). |