serial_dashboard.comms.daq_stream
- async serial_dashboard.comms.daq_stream(plotter, monitor, serial_connection, n_reads_per_chunk=1, reader=<function read_all>)
Obtain streaming data
- Parameters
plotter (SerialPlotter instance) – Plotter displaying parsed data. plotter.data is updated in this coroutine.
monitor (SerialMonitor instance) – Monitor displaying data coming from the serial connection. monitor.data is updated in this coroutine.
serial_connection (SerialConnection instance) – Details about the serial connection
n_reads_per_chunk (int, default 1) – This parameter is only used if reader is read_all_newlines. n_read_per_chunk lines are read in.
reader (function, default read_all) – Either read_all or read_all_newlines. read_all_newlines is only necessary on some windows machines that have problems reading in data that does not end with a newline.