sknrf.device.instrument.rfsource.base module

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

Bases: AbstractDevice

RFSource base driver for CW measurements.

Base class for all RFSource instruments including:

  • NoRFSourcePulsed.

  • NoRFSourceModulated.

device_id = 8
signal_list = ['a_p']
transforms_list = [<Domain.TF: 0>, <Domain.FF: 1>, <Domain.FT: 2>, <Domain.TT: 3>]
display_order = ['on', 'initialized', 'port', 'f0', 'a_p', 'v_s', 'num_harmonics', 'harmonics', '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_s

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 RF Incident Power.

Sets the iq data of the Available Source Power if the device is initialized.

Args:

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

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

Bases: NoRFSource

RFSource base driver for pulse modulated measurements.

Base class for pulse modulated RFSource instruments including:

  • NoRFSourceModulated.

display_order = ['on', 'initialized', 'port', 'f0', 'a_p', 'v_s', 'delay', 'pulse_width', 'period', 'num_harmonics', 'harmonics', '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 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 RF Incident Power.

Sets the iq data of the Available Source Power 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.rfsource.base.NoRFSourceModulated(error_model, port, config_filename='', **kwargs)

Bases: NoRFSourcePulsed

RFSource base driver for arbitrary modulated measurements.

Base class for arbitrary modulated RFSource instruments.

display_order = ['on', 'initialized', 'port', 'f0', 'a_p', 'v_s', 'delay', 'pulse_width', 'period', 'iq_files', 'num_harmonics', 'harmonics', '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 RF Incident Power.

Sets the iq data of the Available Source Power.

Keyword Args:

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