
Programming Examples
R&S
®
ZNB/ZNBT
1370
User Manual 1173.9163.02 ─ 53
// with CMD = 0110 0000b (see RFFE specification 'Register Read')
// | 0001 1101b (register address)
// = 0111 1101b
// = 0x7D
:CONTROL1:RFFE1:COMMAND:DATA 'B7D'
:CONTROL1:RFFE1:COMMAND:SEND? 1 // Read 1Byte. Result is the Product ID
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
Condensed Programming Examples