Agilent Technologies E1465A Automobile Parts User Manual


 
16 Getting Started Chapter 1
Example: Closing
Relays (BASIC)
This example assumes a PC running BASIC and a GPIB interface. The
program closes row 03, column 12 of an E1465A 16x16 matrix module at
logical address 120 (secondary address = 120/8 = 15) and queries the
result. The result is returned to the controller and displayed (1 = relay closed,
0 = relay open). See Chapter 4 for information on the SCPI commands.
10 OUTPUT 70915; "*RST"
! Resets the module
20 OUTPUT 70915; "CLOS (@10312)"
! Closes row 03, column 12 on
module number 1
30 OUTPUT 70915; "CLOS? (@10312)"
! Query channel 10312
40 ENTER 70915; Value
! Enter result into variable Value
50 PRINT Value
! Print results (should print "1"
to indicate that the channel is
closed)
60 END
! Terminate program
Table 1-1. Matrix Modules Channel Numbers
Matrix Module Rows (rr) Columns (cc)
E1465A 16x16 Relay Matrix Switch 00 - 15 00 - 15
E1466A 4x64 Relay Matrix Switch 00 - 03 00 - 63
E1467A 8x32 Relay Matrix Switch 00 - 07 00 - 31
Figure 1-4. Card Numbers in a Multiple-Module Switchbox
Command
Module
Multiple-Module Switchbox Card Numbers
Note: Physical placement of the Module in the Logical Address
order is not required, but is recommended.
Multiplexer Module
1
2
8
6
4
3
2
1
6
8
4
2
1
Logical Address = 120
Secondary Address = 15
Card Number 01
Card Number 02
1
Logical Address = 121
Multiplexer Module
3
2
2
4
1
6
8
6
4
1
2
8
1
Card Number 03
Multiplexer Module
Logical Address = 122
3
2
2
4
1
6
8
6
4
1
2
8