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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

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

7.3.1.4 Measuring the AM Modulation Depth<br />

More Complex Programming Examples<br />

The example below is based on an AM-modulated signal at 100 MHz with the following<br />

characteristics:<br />

• Carrier signal level: –30 dBm<br />

• AF frequency: 100 kHz<br />

• Modulation depth: 50%<br />

The default setting of the R&S <strong>FSQ</strong> can be used for the measurements described<br />

below (SetupInstrument).<br />

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

Public Sub AMMod()<br />

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

CALL SetupInstrument<br />

'Default setting<br />

'--------- Peak search -------------------------------------status<br />

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

'Single sweep<br />

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

'Perform sweep with sync<br />

status = viWrite(analyzer, "CALC:MARK:PEXC 6DB", 18, retCnt)<br />

'Peak excursion<br />

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

'Marker 1 on<br />

status = viWrite(analyzer, "CALC:MARK:TRAC 1", 16, retCnt)<br />

'Assign marker1 to trace1<br />

'--------- Measure modulation depth-------------------------status<br />

= viWrite(analyzer, "CALC:MARK:MAX;FUNC:MDEP ON", 26, retCnt)<br />

'Marker to Peak;<br />

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

'Measure mod. depth<br />

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

'Read out result<br />

'--------- Read out result ----------------------------------<br />

Print "AM Mod Depth [%]: "; result$<br />

END SUB<br />

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

Operating Manual 1313.9681.12 - 01 7.11

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

Saved successfully!

Ooh no, something went wrong!