R&S ESU
Brief Introduction to Remote Control
Detailed Programming Examples
7.10
Quick Start Guide 1302.6163.62 - 04
7.2.1.1 Setting the IEC Bus Status Registers
REM ************************************************************************
Public Sub SetupStatusReg()
Dim status As ViStatus
Dim retCnt As Long
REM ------ IEEE 488.2 status register --------------------------------------
status = viWrite(analyzer, "*CLS", 4, retCnt)
'Reset status registers
status = viWrite(analyzer, "*SRE 168", 8, retCnt)
'Enable Service Request for STAT:OPER-,
'STAT:QUES- and ESR-Register
status = viWrite(analyzer, "*ESE 61", 7, retCnt)
'Set event enable bit for:
'operation complete
'command-, execution-,device
'dependent- and query error
REM ------ SCPI status register --------------------------------------------
status = viWrite(analyzer, "STAT:OPER:ENAB 0", 16, retCnt)
'Disable OPERation Status Register
status = viWrite(analyzer, "STAT:QUES:ENAB 0", 16, retCnt)
'Disable QUEStionable Status Register
End Sub
REM ************************************************************************
7.2.1.2 Default Settings for Measurements
REM ************************************************************************
Public Sub SetupInstrument()
Dim status As ViStatus
Dim retCnt As Long
REM ------ Default setting of the R&S ESU ----------------------------------
Call SetupStatusReg
'Configure status registers
status = viWrite(analyzer, "*RST", 4, retCnt)
'Reset instrument
status = viWrite(analyzer, "INST:SEL SAN", 12, retCnt)
'Change into analyzer mode.
status = viWrite(analyzer, "SYST:DISP:UPD ON", 16, retCnt)
'ON: screen display on, OFF: off(improved performance)
status = viWrite(analyzer, "DISP:FORM SINGle", 16, retCnt)
'Full screen display
status = viWrite(analyzer, "DISP:WIND1:SEL", 14, retCnt)
'Active Screen A
status = viWrite(analyzer, "INIT:CONT OFF", 13, retCnt)
'Single sweep mode
REM ------ Frequency setting ----------------------------------------------
status = viWrite(analyzer, "FREQUENCY:CENTER 100MHz", 23, retCnt)
'Center frequency
Содержание 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 ...