sknrf.device.simulator.keysight.ads module

class sknrf.device.simulator.keysight.ads.ADSSimulator(netlist_filename, dataset_filename, simulator_type, simulator_name, config_filename='', remote_host='', remote_user='', remote_password='', remote_key_filename='', remote_port=22)

Bases: AbstractSimulator

Remote Control over Keysight ADS Simulator using read/write of ADS netlist file and read of .mat dataset file Used to write input conditions to an existing ADS netlist file, performs the simulation, and then collect simulation results from a .mat dataset file

set_config_filename(config_filename)
property simulator_type

ADS Simulator Type get method. :return: simulator_name eg(“HB”)

property simulator_name

ADS Simulator Name get method. :return: simulator_name eg(“HB1”)

property simulator_id

ADS Simulator ID get method. :return simulator_id: simulator_name.simulator_type

preset()

Preset the simulation netlist :return:

add(name, value)

Adds variable name to the end of the netlist with value :param name: added variable name :param value: added variable value

add_block(block)

Adds general purpose code-block to the netlist file :param block: A netlist code block

read_netlist(name)

Reads the value of a netlist variable “name”. Sub-component variables are specified with “group.name” notation :param name: name of the netlist variable :return value: value of the netlist variable

write(name, value, add_string_quotes=True)

Writes the “value” of netlist variable “name”. Sub-component variables are specified with “group.name” notation :param name: name of the netlist variable :param value: value of the netlist variable :param add_string_quotes: optional flag to wrap string values with double quotes, default=True

import_iq(shell_options='', timeout=20)
measure(shell_options='', timeout=50)

Run the simulation in the command line :param shell_options: shell option string :param timeout: simulation time-out in seconds :return (result, log): simulator exit status (0 = success), shell stdout string

read(name, sweep_idx=slice(None, None, None), freq_idx=slice(None, None, None), time_idx=slice(None, None, None))

Reads the value of a dataset variable “name”[sweep_idx, freq_idx, time_idx] :param name: name of dataset variable :param sweep_idx: parameter sweep index :param freq_idx: frequency sweep index :param time_idx: time sweep index :return value: 3D array (sweep_idx.size, freq_idx.size, time_idx.size) of dataset value