Quick Start Guide 1302.6163.62 - 04
7.7
R&S ESU
Brief Introduction to Remote Control
Basic Steps in Programming using the VISA Interface
7.1.4 Reading Out Instrument Settings
The settings made above can now be read out. To do so, the abbreviated commands are
used.
REM --------- Reading out instrument settings -----------------------------
PUBLIC SUB ReadSettings()
Dim status As ViStatus
Dim retCnt As Long
CFfrequenz$ = Space$(20)
'Provide text variable (20 characters)
status = viWrite(analyzer, "FREQ:CENT?", 10, retCnt)
'Request center frequency
status = viRead(analyzer, CFfrequenz$, 20, retCnt)
'Read in value
CFspan$ = Space$(20)
'Provide text variable (20 characters)
status = viWrite(analyzer, "FREQ:SPAN?", 10, retCnt)
'Request span
status = viRead(analyzer, CFspan$, 20, retCnt)
'Read in value
RLpegel$ = Space$(20)
'Provide text variable (20 characters)
status = viWrite(analyzer, "DISP:TRAC:Y:RLEV?", 17, retCnt)
'Request ref level setting
status = viRead(analyzer, RLpegel$, 20, retCnt)
'Read in value
REM -------- Displaying values on the screen -----------------------------
Print "Center frequency: "; CFfrequenz$,
Print "Span: "; CFspan$,
Print "Reference level: "; RLpegel$,
END SUB
REM************************************************************************
7.1.5 Marker Positioning and Readout
REM -------- Example of marker function -----------------------------------
PUBLIC SUB ReadMarker()
status = viWrite(analyzer, "CALC:MARKER ON;MARKER:MAX", 25, retCnt)
'Activate marker 1 and search for peak
MKmark$ = Space$(30)
'Provide text variable (30 characters)
status = viWrite(analyzer, "CALC:MARK:X?;Y?", 15, retCnt)
status = viRead(analyzer, MKmark$, 30, retCnt)
'Query frequency and level and read in value
REM -------- Displaying values on the screen -----------------------------
Print "Marker frequency/level "; MKmark$,
END SUB
REM **********************************************************************
Содержание esu
Страница 1: ...R S ESU EMI Test Receiver Quick Start Guide Quick Start Guide Test Measurement 1302 6163 62 04 ...
Страница 26: ...R S ESU Contents 6 Quick Start Guide 1302 6163 62 04 ...
Страница 28: ......
Страница 32: ...R S ESU 0 4 Quick Start Guide 1302 6163 62 04 ...
Страница 88: ...R S ESU Preparing for Use Operating System Properties 2 38 Quick Start Guide 1302 6163 62 04 ...
Страница 104: ...R S ESU Basic Operation Setting Parameters 4 12 Quick Start Guide 1302 6163 62 04 ...
Страница 175: ...Quick Start Guide 1302 6163 62 04 6 33 R S ESU LAN Interface Manual Operation of the R S ESU with XP Remote Desktop ...
Страница 178: ...R S ESU LAN Interface Manual Operation of the R S ESU with XP Remote Desktop 6 36 Quick Start Guide 1302 6163 62 04 ...
Страница 201: ...Quick Start Guide 1302 6163 62 04 R S ESU Appendix Appendix ...
Страница 202: ...Quick Start Guide 1302 6163 62 04 R S ESU Appendix ...