qtt.measurements.acquisition.interfaces package

Submodules

qtt.measurements.acquisition.interfaces.acquisition_interface module

Interface for devices to acquire data.

class qtt.measurements.acquisition.interfaces.acquisition_interface.AcquisitionInterface(address: str)[source]

Bases: abc.ABC

An interface which contains the functionality for collecting data using a acquisition device.

acquire(number_of_averages: int, timeout: float = 30) → List[qilib.data_set.data_array.DataArray][source]

Reads raw-data from the acquisition device.

This method should be called after initialising and starting the acquisition.
Parameters:
  • number_of_averages – The number of averages taken during acquiring.
  • timeout – The maximum period in seconds to acquire records.
Returns:

A list with the collected scope records.

initialize(configuration: qilib.utils.python_json_structure.PythonJsonStructure) → None[source]

Initializes the readout device by applying the configuration.

Parameters:configuration – A structure with all default settings needed for acquiring raw-data from the readout device.
start_acquisition() → None[source]

Starts the acquisition readout mode.

This method should be called after initializing the acquisition device and before reading out the device with acquire.

stop_acquisition() → None[source]

Stops the acquisition readout mode.

This function should be called after acquiring with the readout device.

qtt.measurements.acquisition.interfaces.acquisition_scope_interface module

Interface for oscilloscopes or equivalent devices to acquire data.

class qtt.measurements.acquisition.interfaces.acquisition_scope_interface.AcquisitionScopeInterface(address: str)[source]

Bases: qtt.measurements.acquisition.interfaces.acquisition_interface.AcquisitionInterface, abc.ABC

An interface which contains the functionality for a acquisition device as a oscilloscope.

enabled_channels

Reports the enabled input channels.

input_range

The input range of the channels.

number_of_samples

The number of samples to take during a acquisition.

period

The measuring period of the acquisition.

sample_rate

The sample rate of the acquisition device.

set_input_signal(channel: int, attribute: Optional[str]) → None[source]

Adds an input channel to the scope.

Parameters:
  • channel – The input channel number.
  • attribute – The input signal to acquire.
trigger_channel

The input signal to trigger the acquisition on.

trigger_delay

The delay between getting a trigger and acquiring in seconds.

trigger_enabled

The setter sets the external triggering on or off. The getter returns the current trigger value.

trigger_level

The trigger-level of the trigger in Volts.

trigger_slope

The edge of the trigger signal to trigger on.