mpylab.device.nw_rs_zvl moduleΒΆ
Driver for the Rohde & Schwarz ZVL network analyzer.
- class mpylab.device.nw_rs_zvl.NETWORKANALYZER(SearchPaths=None)
Bases:
NETWORKANALYZERR&S ZVL network analyzer driver implemented on top of the DRIVER base class.
- CreateTrace(tracename, sparam)
Create a new trace, assign its measurement parameter and attach it to the active window.
- CreateWindow(windowName)
Create a logical window object and enable the corresponding analyzer display window.
- DelTrace()
Delete the currently active trace from the analyzer and from local bookkeeping.
- DelWindow()
Delete the currently active window and clear dependent active-trace state.
- GetChannel()
Return the analyzer channel number owned by this driver instance.
- GetSparameter()
Return the measurement parameter assigned to the active trace.
- GetSpectrum()
Return stimulus and formatted trace data for the active trace.
The method prefers
CALC:DATA:STIM?for the x-axis and validates that the formatted trace data returned byFDATcontains exactly one value per sweep point.
- GetSweepCount()
Return the configured number of sweeps for single-sweep operation.
- GetSweepMode_rmap = {'0': 'SINGLE', '1': 'CONTINUOUS', 'OFF': 'SINGLE', 'ON': 'CONTINUOUS'}
- GetSweepType_rmap = {'LIN': 'LINEAR', 'LOG': 'LOGARITHMIC', 'SEGM': 'SEGMENT'}
- GetTrace()
Return the active trace name together with its currently assigned measurement parameter.
- GetWindow()
Return the name of the currently active window.
- Init(ini=None, channel=None, ignore_bus=None)
Initialize communication, create the channel/window/trace setup and apply INI settings.
- NETWORKANALYZERS = []
- NewSweepCount()
Start a new single-sweep measurement sequence.
- SetChannel(chan)
Reject channel switching because each driver instance is permanently bound to one channel.
- SetSparameter(sparam)
Change the measurement parameter of the active trace.
- SetSweepCount(sweepCount)
Configure the sweep count and switch between single and continuous sweep mode as needed.
- SetTrace(traceName)
Select an existing trace as the active trace for trace-related commands.
- SetWindow(windowName)
Select an existing window as the active window for subsequent operations.
- close()
Best-effort cleanup of traces, windows and the channel owned by this instance.
- getChannelNumber()
Return the internal channel number used for global instance bookkeeping.
- sweepMode_possib_map = {'CONTINUOUS': 'ON', 'SINGLE': 'OFF'}
- class mpylab.device.nw_rs_zvl.TRACE(nw, name, win, sparam)
Bases:
objectIn-memory representation of one analyzer trace owned by a driver instance.
- TRACES = []
- getInternName()
Return the unique instrument-side trace name.
- getName()
Return the user-facing trace name.
- getTraceWindowNumber()
Return the display trace number associated with this trace.
- getWindow()
Return the window object this trace is attached to.
- getsparameter()
Return the measurement parameter assigned to this trace.
- class mpylab.device.nw_rs_zvl.WINDOW(name)
Bases:
objectIn-memory representation of one analyzer display window.
- WINDOWS = []
- getInternName()
Return the analyzer window identifier as a string.
- getInternNumber()
Return the numeric window identifier used by the analyzer.
- getName()
Return the user-facing window name.