![Rohde & Schwarz 1065.6000.20 Operating Manual Download Page 380](http://html1.mh-extra.com/html/rohde-and-schwarz/1065-6000-20/1065-6000-20_operating-manual_1477758380.webp)
FSE
Programming Examples
1065.6016.12
7.1
E-16
7 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.
Programming via IEC/IEEE Bus
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 controller -----------
REM InitController
iecaddress% = 20
’IEC-bus address of the
’instrument
CALL IBFIND("DEV1", analyzer%)
’Open port to the instrument
CALL IBPAD(analyzer%, iecaddress%)
’Inform controller on instrument
’address
CALL IBTMO(analyzer%, 11)
’Response time to 1 sec
REM ************************************************************************
Initiate Instrument
The IEC-bus status registers and instrument settings of the instrument are brought into the default
status.
REM ------------ Initiate instrument --------------
REM InitDevice
CALL IBWRT(analyzer%, "*CLS")
’Reset status register
CALL IBWRT(analyzer%, "*RST")
’Reset instrument
REM*************************************************************************
Summary of Contents for 1065.6000.20
Page 3: ......
Page 5: ......
Page 17: ......
Page 57: ...Contents Description of Commands FSE 1065 6016 12 I 6 4 E 16...
Page 379: ...Contents Programming Examples FSE 1065 6016 12 I 7 2 E 1...
Page 391: ......
Page 393: ...Contents Maintenance and Instrument Interfaces FSE 1065 6016 12 I 8 2 E 15...
Page 419: ......
Page 421: ...Contents Error Messages FSE 1065 6016 12 I 9 2 E 1...
Page 429: ......