sknrf.device.instrument.lfsource.base module

class sknrf.device.instrument.lfsource.base.NoLFSource(error_model, port, config_filename='', **kwargs)

Bases: AbstractDevice

LFSource base driver for CW measurements.

Base class for all LFSource instruments including:

  • NoLFSourcePulsed.

  • NoLFSourceModulated.

device_id = 1
signal_list = ['v']
transforms_list = ['Envelope', 'Time', 'Time Envelope', 'Frequency', 'Power']
display_order = ['on', 'initialized', 'port', 'v', 'trigger_delay']
connect_handles()

Connect to the devices handles and store references in the handles dictionary.

preset()

Preset device handles that have have unique connections.

property a_p

Emulate PyProperty_Type() in Objects/descrobject.c

property v

Emulate PyProperty_Type() in Objects/descrobject.c

property f0
property num_harmonics

int: The total number of harmonics available to the device driver.

property harmonics

ndarray: The actual harmonic indicies that are controlled by the device driver.

property freq

ndarray: The subsection of Settings.freq available to the device driver.

property time

ndarray: The subsection of Settings.time available to the device driver.

set_iq(iq=None)

Sets the normalized iq signal of the Low-Frequency Voltage.

Sets the iq data of the Low-Frequency Voltage if the device is initialized.

Args:

iq (None/ndarray): multi-harmonic iq waveform [freq, time], default is None.

class sknrf.device.instrument.lfsource.base.NoLFSourcePulsed(error_model, port, config_filename='', **kwargs)

Bases: NoLFSource

LFSource base driver for pulse modulated measurements.

Base class for pulse modulated LFSource instruments including:

  • NoLFSourceModulated.

display_order = ['on', 'initialized', 'port', 'v', 'delay', 'pulse_width', 'period', 'trigger_delay']
connect_handles()

Connect to the devices handles and store references in the handles dictionary.

preset()

Preset device handles that have have unique connections.

property v

Emulate PyProperty_Type() in Objects/descrobject.c

property delay

float: Pulse modulation delay time in s.

property pulse_width

float: Pulse modulation pulse width time.

set_iq(iq=None)

Sets the normalized iq signal of the Low-Frequency Voltage.

Sets the iq data of the Low-Frequency Voltage to zero outside of the modulated pulse.

Keyword Args:

iq (None/ndarray): multi-harmonic iq waveform [freq, time], default is None.

class sknrf.device.instrument.lfsource.base.NoLFSourceModulated(error_model, port, config_filename='', **kwargs)

Bases: NoLFSourcePulsed

LFSource base driver for arbitrary modulated measurements.

Base class for arbitrary modulated LFSource instruments.

display_order = ['on', 'initialized', 'port', 'v', 'delay', 'pulse_width', 'period', 'iq_files', 'trigger_delay']
connect_handles()

Connect to the devices handles and store references in the handles dictionary.

preset()

Preset device handles that have have unique connections.

property iq_files

list[tb.file]: Multi-harmonic modulation IQ file.

set_iq(iq=None)

Sets the normalized iq signal of the Low-Frequency Voltage.

Sets the iq data of the Low-Frequency Voltage.

Keyword Args:

iq (None/ndarray): multi-harmonic iq waveform [freq, time], default is None.