stoner_measurement.instruments.network_analyser.NetworkAnalyser¶
- class stoner_measurement.instruments.network_analyser.NetworkAnalyser(transport: BaseTransport, protocol: BaseProtocol, *, auto_check_errors: bool = True)[source]¶
Bases:
BaseInstrumentAbstract base class for vector network analysers.
- acquire(channel: int = 1, traces: tuple[int, ...] | None = None, *, timeout: float | None = None, corrected: bool = True) NetworkSweep[source]¶
Acquire one synchronized sweep and return matching trace arrays.
- abstractmethod get_averaging(channel: int = 1) tuple[bool, int][source]¶
Return averaging enable state and count.
- abstractmethod get_capabilities() NetworkAnalyserCapabilities[source]¶
Return runtime capability metadata.
- abstractmethod get_continuous(channel: int = 1) bool[source]¶
Return whether continuous acquisition is enabled.
- get_correction_enabled(channel: int = 1) bool[source]¶
Return whether vector error correction is enabled.
- get_cw_frequency(channel: int = 1) float[source]¶
Return the fixed frequency used for a power sweep.
- get_external_pulse_modulation(channel: int = 1, port: int = 1) bool[source]¶
Return whether external TTL pulse gating is enabled for a source port.
- abstractmethod get_if_bandwidth(channel: int = 1) float[source]¶
Return channel IF bandwidth in hertz.
- abstractmethod get_measurement_parameter(channel: int = 1, trace: int = 1) str[source]¶
Return the measurement parameter assigned to a trace.
- get_power_sweep_range(channel: int = 1) tuple[float, float][source]¶
Return power-sweep start and stop levels in dBm.
- abstractmethod get_source_power(channel: int = 1, port: int | None = None) float[source]¶
Return ordinary source power in dBm.
- abstractmethod get_sweep_configuration(channel: int = 1) SweepConfiguration[source]¶
Return the sweep configuration for channel.
- abstractmethod get_trigger_source() NetworkAnalyserTriggerSource[source]¶
Return the active trigger source.
- has_external_pulse_modulator(channel: int = 1) bool[source]¶
Return whether a TTL-controlled external RF pulse modulator exists.
- abstractmethod perform_single_sweep(channel: int = 1) None[source]¶
Block until one complete sweep of channel has finished.
- abstractmethod read_complex(channel: int = 1, trace: int = 1, *, corrected: bool = True) ndarray[source]¶
Read complex trace values independently of display format.
- abstractmethod read_stimulus(channel: int = 1, trace: int = 1) ndarray[source]¶
Read the measured X-axis values for a trace.
- abstractmethod set_averaging(enabled: bool, count: int | None = None, channel: int = 1) None[source]¶
Set averaging enable state and optionally its count.
- abstractmethod set_continuous(enabled: bool, channel: int = 1) None[source]¶
Enable or disable continuous acquisition.
- set_correction_enabled(enabled: bool, channel: int = 1) None[source]¶
Enable or disable vector error correction.
- set_cw_frequency(value_hz: float, channel: int = 1) None[source]¶
Set the fixed frequency used for a power sweep.
- set_external_pulse_modulation(enabled: bool, channel: int = 1, port: int = 1) None[source]¶
Enable or disable external TTL on/off gating for a source port.
- abstractmethod set_if_bandwidth(value_hz: float, channel: int = 1) None[source]¶
Set channel IF bandwidth in hertz.
- abstractmethod set_measurement_parameter(parameter: str, channel: int = 1, trace: int = 1) None[source]¶
Assign a measurement parameter to a trace.
- set_power_sweep_range(start_dbm: float, stop_dbm: float, channel: int = 1) None[source]¶
Set power-sweep start and stop levels in dBm.
- abstractmethod set_source_power(value_dbm: float, channel: int = 1, port: int | None = None) None[source]¶
Set ordinary source power in dBm without enabling RF output.
- abstractmethod set_sweep_configuration(configuration: SweepConfiguration, channel: int = 1) None[source]¶
Apply a sweep configuration to channel.
- abstractmethod set_trigger_source(source: NetworkAnalyserTriggerSource) None[source]¶
Set the trigger source.