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 />

'Activate search limit and set to ±400 kHz about center<br />

frequency<br />

status = viWrite(analyzer, "CALC:THR:STAT ON", 16, retCnt)<br />

status = viWrite(analyzer, "CALC:THR -60DBM", 15, retCnt)<br />

'Activate threshold and set to –60 dBm<br />

'--------- Activate search for spurious --------------------status<br />

= viWrite(analyzer, "CALC:MARK:FUNC:FPE:SORT X", 25, retCnt)<br />

'Sort according to frequency<br />

status = viWrite(analyzer, "INIT;*WAI", 9, retCnt)<br />

'Perform sweep with sync<br />

status = viWrite(analyzer, "CALC:MARK:FUNC:FPE 10", 21, retCnt)<br />

'Search for 10 highest peaks<br />

status = viWrite(analyzer, "CALC:MARK:FUNC:FPE:COUN?", 24, retCnt)<br />

'Call number of peaks, check it,<br />

status = viRead(analyzer, countstr$, 30, retCnt)<br />

'and read it in<br />

status = viWrite(analyzer, "CALC:MARK:FUNC:FPE:X?", 21, retCnt)<br />

'Query and read<br />

status = viRead(analyzer, freqlist$, 1000, retCnt)<br />

'frequency list<br />

status = viWrite(analyzer, "CALC:MARK:FUNC:FPE:Y?", 21, retCnt)<br />

'Query and read<br />

status = viRead(analyzer, powerlist$, 1000, retCnt)<br />

'level list<br />

Print "# of spurious: ";countstr$<br />

'Output number of results<br />

Print "Frequencies: ";freqlist$<br />

'Output frequency list<br />

Print "Power: ";powerlist$<br />

'Output level list<br />

END SUB<br />

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

7.8 Operating Manual 1313.9681.12 - 01

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

Saved successfully!

Ooh no, something went wrong!