Agilent Technologies E1442-90003 Switch User Manual


 
40 Getting Started Chapter 1
Exercise 2: Query
Module Identity
Turn mainframe power OFF. If you want to set a logical address other than
the factory-set address of 120, see "Setting the Logical Address" to set a
different logical address for the switch. Install the switch module in the
mainframe. See "Installing the Switch in a Mainframe" for steps to install the
switch.
NOTE If you have already connected user inputs to the terminal module, you may
want to disconnect the terminal module from the switch module for this
exercise. See "Attaching Terminal Modules to the Switch Module" to
disconnect the terminal module.
Turn mainframe power ON and enter the following BASIC program into your
computer. For this program, the GPIB Select Code = 7, the primary address
= 09, and the logical address = 120. The logical address divided by 8 = the
secondary address (120/8 = 15). Thus, the instrument address is 70915.
',0$>@
287387,'1"
(17(5$
35,17$
(1'
RUN the program. The response should be as follows. The device driver
revision must be A.08.00 or later.
+(:/(773$&.$5'6:,7&+%2;$
Exercise 3: Perform
Open, Close, and Scan
Operations
This exercise performs close, open and scanning operations and queries
the status byte. Now that communication with the module has been
established, you can perform some close, open and scan operations and
use the "SCAN COMPLETE" bit in the Status Operation Event register
(bit 8).
Operation Event Register bit 8 designates scan complete when high.
Reading this register clears the register (all bits to zero). This bit is monitored
by serial polling (SPOLL) the status byte register (bit 7) in line 70. You may
want to look at the STATUS command in Chapter 3 which graphically shows
the relationship of these two bits and all status registers relating to this
module.
Input this BASIC program into your computer. Do not input the comments
preceeded by " ! ".
',0$>@ !Dimension array to hold data entered
287387&/26(# !Close all channels
287387567 !Open all channels by resetting module
28738767$723(5(1$% !Enable bit 8 of status operation event register
2873876&$1# !Scan all channels
287387,1,7 !Initiate the scan using the default
TRIG[:IMM]
:+,/(127%,7632// !Serial poll bit 7 of the status byte until it is high
35,17:$,7,1*)256&$1&203/(7(