EasyManua.ls Logo

Rohde & Schwarz FSEA20 - Transmission of Instrument Setting Commands; Switchover to Manual Control; Reading out Instrument Settings; Positioning a Marker and Displaying Values

Rohde & Schwarz FSEA20
438 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
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
**********************************************************************

Table of Contents

Related product manuals