3.4.2.1. qupulse.hardware.dacs.alazar

class qupulse.hardware.dacs.alazar.AlazarCard(card, config=None)[source]

Bases: qupulse.hardware.dacs.dac_base.DAC

arm_program(program_name)[source]
Return type

None

property card
Return type

Any

clear()[source]

Clears all registered programs.

Caution: This affects all programs and waveforms on the AWG, not only those uploaded using qupulse!

Return type

None

delete_program(program_name)[source]
Return type

None

property mask_prototypes
Return type

Dict[str, Tuple[int, str]]

measure_program(channels)[source]

Get all measurements at once and write them in a dictionary.

Return type

Dict[str, ndarray]

register_mask_for_channel(mask_id, hw_channel, mask_type='auto')[source]
Parameters
  • mask_id (str) – Identifier of the measurement windows

  • hw_channel (int) – Associated hardware channel (0, 1, 2, 3)

  • mask_type – Either ‘auto’ or ‘periodical

Return type

None

register_measurement_windows(program_name, windows)[source]
Return type

None

register_operations(program_name, operations)[source]
Return type

None

set_measurement_mask(program_name, mask_name, begins, lengths)[source]

returns length of windows in samples

Return type

Tuple[ndarray, ndarray]

class qupulse.hardware.dacs.alazar.AlazarProgram[source]

Bases: object

clear_masks()[source]
iter(mask_maker)[source]
masks(mask_maker)[source]
Return type

List[Mask]

property sample_factor
Return type

Optional[TimeType]

set_measurement_mask(mask_name, sample_factor, begins, lengths)[source]

Raise error if sample factor has changed

Return type

Tuple[ndarray, ndarray]

property total_length
Return type

int