DAC

DAC module for qosst-hal.

class qosst_hal.dac.FakeDAC(_location, _channels, **_kwargs)

Fake DAC, to be used as a dummy DAC.

__init__(_location, _channels, **_kwargs) None

Start with no data and emission is False.

__str__() str

Return str(self).

close() None

Close the fake hardware (do nothing).

data: List[ndarray] | None

data

emission: bool

emission state

load_data(data: List[ndarray]) None

Load the data.

Parameters:

data (List[np.ndarray]) – date to emit.

open() None

Open the fake hardware (do nothing).

set_emission_parameters(*_args, **_kwargs) None

Set the emission parameters for the fake hardware (do nothing).

start_emission() None

Start the emission (set emission status to True).

stop_emission() None

Stop the emission (set emission status to False).

class qosst_hal.dac.GenericDAC

Generic class for DAC.

A DAC should implement:

  • open: open connection with the device

  • close: close connection with the device

  • set_emission_parameters: set the emission parameters.

  • load_data: load data

  • start_emission: start the emission

  • stop_emission: stop the emission

__str__() str

Return str(self).

abstract load_data(data: List[ndarray]) None

Load the data to the DAC.

Parameters:

data (List[np.ndarray]) – list of array for data (one array per channel).

abstract set_emission_parameters(**_kwargs) None

Set the emission parameters.

abstract start_emission() None

Start the emission.

abstract stop_emission() None

Stop the emission.