LabRecorderCLI

class LabRecorderCLI(path_to_cmd=None)[source]

Process based interface for LabRecorderCLI

Parameters

path_to_cmd (str) – defaults to None and select the LabRecorder installed in liesl/files/labrecorder/lib. Otherwise, use the path to the LabRecorderCLI of your desire.

Use start_recording() and stop_recording() to record a set of streams identified by keyword arguments.

Example:

filename = '~/Desktop/untitled.xdf'
streamargs = [{"type":"EEG"},{"type":"Marker"}]
streamargs = [{"type":"EEG", "name":"Liesl-Mock-EEG"},
              {"type":"Marker"}]
lr = LabRecorderCLI()
lr.start_recording(filename, streamargs)
time.sleep(5)
lr.stop_recording()
bind(streamargs=[None])[source]

bind a set of required streams to start recording Recording will throw a ConnectionError if these streams are not present at time of binding or at the time of starting a recording

Return type

None

start_recording(filename='~/recordings/recording.xdf', streamargs=None)[source]

start recording the streams identified by streamargs to filename

stop_recording()[source]

stop recording

Return type

None