OpenRFID

Initializes the Codatex RFID sensor, sets correct sensor mode

Contents

Syntax

status = OpenRFID(port)

Description

OpenRFID(port) initializes the input mode of Codatex RFID sensor specified by the sensor port. The value port can be addressed by the symbolic constants SENSOR_1, SENSOR_2, SENSOR_3 and SENSOR_4 analog to the labeling on the NXT Brick.

The RF ID Sensor works with 125 kHz transponders compatible with EM4102 modulation type. With this sensor you can read 5-byte-long transponder numbers into the NXT. Since the NXT RFID sensor is a digital sensor (that uses the I²C protocol), the function NXT_SetInputMode cannot be used as for analog sensors.

Note:

Opening the sensor can take a while. Via Bluetooth, delays of more than 1 second are not uncommon.

Example

   OpenRFID(SENSOR_2);
   transID = GetRFID(SENSOR_2,'single');
   CloseSensor(SENSOR_2);

See also

GetRFID, CloseSensor,

Signature