src.services.flc_mini.adc_service package¶
Submodules¶
src.services.flc_mini.adc_service.set_adc module¶
- class src.services.flc_mini.adc_service.set_adc.ADCSettings¶
Bases:
object- continuous_offloading(hi: HardwareInterface, adc_channel: int)¶
Offload and read: function to offload the data from the ADC and read it continuously. The FPGA is constantly sending the data to the PC, where the data is displayed every second. To stop the process, trigger the “stop offload” button
- get_data_from_adc(hi: HardwareInterface, timeout: float = 1.0) list[list[int]]¶
Get data from ADC: function to get the data from the ADC
- get_last_address(hi: HardwareInterface)¶
- save_data(plot: bool = False, save_to_file: bool = False)¶
- Save data: function to save the data from the ADC to a file
filename: name of the file where the data is saved
- select_operating_mode(hi: HardwareInterface, word: EADCWords)¶
- operating mode select: function to select the operating mode of the ADC
word: operating mode value
- start_acquisition(hi: HardwareInterface)¶
Start acquisition: with this function the FPGA starts reading data from the ADC and writes it continuously to the BRAM from address 0 to the last set address and then starts writing from address 0 again…
- stop_offloading(hi: HardwareInterface)¶
Stop offloading: with this function the FPGA stops sending the data to the PC
- write_address_size(hi: HardwareInterface, adc_addr_size: uint32)¶
- address size select: function to select the address size of the ADC
adc_addr_size: address size value
- write_channel(hi: HardwareInterface, adc_channel: int)¶
- channel select: function to select the ADC channel
adc_channel: ADC channel value
- write_word(hi: HardwareInterface, adc_word: EADCWords)¶
Function to write a 16 bit command to the ADC. FPGA works as a bypass. adc_word: 32 bit binary value in a string format