DACADC
Module for synchronised ADC and DAC.
- class qosst_hal.dacadc.FakeDACADC
Fake DACADC to be used as a default class.
- close() None
Close the fake hardware (do nothing).
- get_adc_data() List[ndarray]
Return the acquired data, In this case, it always return an empty list.
- Returns:
an empty list.
- Return type:
List[np.ndarray]
- load_dac_data(data: List[ndarray]) None
Load the DAC data. This actually does nothing for the fake hardware.
- Parameters:
data (List[np.ndarray]) – data to load in the DAC.
- open() None
Open the fake hardware (do nothing).
- set_parameters(**_kwargs) None
Set the parameters for the fake hardware (do nothing).
- start() None
Start DAC and ADC for the fake hardware (do nothing).
- stop() None
Stop DAC and ADC for the fake hardware (do nothing).
- class qosst_hal.dacadc.GenericDACADC
Generic class for DACADC.
A DACADC should implement:
open: open connection with the device.
close: close connection with the device.
set_parameters: set the parameters.
load_dac_data: load the DAC data.
get_adc_data: get the ADC data.
start: start the emission.
stop: stop the emission.
- __str__() str
Return str(self).
- abstract get_adc_data() List[ndarray]
Get the data from the ADC
- Returns:
list of array for data (one arrya per channel).
- Return type:
List[np.ndarray]
- abstract load_dac_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_parameters(**_kwargs) None
Set the parameters.
- abstract start() None
Start the emission.
- abstract stop() None
Stop the emission.