FAQs from Rohde & Schwarz

All four S-parameter remote set up

Question

How can we do a remote setup of the screen for all four S-parameters?

Answer

This is the SCPI command sequence. It works for the ZVA and the ZVB. The ZVL does not have the command "CALC1:DATA:ALL? SDAT" to read all traces at once. Otherwise, everything else works for the ZVL, too.

ZVB: *RST

ZVB: *CLS

ZVB: SYSTEM:DISPLAY:UPDATE ON

ZVB: *IDN?

;------------------------------

; set screen for S11

ZVB: CALCulate1:PARameter:SDEFine 'TRC1', 'S11'

ZVB: CALCulate1:FORMat SMITH

ZVB: DISPlay:WINDow1:STATe ON

ZVB: DISPlay:WINDow1:TRACe:FEED 'TRC1'

;------------------------------

; set screen for S12

ZVB: CALCulate1:PARameter:SDEFine 'TRC2', 'S12'

ZVB: CALCulate1:FORMat MLOG

ZVB: DISPlay:WINDow2:STATe ON

ZVB: DISPlay:WINDow2:TRACe:FEED 'TRC2'

;------------------------------

; set screen for S21

ZVB: CALCulate1:PARameter:SDEFine 'TRC3', 'S21'

ZVB: CALCulate1:FORMat MLOG

ZVB: DISPlay:WINDow3:STATe ON

ZVB: DISPlay:WINDow3:TRACe:FEED 'TRC3'

;------------------------------

; set screen for S22

ZVB: CALCulate1:PARameter:SDEFine 'TRC4', 'S22'

ZVB: CALCulate1:FORMat SMITH

ZVB: DISPlay:WINDow4:STATe ON

ZVB: DISPlay:WINDow4:TRACe:FEED 'TRC4'

;------------------------------

; set to single sweep and perform a measurement

ZVB: INIT:CONT OFF

ZVB: INIT

ZVB: *OPC?

;------------------------------

; Read trace 1 S11

ZVB: CALC1:PAR:SEL 'TRC1'

ZVB: CALC1:DATA? SDAT

; Read trace 2 S12

ZVB: CALC1:PAR:SEL 'TRC2'

ZVB: CALC1:DATA? SDAT

; Read trace 3 S21

ZVB: CALC1:PAR:SEL 'TRC3'

ZVB: CALC1:DATA? SDAT

; Read trace 4 S22

ZVB: CALC1:PAR:SEL 'TRC4'

ZVB: CALC1:DATA? SDAT

;------------------------------

;------------------------------

; Or read all traces at once

ZVB: CALC1:DATA:ALL? SDAT

;------------------------------

ZVB: SYSTEM:ERROR?