13.07.2015 Views

Model 7002Switch System Instruction Manual - Advanced Test ...

Model 7002Switch System Instruction Manual - Advanced Test ...

Model 7002Switch System Instruction Manual - Advanced Test ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Getting Started3.10.5 Abbreviated syntax rulesSome of the basic syntax rules for programming the <strong>Model</strong>7002 are covered in this paragraph. Detailed syntax informationis provided in paragraph 5.9.MINimum: Uses the lowest allowable parametervalueMAXimum: Uses the largest allowable parametervalueCommands and parametersThe general form for SCPI commands is demonstrated in Table3-2. They are hierarchical in nature and begin with a rootcommand. For example, to open all channels, send the followingcommand::OPEN ALLMost SCPI command words and name parameters have ashort-form version. The short form versions are identified inthe SCPI tables by the upper case characters. Example::TRIGger:SOURce:TIMer? = :trig:sour:tim?Note from the above example that command words and parameternames are not case sensitive.The root command for the above example is :ROUTe. This isan optional command word (as indicated by the brackets ([])in the table) and need not be used.A space must be used to separate the command word(:OPEN) and the parameter (ALL).Query CommandsThis type of command requests (queries) information and isidentified by the question mark (?). Example::CLOSe:STATe? Queries the channels that are closed.The general form for Common Commands is shown in Table3-1. Note that each common command is preceded by a star(*).Typical parameter types used to program the instrument include:Name parameter: Select a parameter name froma listed group.Whenever a query command is sent, the <strong>Model</strong> 7002 must beaddressed to talk in order to send the response message to thecomputer. HP BASIC 4.0 example:10 OUTPUT 707; “:clos:stat?” ! Send query command.20 ENTER 707; A$ ! Address 7002 to talk.30 PRINT A$ ! Display response messageon CRT.40 ENDList of channels. The following examples demonstrateproper format:(@ 1!1, 1!5) Channels 1 and 5 of slot 1(@ 1!1:1!10) Channels 1 through 10 of slot 1Boolean: Enable (1 or on) or disable (0 or off) afunction.Numeric representation format: Number can beexpressed as an integer, real number or an exponent(e.g. 2.3E6).Numeric value: An NRf number or one of the followingname parameters:DEFault: Uses the *RST default parameter valueProgram MessagesA program message is made up of one or more commandwords sent by the computer to the instrument. Note from Table3-2 that some programming operations require severalcommand words.Single Command Message – This program message usesthe command words required to perform a single programmingoperation. Example::TRIGger:COUNt:AUTo ON Enables auto scan listcount.3-19

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

Saved successfully!

Ooh no, something went wrong!