18.12.2012 Views

R&S FSQ Signal Analyzer - Rohde & Schwarz

R&S FSQ Signal Analyzer - Rohde & Schwarz

R&S FSQ Signal Analyzer - Rohde & Schwarz

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

R&S <strong>FSQ</strong> Remote Control – Programming Examples<br />

More Complex Programming Examples<br />

During the measurement, each pulse is mapped into a pixel of the screen, i.e. any<br />

change of the trace can be detected only at the left-hand edge of the screen. Maximum<br />

measurement speed is as usual achieved with the display switched off.<br />

In the example below, a GSM pulse sequence of 8 pulses is measured with 5 µs<br />

trigger offset, 434 µs measurement time/pulse, video trigger with 50% trigger threshold,<br />

and peak detection:<br />

REM ************************************************************************<br />

Public Sub MultiBurstPower()<br />

result$ = Space$(200)<br />

'--------- R&S <strong>FSQ</strong> default setting -------------------------<br />

CALL SetupStatusReg<br />

'Configure status register<br />

status = viWrite(analyzer, "*RST", 4, retCnt)<br />

'Reset instrument<br />

status = viWrite(analyzer, "INIT:CONT OFF", 13, retCnt)<br />

'Single sweep mode<br />

status = viWrite(analyzer, "SYST:DISP:UPD OFF", 17, retCnt)<br />

'OFF: display off<br />

'--------- Perform measurement and query results -----------cmd$<br />

= "MPOW? "<br />

cmd$ = cmd$ + "935.2 MHZ,"<br />

'Center frequency<br />

cmd$ = cmd$ + "1MHZ,"<br />

'Resolution bandwidth<br />

cmd$ = cmd$ + "434US,"<br />

'Measurement time<br />

cmd$ = cmd$ + "VID,"<br />

'Trigger source<br />

cmd$ = cmd$ + "50PCT,"<br />

'Trigger threshold<br />

cmd$ = cmd$ + "1US,"<br />

'Trigger offset, must be > 125 ns<br />

cmd$ = cmd$ + "PEAK,"<br />

'Peak detector<br />

cmd$ = cmd$ + "8"<br />

'Number of bursts<br />

status = viWrite(analyzer, cmd$, 47, retCnt)<br />

status = viRead(analyzer, result$, 100, retCnt)<br />

'Read results<br />

Print result$<br />

END SUB<br />

REM ************************************************************************<br />

Operating Manual 1313.9681.12 - 01 7.21

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!