R&S FSMR
More Complex Programming Examples
1166.3363.12 7.47
E-1
Configuring and Starting a Printout
The following example shows the configuration of the output format and output device for printing out
the measurement screen.
Proceed in the following order:
1. Set the measurement required for the printout
2. Query available output devices
3. Select an output device
4. Select the output interface
5. Configure the output format
6. Start printout with synchronization to the end
It is assumed that the setting required is a signal with a power of –20 dBm at 100 MHz and that the
printer required is the No. 6 of the printers available. The data is first output on the selected printer, then
to a file.
REM ************************************************************************
Public Sub HCopy()
DIM Devices(100) as string
'Buffer for printer name
FOR i = 0 TO 49
Devices$(i) = Space$(50)
'Preallocate buffer for
'printer
name
NEXT i
'--------- R&S FSMR default setting ----------------------------------------
-----
CALL SetupStatusReg
'Configure status register
CALL IBWRT(analyzer%,"*RST")
'Reset instrument
CALL IBWRT(analyzer%,"INIT:CONT OFF")
'Single sweep
CALL IBWRT(analyzer%,"SYST:DISP:UPD ON")
'Display on
'--------- Configure measurement -------------------------------------------
CALL IBWRT(analyzer%,"FREQ:CENT 100MHz;SPAN 10MHz")
'Set frequency
CALL IBWRT(analyzer%,"DISP:WIND:TRAC:Y:RLEV -10dBm") 'Reference level
CALL IBWRT(analyzer%,"INIT;*WAI")
'Perform measurement
'--------- Query regarding available output devices ------------------------
CALL IBWRT(analyzer%,"SYST:COMM:PRIN:ENUM:FIRSt?")
'Read out first output
CALL IBRD(analyzer%,Devices$(0))
'device and indicate
PRINT "Printer 0: "+Devices$(0)
'name
For i = 1 to 99
CALL IBWRT(analyzer%,"SYST:COMM:PRIN:ENUM:NEXT?")
'Read out the next
CALL IBRD(analyzer%,Devices$(i))
'printer name
IF Left$(Devices$(i),2) = "''" THEN GOTO SelectDevice 'Abort at end of
'list
PRINT "Printer"+Str$(i)+": " Devices$(i)
'Indicate printer name
NEXT i
Summary of Contents for FSMR
Page 1: ...R S FSMR Measuring Receiver Operating Manual Test Measurement Operating Manual 1313 9723 12 01...
Page 4: ......
Page 22: ......
Page 26: ...Contents Preparing for Operation R S FSMR 1155 5047 12 I 1 2 E 2 Fig 1 1 Front View...
Page 28: ...Front View R S FSMR 1166 3363 12 1 2 E 2 Fig 1 1 Front View...
Page 30: ...Front View R S FSMR 1166 3363 12 1 4 E 2 Fig 1 1 Front View...
Page 32: ...Front View R S FSMR 1166 3363 12 1 6 E 2 Fig 1 1 Front View...
Page 34: ...Front View R S FSMR 1166 3363 12 1 8 E 2 Fig 1 1 Front View...
Page 66: ......
Page 86: ......
Page 130: ...Menu Overview R S FSMR 1166 3363 12 3 42 E 3 Menu Overview another Keys MKR Key...
Page 141: ...R S FSMR Menu Overview 1166 3363 12 3 53 E 3 LOCAL Menu LOCAL...
Page 144: ......
Page 150: ......
Page 156: ......
Page 202: ......
Page 208: ......
Page 216: ......
Page 230: ......
Page 254: ......
Page 280: ......
Page 348: ......
Page 376: ...Configuration Setup R S FSMR 1166 3363 12 4 19 28 E 2...
Page 390: ......
Page 408: ......
Page 428: ......
Page 446: ......
Page 536: ......
Page 799: ......
Page 921: ......
Page 935: ......
Page 937: ...Contents Error Messages R S FSMR 1166 3363 12 I 9 2 E 1...