nqrduck_autotm.model#
Classes
|
|
|
|
|
This class is used to store a lookup table for tuning and matching of electrical probeheads. |
|
|
|
|
|
|
|
This class is used to store a saved position for tuning and matching of electrical probeheads. |
|
|
|
- class nqrduck_autotm.model.AutoTMModel(*args: Any, **kwargs: Any)#
- add_data_point(frequency: float, return_loss: float, phase: float) None#
Add a data point to the model. These data points are our intermediate data points read in via the serial connection. They will be saved in the according properties later on.
- add_saved_position(frequency: float, tuning_position: int, matching_position: int) None#
Add a saved position to the model.
- available_devices_changed#
alias of
list
- clear_data_points() None#
Clear all data points from the model.
- data_points_changed#
alias of
list
- delete_saved_position(position: SavedPosition) None#
Delete a saved position from the model.
- property frequency_sweep_end#
The timestamp for when the frequency sweep has been ended. This is used for timing of the frequency sweep.
- property frequency_sweep_start#
The timestamp for when the frequency sweep has been started. This is used for timing of the frequency sweep.
- init_load_calibration()#
This method is called when a frequency sweep has been started for a load calibration in this way the module knows that the next data points are for a load calibration.
- init_open_calibration()#
This method is called when a frequency sweep has been started for an open calibration in this way the module knows that the next data points are for an open calibration.
- init_short_calibration()#
This method is called when a frequency sweep has been started for a short calibration in this way the module knows that the next data points are for a short calibration.
- property measurement#
The measurement property is used to store the current measurement. This is the measurement that is shown in the main S11 plot
- saved_positions_changed#
alias of
list
- property serial#
The serial property is used to store the current serial connection.
- serial_data_received#
alias of
str
- class nqrduck_autotm.model.ElectricalLookupTable(start_frequency: float, stop_frequency: float, frequency_step: float)#
- add_voltages(tuning_voltage: float, matching_voltage: float) None#
Add a tuning and matching voltage for the last started frequency to the lookup table.
- Parameters:
tuning_voltage (float) – The tuning voltage for the given frequency.
matching_voltage (float): The matching voltage for the given frequency.
- get_next_frequency() float#
This method returns the next frequency for which the tuning and matching voltage is not yet set.
- Returns:
The next frequency for which the tuning and matching voltage is not yet set.
- Return type:
float
- get_voltages(frequency: float) tuple#
Get the tuning and matching voltage for the given frequency.
- Parameters:
frequency (float) – The frequency for which the tuning and matching voltage should be returned.
- Returns:
The tuning and matching voltage for the given frequency.
- Return type:
tuple
- init_voltages() None#
Initialize the lookup table with default values.
- is_incomplete() bool#
This method returns True if the lookup table is incomplete, i.e. if there are frequencies for which no the tuning or matching voltage is none.
- Returns:
True if the lookup table is incomplete, False otherwise.
- Return type:
bool
- class nqrduck_autotm.model.LookupTable(start_frequency: float, stop_frequency: float, frequency_step: float)#
This class is used to store a lookup table for tuning and matching of electrical probeheads.
- get_entry_number(frequency: float) int#
This method returns the entry number of the given frequency.
- Parameters:
frequency (float) – The frequency for which the entry number should be returned.
- Returns:
The entry number of the given frequency.
- Return type:
int
- class nqrduck_autotm.model.MechanicalLookupTable(start_frequency: float, stop_frequency: float, frequency_step: float)#
- add_positions(tuning_position: int, matching_position: int) None#
Add a tuning and matching position for the last started frequency to the lookup table.
- Parameters:
tuning_position (int) – The tuning position for the given frequency.
matching_position (int): The matching position for the given frequency.
- get_next_frequency() float#
This method returns the next frequency for which the tuning and matching position is not yet set.
- Returns:
The next frequency for which the tuning and matching position is not yet set.
- Return type:
float
- get_positions(frequency: float) tuple#
Get the tuning and matching position for the given frequency.
- Parameters:
frequency (float) – The frequency for which the tuning and matching position should be returned.
- Returns:
The tuning and matching position for the given frequency.
- Return type:
tuple
- init_positions() None#
Initialize the lookup table with default values.
- is_incomplete() bool#
This method returns True if the lookup table is incomplete, i.e. if there are frequencies for which no the tuning or matching position is none.
- Returns:
True if the lookup table is incomplete, False otherwise.
- Return type:
bool
- class nqrduck_autotm.model.SavedPosition(frequency: float, tuning_position: int, matching_position: int)#
This class is used to store a saved position for tuning and matching of electrical probeheads.