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

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

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

Controller ProgramsHewlett-Packard <strong>Model</strong> 9000Series 200/300IntroductionThe following program sends a command message to the<strong>Model</strong> 7002 from a Hewlett-Packard <strong>Model</strong> 9000 Series200/300 computer and displays the response to queries onthe computer CRT. The computer must be equipped with HPBASIC 4.0.Directionsitem, set the primary IEEE-488 address of the <strong>Model</strong>7002 to 7.2. With the power off, connect the <strong>Model</strong> 7002 to theIEEE-488 interface card installed in the HP computer.3. Enter the lines in the program below, using the ENTER/RETURN key after each line.4. Press the RUN key and type in the desired commandstring at the ENTER COMMAND MESSAGE prompt.For example, to request the currently defined Scan List,type in :SCAN? and press the return key. The Scan Listwill appear on the computer CRT.1. Using the front panel MENU key and the GPIB menu10 DIMA$[50], B$[50]20 remote 707 ! Place 7002 in remote.30 LINPUT “ENTER COMMAND MESSAGE”, A$ ! Prompt for command.40 OUTPUT 707; A$ ! Address 7002 to listen; send command.50 L=LEN(A$)60 IF A$[L,L] “?” THEN GOTO 30 ! If command is not a query, goto 30.70 ENTER 707; B$ ! If query, address 7002 to talk.80 PRINT B$ ! Display response to query command.90 GOTO 30 ! Repeat100 ENDB-6

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

Saved successfully!

Ooh no, something went wrong!