lab_driver.charac_device
#
Module Contents#
Classes#
Class with settings for testing the electrical device (DUT) Attributes: system_id: String with system name or ID vss: Floating with minimal applied voltage vdd: Floating with maximal applied voltage test_rang: List with [min, max] analog ranges for testing the N-bit ADC (like: [0, 65535]) daq_ovr: Integer number for oversampling of DAQ system num_rpt: Integer of completes cycles to run DAQ delta_steps: Float of intermediate steps in changing values sleep_sec: Sleeping seconds between each DAQ setting |
|
Data#
API#
- class lab_driver.charac_device.SettingsDevice[source]#
Class with settings for testing the electrical device (DUT) Attributes: system_id: String with system name or ID vss: Floating with minimal applied voltage vdd: Floating with maximal applied voltage test_rang: List with [min, max] analog ranges for testing the N-bit ADC (like: [0, 65535]) daq_ovr: Integer number for oversampling of DAQ system num_rpt: Integer of completes cycles to run DAQ delta_steps: Float of intermediate steps in changing values sleep_sec: Sleeping seconds between each DAQ setting
- system_id: str#
None
- vss: float#
None
- vdd: float#
None
- test_rang: list#
None
- daq_ovr: int#
None
- num_rpt: int#
None
- delta_steps: float#
None
- sleep_sec: float#
None
- get_cycle_stimuli_input_sawtooth() numpy.ndarray [source]#
Getting the numpy array with a stimuli with sawtooth waveform
- get_cycle_stimuli_input_sinusoidal() numpy.ndarray [source]#
Getting the numpy array with a stimuli input with sinusoidal waveform
- lab_driver.charac_device.DefaultSettingsDevice#
‘SettingsDevice(…)’
- class lab_driver.charac_device.CharacterizationDevice(folder_reference: str)[source]#
Bases:
lab_driver.charac_common.CharacterizationCommon
Initialization
Class for handling the measurement routine for characterising an electrical device
- Parameters:
folder_reference – String with source folder to find the Main Repo Path
- settings: lab_driver.charac_device.SettingsDevice#
None
- run_test_transfer(func_stim, func_daq, func_sens, func_resp, func_beep) dict [source]#
Function for characterizing the transfer function of the ADC
- Parameters:
func_stim – Function to build the test signal (sawtooth, sinusoidal, triangular, pulse) from settings
func_daq – Function for setting the voltage/current value on DAQ with input params (data)
func_sens – Function for sensing the applied voltage/current (measured) from DAQ device
func_resp – Function for getting the applied voltage/current (output) from DAQ device
func_beep – Function for do a beep in DAQ
- Returns:
Dictionary with [‘stim’: input test signal of one repetition, ‘settings’: Settings, ‘rpt
’: Test results]