R&S®SML / R&S®SMV03
Programming Examples
1090.3123.12
E-6
7.1
7
Remote Control - Programming Examples
The examples explain the programming of the instrument and can serve as a basis to solve more
complex programming tasks.
QuickBASIC has been used as programming language. However, the programs can be translated into
other languages.
Including IEC-Bus Library for QuickBasic
REM ------ Include IEC-bus library for quickbasic -------
'$INCLUDE: 'c:\qbasic\qbdecl4.bas'
Initialization and Default Status
The IEC bus as well as the settings of the instrument are brought into a defined default status at the
beginning of every program. Subroutines "
InitController
" and "
InitDevice
" are used to this
effect.
Initiate Controller
REM ------------ Initiate Instrument -----------
REM InitController
iecaddress% = 28
'IEC-bus address of the instrument
CALL IBFIND("DEV1", generator%)
'Open port to the instrument
CALL IBPAD(generator%, iecaddress%) 'Inform controller on instrument address
CALL IBTMO(generator%, 11)
'Response time to 1 sec
REM ************************************************************************
Initiate Instrument
The IEC-bus status registers and instrument settings of the R&S SML / R&S SMV03 are brought into
the default status.
REM ------------ Initiate Instrument --------------
REM InitDevice
CALL IBWRT(generator%, "*CLS")
'Reset status register
CALL IBWRT(generator%, "*RST")
'Reset instrument
CALL IBWRT(generator%, "OUTPUT ON")
'Switch on RF output
REM*************************************************************************
Содержание SML01
Страница 4: ......
Страница 14: ......
Страница 22: ......
Страница 32: ......
Страница 34: ......
Страница 36: ......
Страница 38: ......
Страница 40: ......
Страница 42: ......
Страница 44: ......
Страница 56: ......
Страница 62: ......
Страница 77: ...R S SML R S SMV03 Menu Summary for R S SML 1090 3123 12 E 6 3 15 Menu Summary for R S SML ...
Страница 78: ...Menu Summary for R S SMV03 R S SML R S SMV03 1090 3123 12 E 6 3 16 Menu Summary for R S SMV03 ...
Страница 148: ......
Страница 240: ......
Страница 242: ......