datalogger module

class datalogger.datalogger(file_name, data_path)

Bases: object

__init__(file_name, data_path)

Opens a txt file for writing and writes a banner

Parameters
  • file_name (string) – name of file to write to, in this case the ID of the RFID reader

  • data_path (string) – path to the folder in which log files are stored

setdown()

Saves and closes the text file

write_to_txt(frame_count, message)

Writes a row to the txt file. This function is for use of RFID reader datalogging.

Parameters
  • frame_count (integer) – global frame count when RFID pickup occurred

  • message (integer) – data read on RFID, i.e. the tag number