qtics.instruments.types package#

Common interfaces of instrument types.

Submodules#

qtics.instruments.types.source module#

Sources: RF generators and DC sources.

Optional capabilities (e.g. power of an RF source, current of a DC source) are documented here and implemented only by the drivers supporting them.

class qtics.instruments.types.source.DCSource(name: str)[source]#

Bases: Instrument

DC voltage source (e.g. a power supply).

Optional: current [A], voltage_limit [V], current_limit [A], channel.

abstract property output: bool#

Whether the output is on.

abstract property voltage: float#

Output voltage [V].

class qtics.instruments.types.source.RFSource(name: str)[source]#

Bases: Instrument

RF signal generator.

Optional: power [dBm].

abstract property frequency: float#

Output frequency in continuous wave mode [Hz].

abstract property output: bool#

Whether the RF output is on.

qtics.instruments.types.swept module#

Swept analyzers: vector network analyzers and spectrum analyzers.

Frequencies are in Hz, powers in dBm. f_start, f_stop, f_center and f_span are coupled: setting one changes the others.

class qtics.instruments.types.swept.SpectrumAnalyzer(name: str)[source]#

Bases: SweptInstrument

Spectrum analyzer.

abstract property rbw: float#

Resolution bandwidth [Hz].

class qtics.instruments.types.swept.SweptInstrument(name: str)[source]#

Bases: Instrument

Instrument acquiring a trace over a frequency sweep.

abstract property continuous: bool#

Whether the instrument sweeps continuously.

abstract property f_center: float#

Center frequency of the sweep [Hz].

abstract property f_span: float#

Frequency span of the sweep [Hz].

abstract property f_start: float#

Start frequency of the sweep [Hz].

abstract property f_stop: float#

Stop frequency of the sweep [Hz].

abstract property points: int#

Number of points of the sweep.

abstract read_freqs() → ndarray[source]#

Read the frequencies of the trace points [Hz].

abstract read_trace_data() → ndarray[source]#

Read the data of the current trace.

snapshot() → Tuple[ndarray, ndarray][source]#

Perform a single sweep and return (frequencies, trace).

abstract sweep()[source]#

Perform a single sweep and wait for its completion.

class qtics.instruments.types.swept.VNA(name: str)[source]#

Bases: SweptInstrument

Vector network analyzer.

abstract property averages: int#

Number of sweeps averaged.

abstract property ifbw: float#

Intermediate frequency bandwidth [Hz].

abstract property power: float#

Output power [dBm].

abstract property s_parameter: str#

Measured scattering parameter, e.g. “S21”.