lab_driver.charac_device#

Module Contents#

Classes#

SettingsDevice

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

CharacterizationDevice

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

static get_date_string() str[source]#

Function for getting the datetime in string format

get_common_mode_voltage() float[source]#

Getting the Common Mode Voltage (VCM) of the DUT

get_num_steps() int[source]#

Function for getting the number of steps in testing

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

get_cycle_stimuli_input_triangular() numpy.ndarray[source]#

Getting the numpy array with a stimuli input with triangular waveform

get_cycle_empty_array() numpy.ndarray[source]#

Function for generating an empty numpy array with right size

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]