21.07.2015 Views

Operating Manual R&S SMIQ - Volume 1 - Rohde & Schwarz

Operating Manual R&S SMIQ - Volume 1 - Rohde & Schwarz

Operating Manual R&S SMIQ - Volume 1 - Rohde & Schwarz

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>SMIQ</strong>Programming ExamplesDAnnex DD.1 Programming ExamplesThe examples explain the programming of the instrument and can serve as a basis to solve morecomplex programming tasks.QuickBASIC has been used as programming language. However, the programs can be translated intoother languages.1. Including IEC-Bus Library for QuickBasicREM ----------- Include IEC-bus library for quickbasic ------------'$INCLUDE: 'c:\qbasic\qbdecl4.bas2. Initialization and Default StatusThe IEC bus as well as the settings of the instrument are brought into a defined default status at thebeginning of every program. Subroutines "InitController" and "InitDevice" are used to thiseffect.2.1. Initiate ControllerREM ------------ Initiate Instrument -----------REM InitControlleriecaddress% = 28'IEC-bus address of the instrumentCALL IBFIND("DEV1", generator%)'Open port to the instrumentCALL IBPAD(generator%, iecaddress%)'Inform controller on instrument addressCALL IBTMO(generator%, 11)'Response time to 1 secREM ************************************************************************2.2. Initiate InstrumentThe IEC-bus status registers and instrument settings of the <strong>SMIQ</strong> are brought into the default status.REM ------------ Initiate Instrument --------------REM InitDeviceCALL IBWRT(generator%, "*CLS")'Reset status registerCALL IBWRT(generator%, "*RST")'Reset instrumentCALL IBWRT(generator%, "OUTPUT ON")'Switch on RF outputREM *************************************************************************1125.5555.03 D.1E-7

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!