
Programming Examples
R&S
®
ZNB/ZNBT
1243
User Manual 1173.9163.02 ─ 38
// Read Product ID. Register address of product ID is noted in the DUT specification.
// This Example: Product ID is stored at address 0x1D.
// Therefore SA = 0xB; CMD = 0x7D;
// 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
Condensed Programming Examples