![Rohde & Schwarz 1065.6000.20 Operating Manual Download Page 381](http://html1.mh-extra.com/html/rohde-and-schwarz/1065-6000-20/1065-6000-20_operating-manual_1477758381.webp)
Programming Examples
FSE
1065.6016.12
7.2
E-16
Transmission of Instrument Setting Commands
Center frequency, span, and reference level of the instrument are set in this example.
REM -------- Instrument setting commands -------------
CALL IBWRT(analyzer%, "FREQUENCY:CENTER 120MHz") ’Center frequency 120 MHz
CALL IBWRT(analyzer%, "FREQUENCY:SPAN 10MHZ") ’Span 10 MHz
CALL IBWRT(analyzer%, "DISPLAY:TRACE:Y:RLEVEL -10dBm")
’Reference level -10dBm
REM ***********************************************************************
Switchover to Manual Control
REM -------- Switch instrument over to manual control -----------
CALL IBLOC(analyzer%)
’Set instrument to Local state
REM ***********************************************************************
Reading out Instrument Settings
The settings made in example 3 are read out here. The abbreviated commands are used.
REM --------- Reading out instrument settings ---------
CFfrequency$ = SPACE$(20) ’Provide text variables (20 characters)
CALL IBWRT(analyzer%, "FREQ:CENT?") ’Request center frequency
CALL IBRD(analyzer%, CFfrequency$) ’Read value
CFspan$ = SPACE$(20) ’Provide text variables (20 characters)
CALL IBWRT(analyzer%, "FREQ:SPAN?") ’Request span
CALL IBRD(analyzer%, CFspan$) ’Read value
RLevel$ = SPACE$(20) ’Provide text variables (20 characters)
CALL IBWRT(analyzer%, "DISP:TRAC:Y:RLEV?")
’Request reference level
CALL IBRD(analyzer%, RLevel$) ’Read value
REM -------- Display values on the screen -----------
PRINT "Center frequency: "; CFfrequency$,
PRINT "Span: "; CFspan$,
PRINT "Reference level: "; RLevel$,
REM*************************************************************************
Positioning a Marker and Displaying Values
REM -------- Examples of marker functions -----------
CALL IBWRT(analyzer%, "CALC:MARKER ON;MARKER:MAX")
’Activate marker1 and start peak search
MKmark$ = SPACE$(30) ’Provide text variables (30 characters)
CALL IBWRT(analyzer%, "CALC:MARK:X?;Y?") ’Request frequency and level
CALL IBRD(analyzer%, MKmark$) ’Read value
REM -------- Display values on the screen -----------
PRINT "Center frequency / level "; MKmark$,
REM **********************************************************************
Summary of Contents for 1065.6000.20
Page 3: ......
Page 5: ......
Page 17: ......
Page 57: ...Contents Description of Commands FSE 1065 6016 12 I 6 4 E 16...
Page 379: ...Contents Programming Examples FSE 1065 6016 12 I 7 2 E 1...
Page 391: ......
Page 393: ...Contents Maintenance and Instrument Interfaces FSE 1065 6016 12 I 8 2 E 15...
Page 419: ......
Page 421: ...Contents Error Messages FSE 1065 6016 12 I 9 2 E 1...
Page 429: ......