
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 **********************************************************************
Содержание 1065.6000.20
Страница 3: ......
Страница 5: ......
Страница 17: ......
Страница 57: ...Contents Description of Commands FSE 1065 6016 12 I 6 4 E 16...
Страница 379: ...Contents Programming Examples FSE 1065 6016 12 I 7 2 E 1...
Страница 391: ......
Страница 393: ...Contents Maintenance and Instrument Interfaces FSE 1065 6016 12 I 8 2 E 15...
Страница 419: ......
Страница 421: ...Contents Error Messages FSE 1065 6016 12 I 9 2 E 1...
Страница 429: ......