utils.marker.MarkerWriter

stroop_task.utils.marker.MarkerWriter(
    write_to_serial=True,
    write_to_lsl=True,
    write_to_logger=False,
    serial_port='COM4',
    utf8_encoded=True,
)

Class for interacting with the virtual serial port provided by the BV TriggerBox and an LSL marker stream

Methods

Name Description
write For this paradigm the writer will have the potential for separate markers for LSL and the parallel port

write

stroop_task.utils.marker.MarkerWriter.write(data, lsl_marker=None)

For this paradigm the writer will have the potential for separate markers for LSL and the parallel port

Parameters

Name Type Description Default
data data to be written to the serial port required
lsl_marker str | None if None, the data is written to the serial port and the LSL stream otherwise the lsl_marker is written to the LSL stream None

Returns

Name Type Description
byteswritten int number of bytes written to the serial port if self.serial_writer is defined