3.2.2. qupulse.hardware.dacs¶
- class AlazarCard(card, config: atsaverage.config.ScanlineConfiguration | None = None)[source]¶
Bases:
DAC- arm_program(program_name: str) None[source]¶
Prepare the device for measuring the given program and wait for a trigger event.
- property buffer_strategy: BufferStrategy¶
- property config¶
- property current_config¶
- measure_program(channels: Iterable[str] | None = None) Dict[str, ndarray][source]¶
Get all measurements at once and write them in a dictionary.
- property record_size_factor: int¶
The total record size of each measurement gets extended to be a multiple of this. None means that the minimal value supported by the card is taken.
- register_mask_for_channel(mask_id: str, hw_channel: int, mask_type='auto') None[source]¶
- Parameters:
mask_id – Identifier of the measurement windows
hw_channel – Associated hardware channel (0, 1, 2, 3)
mask_type – Either ‘auto’ or ‘periodical
- register_measurement_windows(program_name: str, windows: Dict[str, Tuple[ndarray, ndarray]]) None[source]¶
Register measurement windows for a given program. Overwrites previously defined measurement windows for this program.
- Parameters:
program_name – Name of the program
windows – Measurement windows by name. First array are the start points of measurement windows in nanoseconds. Second array are the corresponding measurement window’s lengths in nanoseconds.
- register_operations(program_name: str, operations) None[source]¶
Register operations that are to be applied to the measurement results.
- Parameters:
program_name – Name of the program
operations – DAC specific instructions what to do with the data recorded by the device.
- set_measurement_mask(program_name, mask_name, begins, lengths) Tuple[ndarray, ndarray][source]¶
Set/overwrite a single the measurement mask for a program. Begins and lengths are in nanoseconds.
- Parameters:
program_name – Name of the program
mask_name – Name of the mask/measurement windows
begins – Staring points in nanoseconds
lengths – Lengths in nanoseconds
- Returns:
Measurement windows in DAC samples (begins, lengths)
- class DAC[source]¶
Bases:
objectRepresentation of a data acquisition card
- abstractmethod arm_program(program_name: str) None[source]¶
Prepare the device for measuring the given program and wait for a trigger event.
- abstractmethod measure_program(channels: Iterable[str]) Dict[str, numpy.ndarray][source]¶
Get the last measurement’s results of the specified operations/channels
- abstractmethod register_measurement_windows(program_name: str, windows: Dict[str, Tuple[numpy.ndarray, numpy.ndarray]]) None[source]¶
Register measurement windows for a given program. Overwrites previously defined measurement windows for this program.
- Parameters:
program_name – Name of the program
windows – Measurement windows by name. First array are the start points of measurement windows in nanoseconds. Second array are the corresponding measurement window’s lengths in nanoseconds.
- abstractmethod register_operations(program_name: str, operations) None[source]¶
Register operations that are to be applied to the measurement results.
- Parameters:
program_name – Name of the program
operations – DAC specific instructions what to do with the data recorded by the device.
- abstractmethod set_measurement_mask(program_name: str, mask_name: str, begins: numpy.ndarray, lengths: numpy.ndarray) Tuple[numpy.ndarray, numpy.ndarray][source]¶
Set/overwrite a single the measurement mask for a program. Begins and lengths are in nanoseconds.
- Parameters:
program_name – Name of the program
mask_name – Name of the mask/measurement windows
begins – Staring points in nanoseconds
lengths – Lengths in nanoseconds
- Returns:
Measurement windows in DAC samples (begins, lengths)
Modules