9.2.2.3. qumada.instrument.buffers.mfli_buffer

class qumada.instrument.buffers.mfli_buffer.MFLIBuffer(mfli)[source]

Bases: Buffer

Buffer for ZurichInstruments MFLI

AVAILABLE_TRIGGERS: list[str] = ['trigger_in_1', 'trigger_in_2', 'aux_in_1', 'aux_in_2']
GRID_INTERPOLATION_MAPPING: dict = {'exact': 4, 'linear': 2, 'nearest': 1}
TRIGGER_MODE_MAPPING: dict = {'continuous': 0, 'digital': 6, 'edge': 1, 'pulse': 3, 'tracking_edge': 4, 'tracking_pulse': 7}
TRIGGER_MODE_POLARITY_MAPPING: dict = {'both': 3, 'negative': 2, 'positive': 1}
force_trigger()[source]

Triggers the trigger.

Return type:

None

is_finished()[source]

True, if measurement is done and data has finished reading from the buffer.

Return type:

bool

is_ready()[source]

True, if buffer is correctly initialized and ready to measure.

Return type:

bool

is_subscribed(parameter)[source]

True, if the parameter is subscribed and saved in buffer.

Return type:

bool

property num_points: int | None

Number of points to write into buffer for each burst. Required to setup qcodes datastructure and to compare with max. buffer length.

read()[source]

Read the buffer

Output is a dict with the following structure:

{
    "timestamps": list[float],
    "param1": list[float],
    "param2": list[float],
    ...
}
Return type:

dict

read_raw()[source]

Read the buffer and return raw output.

Return type:

dict

setup_buffer(settings)[source]

Sets instrument related settings for the buffer.

Return type:

None

start()[source]

Start the buffer. This is not the trigger.

Return type:

None

stop()[source]

Stop the buffer.

Return type:

None

subscribe(parameters)[source]

Measure provided parameters with the buffer.

Return type:

None

property trigger

The parameter, that triggers the instruments buffer. Set the trigger parameter using a qcodes parameter.

unsubscribe(parameters)[source]

Unsubscribe provided parameters, if they were subscribed.

Return type:

None