Specifications
Programming Examples ZVx
1043.0009.50 D.2 E-2
D.3 Transmission of Instrument Setting Commands
Center frequency, span, and reference level of the analyzer 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:SPACING LINear")
’Linear scaling
REM
***********************************************************************
D.4 Switchover to Manual Control
REM -------- Switch instrument over to manual control -----------
CALL IBLOC(analyzer%) ’Set instrument to Local state
REM
***********************************************************************
D.5 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 "Scaling: "; RLspace$,
REM*************************************************************************
D.6 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
**********************************************************************