Recorder#

class pycanape.recorder.Recorder(asap3_handle: LP_tAsap3Hdl, recorder_id: LP_c_ulong)#

The Recorder class is not meant to be instantiated by the user. Recorder instances are returned by define_recorder(), get_recorder_by_index() and get_selected_recorder().

Parameters:
  • asap3_handle (LP_tAsap3Hdl) –

  • recorder_id (LP_c_ulong) –

disable() None#

Disable Recorder.

Return type:

None

enable() None#

Enable Recorder.

Return type:

None

get_mdf_filename() str#

Retrieve the MDF Filename of a Recorder.

Return type:

str

get_name() str#

Get the name of the recorder.

Return type:

str

get_state() RecorderState#

Return the state of a Recorder

Return type:

RecorderState

is_enabled() bool#

Check if Recorder is enabled.

Returns:

True if recorder is enabled

Return type:

bool

pause(pause: bool) None#

Pause or unpause recorder.

Parameters:

pause (bool) –

Return type:

None

set_mdf_filename(filename: str) None#

Set the MDF Filename for a Recorder.

Parameters:

filename (str) – new recorder filename e.g. ‘{RECORDER}_{YEAR}-{MONTH}-{DAY}_{HOUR}-{MINUTE}-{SECOND}.MF4’

Return type:

None

start() None#

Starts the recording into the mdf file.

Return type:

None

stop(save_to_mdf: bool = True) None#

Stops the recording and writes an MDF File.

Parameters:

save_to_mdf (bool) – save recorded data to a file if True

Return type:

None