qtics.instruments.rohde_schwarz package#
Rohde & Schwarz instruments.
Submodules#
qtics.instruments.rohde_schwarz.fsv3030 module#
Controller of the R&S FSV3030 Spectrum Analyzer.
- class qtics.instruments.rohde_schwarz.fsv3030.FSV3030(transport: Transport | str, name: str = 'FSV3030', **transport_kwargs)[source]#
Bases:
SpectrumAnalyzer,SCPIInstrumentR&S FSV3030 Spectrum Analyzer by Rohde & Schwarz.
- read_max_hold(trace: int = 1) ndarray[source]#
Read the max-hold trace accumulated since set_max_hold, without resetting.
- read_trace_data(trace: int = 1) ndarray[source]#
Read the trace (in dBm) as a numpy array, without sweeping.
qtics.instruments.rohde_schwarz.sma100b module#
Controller of the R&S SMA100B RF and microwave signal generator.
- class qtics.instruments.rohde_schwarz.sma100b.SMA100B(transport: Transport | str, name: str = 'SMA100B', **transport_kwargs)[source]#
Bases:
RFSource,SCPIInstrumentR&S SMA100B RF and microwave signal generator by Rohde & Schwarz.
The RF level readback depends on the power unit set with
p_unit. To comply with theRFSourceinterface (powerin dBm), the unit is set to dBm right after connecting.p_unitstays available, but changing it makespowerread and write in that unit.Frequencies are the displayed ones,
f_rf * f_mult + f_offset: their range follows the multiplier and offset of a downstream instrument. These are read when connecting and tracked by thef_mult/f_offsetproperties (a change from the front panel is seen after reading them or reconnecting).- cal(opt: str) str[source]#
Query the device to perform internal adjustments.
Valid options to query: - MEAS: Starts all internal adjustments that do not need external measuring equipment - DATE: Queries the date of the most recently executed full adjustment - INF: Queries the current state of the internal adjustment - TEMP: Queries the temperature deviation compared to the calibration temperature - TIME: Queries the time elapsed since the last full adjustment
- default_transport#
alias of
SocketTransport
- diag(opt: str) str[source]#
Query the device to perform diagnosis and servicing.
Valid options to query: - OTIM: Queries the operating hours of the instrument so far - POC: Queries how often the instrument has been turned on so far
- reset(defaults: bool = True)[source]#
Reset the instrument (multiplier 1, offset 0), then restore the defaults.
- rf_max = 20000000000.0#
Maximum RF output frequency [Hz], depends on the frequency option.
- rf_min = 8000.0#
Minimum RF output frequency [Hz].
qtics.instruments.rohde_schwarz.znb module#
Controller of the R&S ZNB Vector Network Analyzer.
- class qtics.instruments.rohde_schwarz.znb.ZNB(transport: Transport | str, name: str = 'ZNB', max_points: int = 100001, channel: int = 1, **transport_kwargs)[source]#
Bases:
VNA,SCPIInstrumentR&S ZNB Vector Network Analyzer by Rohde & Schwarz.
- create_trace(trace_name: str, s_parameter: str)[source]#
Create a new trace with specified S-parameter.
- property harmonic_grid: bool#
Status of automatic harmonic grid for step response time domain measurements.
- measure_standard(standard, port=None)[source]#
Measure a calibration standard.
- Parameters:
standard – Standard type (“OPEN”, “SHORT”, “LOAD”, “THROUGH”)
port – Port number for single-port standards
- read_trace_data(yformat=None) ndarray[source]#
Read unformatted IQ data (complex) or formatted trace data.
The data of the last sweep is read, call
sweep()first.
- snapshot(yformat=None, **kwargs) Tuple[ndarray, ndarray][source]#
Set the given parameters, sweep once and return (frequencies, trace).
- start_calibration(cal_type='TOSM', ports=None)[source]#
Start a calibration procedure.
- Parameters:
cal_type – Calibration type (“TOSM”, “SOLT”, “FOPORT”, etc.)
ports – List of ports to calibrate (e.g., [1, 2])
- survey(f_win_start, f_win_end, f_win_size, **kwargs) Tuple[ndarray, ndarray][source]#
Execute multiple scans with higher resolution.