Programming examples
R&S
®
ZNB/ZNBT
1526
User Manual 1173.9163.02 ─ 62
Configuring RFFE sweep sequencer (non-segmented sweep)
For non-segmented sweeps the RFFE device will be configured in preparation of every
sweep.
*RST
// Enable GPIO 5 and RFFE interface 2 for Sweep Sequencer
:CONTROL:GPIO5:STATe ON
:CONTrol:RFFE2:SETTings:STATe ON
// Step 1
:CONTrol:SEQuence1:GPIO5:VOLTage 0V
:CONTrol:SEQuence1:RFFE2:COMMand:DATA '12345AF'
// Step 2
:CONTrol:SEQuence2:GPIO5:VOLTage -1V
// After step 2, wait for 3 ms
:CONTrol:SEQuence2:DELay 3ms
// Step 3
:CONTrol:SEQuence3:GPIO5:VOLTage 1V
// During sweep, output voltage will be 1V
Configuring RFFE sweep Sequencer (segmented sweep)
For segmented sweeps, the RFFE device will be configured in preparation of every
segment.
*RST
// Define segmented sweep
:SENSE1:SEGMENT1:INSERT 1MHZ, 1.5MHZ, 111, -21DBM, 0.5S, 0, 10KHZ
:SENSE1:SEGMENT2:INSERT 2MHZ, 2.5MHZ, 222, -22DBM, 0.5S, 0, MAX
:SENSE1:SEGMENT3:INSERT 3MHZ, 3.5MHZ, 133, -23DBM, 0.5S, 0, 1KHZ
// Activate segemented sweep
:SENSe:SWEep:TYPE SEGMent
// Enable GPIO 4 and RFFE interfaces 1 for Sweep Sequencer
:CONTROL:GPIO4:STATe ON
:CONTrol:RFFE1:SETTings:STATe ON
// Set default voltage for GPIO Sweep Sequencer list
:CONTROL:GPIO4:VOLTAGE:DEF 0.5V
// Define command sequences per sweep segment
// Segment 1: A single step
:CONT:SEGM1:SEQ1:RFFE1:COMMAND:DATA '12311'
:CONT:SEGM1:SEQ1:GPIO4:VOLT 1.2V
// Segment 3: Two steps
:CONT:SEGM3:SEQ1:RFFE1:COMMAND:DATA '3EF11'
:CONT:SEGM3:SEQ2:RFFE1:COMMAND:DATA '3EF22'
Condensed programming examples