Agilent 75000 Series C Agilent E8462A 256-Channel Relay Multiplexer User’s Manual and SCPI Programming Guide Where to Find it - Online and Printed Information: System installation (hardware/software) ............VXIbus Configuration Guide (Supplied with Agilent Command Modules , Embedded Controllers, and VXLink.) Module configuration and wiring .......................This Manual SCPI programming .............................................This Manual SCPI example programs ...............................
x
Contents Agilent E8462A 256-Channel Relay Multiplexer Edition 1 WARRANTY STATEMENT....................................................................................... 5 Safety Symbols ............................................................................................................. 6 WARNINGS................................................................................................................. 6 Declaration of Conformity................................................................
Mode: WIRE1x4, WIRE2x4, WIRE4x2 ............................................................................................................ 43 Mode: WIRE1x8, WIRE2x8, WIRE4x4 ............................................................................................................ 44 Scanning Channels...................................................................................................... 45 Recalling and Saving States..........................................................................
OUTPut[:EXTernal][:STATe] ............................................................................ 84 OUTPut[:EXTernal][:STATe]? .......................................................................... 85 OUTPut:TTLTrgn[:STATe] ................................................................................ 85 OUTPut:TTLTrgn[:STATe]? .............................................................................. 86 [ROUTe:] ...............................................................................
4-Wire Ohms Measurements ............................................................................. 121 Scanning Voltmeter Command Quick Reference..................................................... 122 Appendix A Agilent E8462A Specifications .................................................................................. 125 General Characteristics ............................................................................................. 125 Input Characteristics .................................
Certification Agilent Technologies, Inc. certifies that this product met its published specifications at the time of shipment from the factory. Agilent Technologies further certifies that its calibration measurements are traceable to the United States National Institute of Standards and Technology (formerly National Bureau of Standards), to the extent allowed by that organization's calibration facility, and to the calibration facilities of other International Standards Organization members.
Documentation History All Editions and Updates of this manual and their creation date are listed below. The first Edition of the manual is Edition 1. The Edition number increments by 1 whenever the manual is revised. Updates, which are issued between Editions, contain replacement pages to correct or add additional information to the current Edition of the manual. Whenever a new Edition is created, it will contain all of the Update information for the previous Edition.
Declaration of Conformity Declarations of Conformity for this product and for other Agilent products may be downloaded from the Internet. There are two methods to obtain the Declaration of Conformity: • Go to http://regulations.corporate.agilent.com/DoC/search.htm. You can then search by product number to find the latest Declaration of Conformity. • Alternately, you can go to the product web page (www.agilent.
Notes: 8
Notes: 9
Notes: 10
Chapter 1 Configuring the Agilent E8462A Multiplexer Using This Chapter This chapter provides general module information, vital WARNINGS and CAUTIONS, and the tasks you must perform to configure and install the Agilent E8462A Relay Multiplexer. It also provides information to verify module installation. Chapter contents are: • Module Description. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . • Warnings and Cautions . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Tree relays T0 through T21 (Channel 9000 through Channel 9021) configure the module to the desired operating mode: 1-wire, 2-wire, 3-wire or 4-wire mode. You use the tree relays to manually configure this module in one of the following configurations (or in a combination of these configurations). Using the ROUTe:FUNCtion command sets the tree switches automatically for any one of the following configurations (e.g., 2-64x2).
Figure 1-1.
Warnings and Cautions 14 WARNING SHOCK HAZARD. Only qualified, service-trained personnel who are aware of the hazards involved should install, configure, or remove the Multiplexer Module. Disconnect all power sources from the mainframe, the Terminal Cards, and installed modules before installing or removing a module. WARNING When handling user wiring connected to the Terminal Card, consider the highest voltage present accessible on any terminal.
Configuring the Multiplexer Module The Multiplexer module can be configured to the operating modes through the VXIplug&play driver or via SCPI commands. These drivers are located on the supplied CD-ROM. Before installing the module into a VXIbus mainframe (e.g. Agilent E1401A), you need to set the Multiplexer’s logical address. Setting the Logical Address The factory default logical address switch setting is 112.
Setting the Interrupt Priority Line For most applications the default priority line should not have to be changed. An interrupt is generated after any channel is opened or closed when interrupts are enabled. The interrupt is generated approximately 5 ms after command execution allowing for relay settling time. The interrupt line can be set to any one of the VXI backplane lines 1-7 through writing the bits 10, 9 and 8 of the Status/Control Register. The default value is 1.
Installing the Multiplexer in a Mainframe The Agilent E8462A may be installed in any slot (except slot 0) in a C-size VXIbus mainframe. Refer to Figure 1-4 to install the Multiplexer in a mainframe. NOTE: The extraction levers will not seat the backplane connectors on older VXIbus mainframes. You must manually seat the connectors by pushing in the module until the module’s front panel is flush with the front of the mainframe. The extraction levers may be used to guide or remove the multiplexer.
Connecting Field Wiring Field Wiring Not Using Optional Terminal Cards The E8462A IS NOT supplied with a terminal card or connectors. You may purchase 160-pin terminal connectors, necessary crimp-and-insert contacts and the required crimp tool from Agilent Technologies or directly from the manufacturer, ERNI Components1 (see Table 1-1 below). Table 1-1. You Must Purchase Connectors, Contacts and Tools.
A single-conductor with contact (a crimp-and-insert contact is crimped onto one end, the other end is not terminated) is available as Agilent P/N 8150-5207. Length: 2 meters Wire Gauge: 24 AWG Insulation Rating: 105 C maximum Voltage: 250 V maximum Figure 1-5. Connector Block and Single-Conductor Wire with Contact (not provided). Front Panel Connector Pin-Out Note Figure 1-6 shows the Multiplexer's front panel and the connector pin-out.
A1 CH000 E1 CH096 CH031 CH127 A2 CH128 E2 CH224 CH159 CH255 A1 CH 0 CH 1 CH 2 CH 3 CH 4 CH 5 CH 6 CH 7 CH 8 CH 9 CH 10 CH 11 CH 12 CH 13 CH 14 CH 15 CH 16 CH 17 CH 18 CH 19 CH 20 CH 21 CH 22 CH 23 CH 24 CH 25 CH 26 CH 27 CH 28 CH 29 CH 30 CH 31 B1 CH 32 CH 33 CH 34 CH 35 CH 36 CH 37 CH 38 CH 39 CH 40 CH 41 CH 42 CH 43 CH 44 CH 45 CH 46 CH 47 CH 48 CH 49 CH 50 CH 51 CH 52 CH 53 CH 54 CH 55 CH 56 CH 57 CH 58 CH 59 CH 60 CH 61 CH 62 CH 63 C1 NC NC NC Terminal 0 NC H1 NC Terminal 1 NC NC NC Terminal 2
A1 CH000 HI E1 CH032 HI CH031 HI CH063 HI A2 CH064 HI E2 CH096 HI CH095 HI CH127 HI A1 CH 0 HI CH 1 HI CH 2 HI CH 3 HI CH 4 HI CH 5 HI CH 6 HI CH 7 HI CH 8 HI CH 9 HI CH 10 HI CH 11 HI CH 12 HI CH 13 HI CH 14 HI CH 15 HI CH 16 HI CH 17 HI CH 18 HI CH 19 HI CH 20 HI CH 21 HI CH 22 HI CH 23 HI CH 24 HI CH 25 HI CH 26 HI CH 27 HI CH 28 HI CH 29 HI CH 30 HI CH 31 HI B1 CH 0 LO CH 1 LO CH 2 LO CH 3 LO CH 4 LO CH 5 LO CH 6 LO CH 7 LO CH 8 LO CH 9 LO CH 10 LO CH 11 LO CH 12 LO CH 13 LO CH 14 LO CH 15 LO C
NOTE: 3-Wire Mode does not use the column E connections.
Connecting the Analog Bus The analog bus provides a common bus to all switch modules in multiple switch cards. A multimeter or other instrument can be connected to the analog bus. Use flat ribbon analog bus cables between Multiplexers and other Agilent VXI modules that have an analog bus (both C-size modules or B-size modules in a C-size adapter).
Terminal Cards Three optional terminal cards are available for the Agilent E8462A: • Option 012 Crimp-and-Insert Terminal Card • Option 014 Fault Tolerant Terminal Card • Option 015 Ribbon Cable Connector Terminal Card Option 012 Crimp-andInsert Terminal Block Note The Option 012 Terminal Block provides a terminal card housing and two 160-pin terminal connector blocks (Agilent P/N 1252-6531). The contacts for the Option 012 Terminal Block connectors ARE NOT provided.
impedance when excessive current is flowing in the channel. For example, if the contacts of one relay are welded together because it switches a large voltage, the PTC resistors help protect user circuitry on other channels in the same bank when their relays close. J101 J102 Figure 1-10. Agilent E8462A Option 014 Fault Tolerant Terminal Card Connector Pin-Out Option 015 Ribbon Cable Connector Terminal Block Option 015 Terminal Block provides nine ribbon-cable header connectors.
Wiring a Terminal Card Figure 1-11 shows how to connect wire to the optional terminal blocks. Figure 1-11.
See Figure 1-12 for more detail. Mark the last digit of the MUX model number e.g., E8462 Figure 1-11.
Attaching a Terminal Block to the Multiplexer Figure 1-12 shows how to attach an optional terminal block to the Agilent E8462A Relay Multiplexer module. Figure 1-12.
Programming the Multiplexer To program the Agilent E8462A Multiplexer using SCPI, you must know the interface and module address and SCPI commands to be used. Guidelines to select SCPI commands for the Multiplexer follow. See the Agilent 75000 Series C Installation and Getting Started Guide for interface addressing. Note This discussion applies only to SCPI (Standard Commands for Programmable Instruments) programming. See Appendix B for information on the Multiplexer's registers.
Refer to Chapter 3 of this Manual, the command [ROUTe:]CLOSe for the paired channel information. You must specify the operating mode BEFORE you execute the commands OPEN, CLOSe, and SCAN. Pay attention to the valid channel numbers when you open, close or scan the specific channel(s) in different operating modes. The channels can be addressed using channel numbers or channel ranges. You can address the following: • single channels (@ccbnnn); • multiple channels (@ccbnnn,ccbnnn,...
Channel Numbers, Ranges, and Lists Note The Agilent E8462A Multiplexer channel numbers are 0000 through 0255 under the 1-wire mode. The channels can be addressed using individual channel numbers or channel ranges. For all other modes, the “channel” is actually used to refer to the paired channel. Under 2-wire mode, there are 128 2-wire paired channels, under 3-wire and 4-wire modes, there are only 64 paired 3-wire or 4-wire channels. See Chapters 2 and 3 for more information of paired channels.
Initial Operation You must download the Agilent E8462A SCPI driver into the Agilent E1405/E1406 Command Module to perform the initial operation. At power-on or following a reset of the module (*RST command), all 256 channels are open. A *RST command invalidates the current scan list (that is, you must specify a new scan list). Command parameters are set to the default conditions as shown below. Parameter Default Value Description ARM:COUNt 1 Number of scanning cycles is one.
Example: Reset, Self Test, Module ID, and Close Channel The following example reads the module ID string, performs module self-test, displays the results, closes channel 0002 and queries the channel closure state. The result is returned to the computer and displayed (“1” = channel closed, “0” = channel open). #include #include #include
/* Query State of Channel 002 */ errStatus=viQueryf(E8462A,”ROUT:CLOS? (@10002)\n”,”%t”,ch_state); if (VI_SUCCESS > errStatus) { printf(“ERROR: viQueryf() returned 0x%x\n”,errStatus); return errStatus;} printf(“Channel State is: %s\n”,ch_state); /* Open Channel 002 */ errStatus = viPrintf(E8462A, “OPEN (@10002)\n”); if(VI_SUCCESS > errStatus){ printf(“ERROR: viPrintf() returned 0x%x\n”,errStatus); return errStatus;} /* Close the Module Instrument Session */ errStatus = viClose (E8462A); if (VI_SUCCESS > err
Chapter 2 Using the Multiplexer What’s in This Chapter This chapter contains the following sections: • Reset Conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . • Switching or Scanning . . . . . . . . . . . . . . . . . . . . . . . . . . . . . • Switching Channels to the Analog Bus. . . . . . . . . . . . . . . . . • Recalling and Saving States . . . . . . . . . . . . . . . . . . . . . . . . . • Detecting Error Conditions . . . . . . . . . . . . . . . . . . . . . . . . . .
Switching or Scanning There are two general ways to use the E8462A Relay Multiplexer. First, you can use the ROUTe:FUNCTion command subsystem (see Chapter 3) to set up the multiplexer in any of its 12 operating modes: 1-Wire (1-1X256, 2-1X128, 4-1X64, 8-1X32), 2-Wire (1-2X128, 2-2X64, 4-2X32, 8-2X16), 3-Wire (1-3X64), or 4-Wire (1-4X64, 2-4X32, 4-4X16). You can then use the [ROUTe:]CLOSe or [ROUTe:]OPEN commands to control individual channel relays.
Performing Measurements via Analog Bus To perform measurements via analog bus, you need to either manually close the analog bus connection control relays (CH9200-9204) through command ROUTe:CLOSe or execute the command ROUTe:SCAN:PORT ABUS. 1-wire, 2-wire, 3-wire and 4-wire measurements can be made via analog bus by connecting CH9200-9204. 1-Wire Mode: All the 256 channel relays are connected to Ter0 and connected to analog bus H1 through closing AB200 (CH9200).
Mode: WIRE1 Description: one 1-wire x 256 ch MUX Figure 2-1 shows the 1-Wire mode (configured as a 1 x 256 multiplexer). • Tree Relays: T0 through T7 are closed to connect the specific channels to Terminal Bus Ter0 and Ter1. • Routing Relays: C100 and C108, toggles between the Ter0 and Ter1 Front Panel Pin-out: See Figure 1-6 terminal bus line to route all channels to Ter0 (1-wire). • Valid Channel List: All 256 channels (000-255).
Mode: WIRE2 Description: one 2-wire x 128 ch MUX Figure 2-2 shows the 2-Wire mode. All 256 channels form 128 2-wire pairs which connect to Terminal Bus Ter0 and Ter1. • Tree Relays: T0 through T7 are closed to connect the specific channel pairs to Terminal Bus Ter0 and Ter1. Front Panel Pin-out: See Figure 1-7 • Routing Relays: C100 and C108 remain connected to Ter0. • Valid Channel List: 000-127.
Mode: WIRE3 and WIRE4 Description: one 3-wire x 64 ch MUX or one 4-wire x 64 ch MUX Front Panel Pin-out: See Figure 1-8 The same basic configuration is used for both the 3-Wire and the 4-Wire modes. Refer to Figure 2-3. In the 3-Wire mode, relays 0-31 and 128-159 switch to terminal bus Ter0, relays 32-63 and 160-191 switch to Ter1, and relays 64-95 and 192-223 switch to Ter5.
NOTE: See Figure 1-8 for 3-wire and 4-wire front panel pin-out. 3-Wire uses Ter0, Ter1 and Ter4 4-Wire uses Ter0, Ter1, Ter4 and Ter5 Figure 2-3.
Mode: WIRE1x2 and WIRE2x2 Description: two 1-wire x 128 ch MUX or two 2-wire x 64 ch MUX The Agilent E8462A can be configured as two 128 x 1 or two 64 x 2 multiplexers. Figure 2-4 illustrates these configurations. Front Panel Pin-out: See Figure 1-6 for 1-wire or Figure 1-7 for 2-wire. Figure 2-4.
Mode: WIRE1x4, WIRE2x4, WIRE4x2 Description: four 1-wire x 64 ch MUX or four 2-wire x 32 ch MUX or two 4-wire x 32 ch MUX The Agilent E8462A can be configured as four 64 x 1, four 32 x 2 and two 32 x 4 multiplexers. In this configuration, the 256 channels are divided into 8 groups, each one is a 32 x 1 multiplexer. The 8 groups are connected to eight terminal bus (Terminals 0, 2, 4, 6, 8, 10, 12, 14) by closing 16 related tree relays.
Mode: WIRE1x8, WIRE2x8, WIRE4x4 Description: eight 1-wire x 32 ch MUX or eight 2-wire x 16 ch MUX or four 4-wire x 16 ch MUX The Agilent E8462A can be configured as eight 32 x 1, eight 16 x 2 and four 16 x 4 multiplexers. In this configuration, the 256 channels are divided into 8 groups, each one is a 32 x 1 multiplexer. The 8 groups are connected to eight terminal bus (Terminals 0, 2, 4, 6, 8, 10, 12, 14) by closing 16 related tree relays.
Scanning Channels Scanning the Multiplexer channels consists of sequentially closing a channel (and its associated tree relays), making some measurement , opening that channel, and then repeating that process with the next channel in a channel list. You can make a single scan through the channel list or scan a multiple number of times. You can also scan the channel list continuously until the scan is aborted. The TRIGger:SOURce command specifies the source to advance the scan.
You can scan a channel or a list of channels using the SCAN command. The analog bus connection control relays (CH9200-9204) are automatically closed when you specify the command SCAN:PORT ABUS. This command is required for the analog bus control relays to function during the scan through the channel list. The default value is SCAN:PORT NONE which does not automatically close these relays and connect channels to the analog bus. They may however, still be manually controlled with the OPEN and CLOSe commands.
Figure 2-8. Scanning with VXIbus Triggers The following example program was developed with the ANSI C language using the Agilent VISA extensions. The program was written and tested in Microsoft® Visual C++ but should compile under any standard ANSI C compiler. To run the program you must have the Agilent SICL Library, the Agilent VISA extensions, and an Agilent 82340 or 82341 GPIB module installed and properly configured in your PC. An Agilent E1406 Command Module is required.
{ ViStatus errStatus; /*Status from each VISA call*/ ViSession viRM; /*Resource mgr.
/* Set Multimeter for 10 triggers */ errStatus = viPrintf(E1412A, “TRIG:COUN 10\n”); if(VI_SUCCESS > errStatus) printf(“ERROR: viPrintf() returned 0x%x\n”,errStatus); /* Pause until multimeter is ready */ errStatus = viQueryf(E1412A, “*OPC?\n”,”%t”,opc_int); if(VI_SUCCESS > errStatus) printf(“ERROR: viQueryf() returned 0x%x\n”,errStatus); /* Initialize Multimeter, wait for trigger */ errStatus = viPrintf(E1412A, “INIT\n”); if(VI_SUCCESS > errStatus) printf(“ERROR: viPrintf() returned 0x%x\n”,errStatus); /*
/* Pause until ready */ errStatus = viQueryf(E8462A, “*OPC?\n”,”%t”,opc_int); if(VI_SUCCESS > errStatus){ printf(“ERROR: viQueryf() returned 0x%x\n”,errStatus);} /* Start Scan */ errStatus = viPrintf(E8462A, “INIT\n”); if(VI_SUCCESS > errStatus){ printf(“ERROR: viPrintf() returned 0x%x\n”,errStatus);} /* Get readings from Multimeter */ errStatus = viQueryf(E1412A, “FETC?\n”,”%,10lf”,readings); if(VI_SUCCESS > errStatus){ printf(“ERROR: viQueryf() returned 0x%x\n”,errStatus);} for (ii=0;ii<10;ii++) { printf
Using BUS Triggers with an External Device to Scan Channels Refer to Figure 2-9. This example uses the BUS trigger (GET or *TRG) to synchronize channel closures with the Agilent 3457A Multimeter. A DC voltage measurement is performed. Measurement synchronization is attained by: 1. After the multimeter and multiplexer are configured, iniitate the scan on the Agilent E8462A (INIT command). This closes the first channel. 2. FETCH? the reading from the multimeter. 3. Trigger the multiplexer (*TRG command).
Recalling and Saving States This section contains information about saving and recalling a Multiplexer module state. Saving States The *SAV command saves the current instrument state. The state number (0-9) is specified in the state parameter. The following settings are saved: • Channel Relay State (CH000-256 open or closed); • Tree Relay State (CH9000-9021 open or closed); • Routing Relay Stare (CH9100-9108 open or closed).
Detecting Error Conditions There are two general approaches to error checking. The simplest, but most time consuming, is to ask the instrument whether there are errors at every step of the switching process. This is called “polling” and is illustrated in the two previous program examples. Using Interrupts With Error Checking Analog Bus 2-Wire Resistance Measurements The second approach involves the use of interrupts.
Routing Relay Operation The Agilent E8462A uses eight Form C (C100 - C107) relays to route closed channels to the appropriate terminal line (Ter0 to Ter15) dependent on the FUNCtion mode set. A ninth Form C relay (C108) is used to switch terminal lines to the analog bus. Figure 2-10 shows routing relays C100, C101 and C102. These are three of the nine form C routing relays. WIRE1 (1-wire) Example In the 1-wire mode, all channels are routed to terminal line Ter0.
WIRE1 Mode Topology Table 2-2. One 1-Wire X 256-Channel Topology Table.
WIRE2 Mode Topology Table 2-3. One 2-Wire X 128-Channel Topology Table.
WIRE3 and WIRE4 Mode Topology Table 2-4. One 3-Wire (or 4-Wire) X 64-Channel Topology Table.
WIRE1X2 Mode Topology Table 2-5. Two 1-Wire X 128-Channel Topology Table.
WIRE1X4 Mode Topology Table 2-6. Four 1-Wire X 64-Channel Topology Table.
WIRE1X8 Mode Topology Table 2-7. Eight 1-Wire X 32-Channel Topology Table.
WIRE2X2 Mode Topology Table 2-8. Two 2-Wire X 64-Channel Topology Table.
WIRE2X4 Mode Topology Table 2-9. Four 2-Wire X 32-Channel Topology Table.
WIRE2X8 Mode Topology Table 2-10. Eight 2-Wire X 16-Channel Topology Table.
WIRE4X2 Mode Topology Table 2-11. Two 4-Wire X 32-Channel Topology Table.
WIRE4X4 Mode Topology Table 2-12. Four 4-Wire X 16-Channel Topology Table.
66 Using the Multiplexer
Chapter 3 Agilent E8462A Relay Multiplexer Command Reference Using This Chapter This chapter describes the Standard Commands for Programmable Instruments (SCPI) and IEEE 488.2 Common (*) commands applicable to the Agilent E8462A 256-Channel Relay Multiplexer. See the Agilent E1406A Command Module User's Manual for additional information on SCPI and common commands. This chapter contains the following sections: • Command Types. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Note There is a space between the second level command (for example, CLOSe) and the . Command Separator A colon (:) always separates one command from the next lower level command as shown below: ROUTe:SCAN:MODE? Colons separate the root command from the second level command ([ROUTe:]SCAN), and the second level from the third level (SCAN:MODE?). Abbreviated Commands The command syntax shows most commands as a mixture of upper and lower case letters.
Linking Multiple SCPI Commands From the Same Subsystem. Use only a semicolon between commands within the same subsystem. For example, to set the trigger slope and the trigger source which are both set using the TRIGger subsystem, send the following SCPI string: TRIG:SLOPe NEG;SOURce EXT Linking Multiple SCPI Commands of Different Subsystems. Use both a semicolon and a colon between commands of different subsystems.
An example is the TRIGger:SOURce command where source can be BUS, EXTernal, HOLD, IMMediate, ECLTrgn, or TTLTrgn. Numeric Parameters are commonly used decimal representations of numbers including optional signs, decimal points, and scientific notation (for example, 123, 123E2, -123, -1.23E2, .123, 1.23E-2, 1.23000E- 01). Special cases include MINimum, MAXimum and DEFault. Optional Parameters are shown within square brackets ([ ]).
ABORt The ABORt command stops a scan in progress when the scan is enabled via the interface and the trigger source is TRIGger:SOURce BUS or TRIGger:SOURce HOLD. Subsystem Syntax Comments ABORt ABORt Actions: The ABORt command terminates a scan in progress by causing the switchbox to no longer wait for a trigger. When the ABORt command is executed, the last channel switched during the scan remains in the position.
ARM The ARM subsystem selects the number of scanning cycles (1 to 32767) for each INITiate command. Subsystem Syntax ARM :COUNt MIN|MAX :COUNt? [MIN|MAX] ARM:COUNT ARM:COUNt MIN|MAX Allows scanning cycles to occur a multiple of times (1 to 32,767) with one INITiate command when INITiate:CONTinuous OFF|0 is set. MIN sets 1 cycle and MAX sets 32,767 cycles.
Parameters Comments Example Parameter Name Parameter Type Range of Values MIN|MAX numeric MIN=1, MAX=32,767 Default Value current cycles Related Commands: INITiate[:IMMediate] Query Number of Scans This example sets a multiplexer module for 10 scanning cycles and queries the number of scan cycles set. The ARM:COUN? command returns 10. ARM:COUN 10 ARM:COUN? Set 10 scans per INIT command. Query number of scans.
DIAGnostic The DIAGnostic subsystem controls setting and querying the Multiplexer’s interrupt line, interrupt timer and checks the state of the bank fuses.
DIAGnostic:INTerrupt[:LINE] DIAGnostic:INTerrupt[:LINE] , sets Multiplexer interrupt line. The card_number specifies which Agilent E8462A in a multiple-module switchbox, is being referred to. The line_number can be 1 through 7 corresponding to VXI backplane interrupt line 1-7. Parameter Comments Name Type Range of Values Default Value numeric numeric 1 - 99 0-7 1 1 • Setting = 0 will disable the Multiplexer’s interrupt.
DIAGnostic:INTerrupt:TIMer DIAGnostic:INTerrupt:TIMer ,
DIAGnostic:SCAN:DELay DIAGnostic:SCAN:DELay , delay_time sets the amount of extra time the module will wait between opening one channel and closing the next in a scan operation.specified multiplexer module and returns the interrupt delay time. Parameters Comments Example Name Type Range of Values Default numeric 1-99 1 numeric 0 seconds • Set the scan delay time for scanning operations. DIAG:SCAN:DEL 2,.005 5 mS scan delay setting on card number 2.
DISPlay The DISPlay subsystem monitors the channel state of a selected module (or card) in a switchbox. The DISPlay command subsystem only operates with a RS-232 terminal connected to the Agilent E1405/1406 command module’s RS-232 port. These commands control the display on the terminal, and would in most cases be typed directly from the terminal keyboard. It is possible however, to send these commands over the GPIB interface, and control the terminal’s display.
DISPlay:MONitor[:STATe] DISPlay:MONitor[:STATe] turns the monitor mode ON or OFF. When monitor mode is on, the RS-232 terminal display presents an array of values indicating the open/close state of every switch on the module. This display is dynamically updated each time a switch is opened or closed.
three hexidecimal displays which show the values of the two Tree registers and the Analog Bus register. For example, assume FUNCtion is set to WIRE4 and channel 35 is closed (this also closes tree relays T4 and T11 connecting the 4-wire channel 35 to Terminals 0, 1, 4 and 5).
INITiate The INITiate command subsystem selects continuous scanning cycles and starts the scanning cycle. Subsystem Syntax INITiate :CONTinuous :CONTinuous? [:IMMediate] INITiate:CONTinuous INITiate:CONTinuous Enables or disables continuous scanning cycles.
INITiate:CONTinuous? INITiate:CONTinuous? Queries the scanning state. With continuous scanning enabled, the command returns "1" (ON). With continuous scanning disabled, the command returns "0" (OFF). Example Query Continuous Scanning State This example enables continuous scanning of a switchbox and queries the state. Since continuous scanning is enabled, INIT:CONT? returns "1". INIT:CONT ON INIT:CONT? Enable continuous scanning. Query continuous scanning state.
OUTPut The OUTPut command subsystem selects the source of the output trigger generated when a channel is closed during a scan. The selected output can be enabled, disabled, and queried. The three available outputs are the ECLTrg, TTLTrg trigger buses as well as the command module's (E1406A) front panel "Trig Out" port.
*RST Condition: OUTPut:ECLTrgn[:STATe] OFF (disabled) Example Enabling ECL Trigger Bus Line 0 OUTP:ECLT0:STAT 1 Enable ECL Trigger bus line 0 to output pulse after each scanned channel is closed. OUTPut:ECLTrgn[:STATe]? OUTPut:ECLTrgn[:STATe]? Queries the present state of the specified ECL Trigger bus line. The command returns "1" if the specified bus line is enabled or "0" if the specified bus line is disabled.
*RST Condition: OUTPut[:EXTernal][:STATe] OFF (disabled) Example Enabling "Trig Out" Port OUTP:EXT 1 Enable "Trig Out" port to output pulse after each scanned channel is closed. OUTPut[:EXTernal][:STATe]? OUTPut[:EXTernal][:STATe]? Queries the present state of the "Trig Out" port. The command returns "1" if the port is enabled or "0" if disabled. Example Query "Trig Out" Port Enable State This example enables the "Trig Out" port and queries the enable state.
Related Commands: [ROUTe:]SCAN, TRIGger:SOURce, OUTPut:TTLTrgn[:STATe]? *RST Condition: OUTPut:TTLTrgn[:STATe] OFF (disabled) Example Enabling TTL Trigger Bus Line 7 OUTP:TTLT7:STAT 1 Enable TTL Trigger bus line 7 to output pulse after each scanned channel is closed. OUTPut:TTLTrgn[:STATe]? OUTPut:TTLTrgn[:STATe]? Queries the present state of the specified TTL Trigger bus line. The command returns "1" if the specified TTLTrg bus line is enabled or "0" if disabled.
[ROUTe:] The [ROUTe:] command subsystem controls switching and scanning operations for multiplexer modules in a switchbox. Note Subsystem Syntax This command opens all previously closed relays, therefore, it should be the first relay configuration command.
Comments Parameter Name Parameter Type Mode Range of Values channel_list numeric WIRE2X4 cc0000 to cc0031 cc1000 to cc1031 cc2000 to cc2031 cc3000 to cc3031 WIRE4X4 cc0000 to cc0015 cc1000 to cc1015 cc2000 to cc2015 cc3000 to cc3015 WIRE1X8 cc0000 to cc0031 cc1000 to cc1031 cc2000 to cc2031 cc3000 to cc3031 cc4000 to cc4031 cc5000 to cc5031 cc6000 to cc6031 cc7000 to cc7031 WIRE2X8 cc0000 to cc0015 cc1000 to cc1015 cc2000 to cc2015 cc3000 to cc3015 cc4000 to cc4015 cc5000 to cc5015 cc6000 to c
• Closure order for multiple channels with a single command is not guaranteed. Note Channel numbers can be in the channel_list in any random order but when the sequential channel list is used (ccbnnn:ccbnnn), the second channel identifier must be greater than the first. Closing the Control Relays: The control relays (9000 to 9021, 9100 to 9108) can be closed to perform special functions (for example, connecting channels to the analog bus).
20067 closes channel 67 of card #2. [ROUTe:]CLOSe? [ROUTe:]CLOSe? Returns the current state of the channel(s) queried. Channel_list has the form (@ccbnnn) (see [ROUTe:]CLOSe for definition). The command returns "1" if channel(s) are closed or returns "0" if channel(s) are open. Comments Example Query is Firmware Readback: The ROUTe:CLOSe? command returns the current firmware state of the channel(s) specified. It does not account for relay hardware failures.
[ROUTe:]FUNC opens relays: Sending the ROUT:FUNC command will automatically open all relays on the card. [ROUTe:]FUNC automatically closes tree relays: Sending the ROUT:FUNC command will cause all appropriate control relays to be automatically closed or opened during subsequent CLOSe, OPEN or SCAN operations. The user does not have to manually set the control relays.
Example Configuring Multiplexer Mode This example configures card 01 of a single-module switchbox to four-wire mode. FUNC 1,WIRE4 Configures card #1 to four-wire mode. [ROUTe:]FUNCtion? [ROUTe:]FUNCtion? Returns the current operating mode of the card(s) queried. See the [ROUTe:]FUNCtion command for card_number definition.
Parameters Parameter Name Parameter Type channel_list numeric channel_list Comments numeric Mode Range of Values WIRE1 WIRE2 WIRE3 WIRE4 cc0000 to cc0255 cc0000 to cc0127 cc0000 to cc0063 cc0000 to cc0063 WIRE1X2 cc0000 to cc0127 cc1000 to cc1127 WIRE2X2 cc0000 to cc0063 cc1000 to cc1063 WIRE4X2 cc0000 to cc0031 cc1000 to cc1031 WIRE1X4 cc0000 to cc0063 cc1000 to cc1063 cc2000 to cc2063 cc3000 to cc3063 WIRE2X4 cc0000 to cc0031 cc1000 to cc1031 cc2000 to cc2031 cc3000 to cc3031 WIRE4X4
one channel per MUX can be closed at any time in the WIRE1 modes due to the need of the control relay to choose the “side” for connection to the common terminal. For example, in the WIRE1 mode (one 1X256), the control relay chooses either Ter0 or Ter1 for connection to the one-wire common terminal (Ter0). You should not make any field connection to the odd numbered common terminals (e.g., Ter1, 3, 5, 7, 9, 11, 13 or 15) because these connectors do get routed to the channels by the control relay.
- 9201 disconnects analog L1 from the low side of the channel connection. - 9202 disconnects analog G from analog L1. This is needed to disconnect the Guard of an Agilent E1411 from the Low connection. - 9203 disconnects analog H2 from the high side of the second pair of a four-wire connection. - 9204 disconnects analog L1 from the low side of the second pair of a four-wire connection.
[ROUTe:]SCAN [ROUTe:]SCAN Defines the channels to be scanned. Channel_list has the form (@ccbnnn) where cc = card number (01-99), b = bank number (0-7), and nnn = channel number (000-255).
for valid card, and channel numbers. An error is generated for an invalid channel list. 64 Channel Limit: Individual channel numbers are limited to 64 due to the maximum length of command in the current driver. Select MODE with [ROUTe:]FUNCtion command. The ROUT:FUNC command is used to select the mode for the Agilent E8462A module. The interpretation of the channel_list as to which relays will open or close depends upon the selected mode.
[ROUTe:]SCAN:MODE [ROUTe:]SCAN:MODE Sets the multiplexer channels defined by the [ROUTe:]SCAN command for none, volts, two-wire ohms, or four-wire ohms measurements. Parameters Comments Parameter Name Parameter Type Range of Values Default Value mode discrete NONE|VOLT|RES|FRES NONE Order of Command Execution: The [ROUTe:]SCAN:MODE and [ROUTe:]FUNCtion commands must be executed before the [ROUTe:]SCAN command.
[ROUTe:]SCAN:MODE? [ROUTe:]SCAN:MODE? Returns the current state of the scan mode. The command returns NONE, VOLT, RES, or FRES if the scan mode is in the none, volts, two-wire ohms, or four-wire ohms measurement mode, respectively. Example Query the Scanning Mode This example selects the four-wire ohms measurement mode (FRES) on card #1 of a single-module switchbox, then queries the measurement state. Because four-wire ohms mode is selected, the query command returns "FRES".
[ROUTe:]SCAN:PORT ABUS with 2-Wire Functions: With FUNC set to WIRE2, WIRE2X2, WIRE2X4 or WIRE2X8 and SCAN:PORT set to ABUS, control relays 9200 and 9201 are closed. In addition, if the SCAN:MODE is not RES, then control relays 9203 and 9204 are closed. If SCAN:MODE is not RES, then Analog Control Relay 9202 is closed. Analog Control Relays that are not listed as being closed will be opened.
STATus The STATus subsystem reports the bit values of the Operation Status Register. It also allows you to unmask the bits you want reported from the Standard Event Register and to read the summary bits from the Status Byte Register. Subsystem Syntax STATus :OPERation :CONDition? :ENABle :ENABle? [:EVENt?] :PRESet The STATus system contains four registers, two of which are under IEEE 488.2 control; the Standard Event Status Register (*ESE?) and the Status Byte Register (*STB?).
102 Agilent E8462A Relay Multiplexer Command Reference
STATus:OPERation:CONDition? STATus:OPERation:CONDition? Returns the state of the Condition Register in the Operation Status Group. The state represents conditions which are part of the instrument's operation. The "SWITCH" driver does not set bit 8 in this register (see STATus:OPERation[:EVENt]? on page 103). STATus:OPERation:ENABle STATus:OPERation:ENABle Sets an enable mask to allow events recorded in the Event Register to send a summary bit to the Status Byte Register (bit 7).
Returned Data after sending the STATus:OPERation[:EVENt]? Command: The command returns "+256" if bit 8 of the Operation Status Register is set to 1. The command returns "+0" if bit 8 of the Operation Status Register is set to 0. Event Register Cleared: Reading the Event Register with the STATus:OPERation:EVENt? command clears it. Aborting a scan: Aborting a scan will leave bit 8 set to 0.
SYSTem The SYSTem subsystem returns the numbers and messages in the error queue of a switchbox, and returns the switchbox module descriptions. Subsystem Syntax SYSTem :CDEScription? :CPON | ALL :CTYPe? :ERRor? SYSTem:CDEScription? SYSTem:CDEScription? Returns the module description.
SYST:CDES? Return the description. SYSTem:CPON SYSTem:CPON | ALL Sets the selected module (card) in a switchbox to its power-on state, with the exception of the mode, interrupt line and interrupt timer selected. Parameters Comments Parameter Name Parameter Type Range of Values Default Value number numeric 1 through 99 N/A Multiplexer Module Power-on State: The power-on state is all channels (relays) open.
SYSTem:ERRor? SYSTem:ERRor? Returns the error numbers and corresponding error messages in the error queue of a switchbox. See Appendix C for a listing of switchbox error numbers and messages. Comments Error Numbers/Messages in the Error Queue: Each error generated by a switchbox stores an error number and corresponding error message in the error queue. The error message can be up to 255 characters long.
TEST The TEST command subsystem allows you to cycle through a particular self-test a specified number of times instead of running the entire suite of self-tests as is performed with the *TST? command. Subsystem Syntax TEST :NUMBer? , TEST:NUMBer? TEST:NUMBer? , is a query and returns the number of times the specified test failed out of the specified number of times the test was cycled.
test_number Description cc99 This is a special test that scans through all relays. DO NOT USE this test when the card has terminal block connections. NOTE: The Multiplexer function must be set to the eight 1-wire MUX mode ( [ROUTe:]FUNC cc,WIRE1X8 where cc is the card number) to test relays C100 through C108. Otherwise, these relays are not tested. This is a precaution taken that prevents shorting of field wiring if terminal block connections are inadvertently left connected.
TRIGger The TRIGger command subsystem controls the triggering operation of multiplexer modules in a switchbox. Subsystem Syntax TRIGger [:IMMediate] :SLOPe :SLOPe? :SOURce :SOURce? TRIGger[:IMMediate] TRIGger[:IMMediate] Causes a trigger event to occur when the defined trigger source is TRIGger:SOURce BUS or TRIGger:SOURce HOLD. Comments Executing the TRIGger[:IMMediate] Command: First, the measurement modes must be selected using the [ROUTe:]FUNCtion and [ROUTe:]SCAN:MODE commands.
Parameters Comments Parameter Name Parameter Type Range of Values Default Value slope discrete NEG NEG Command Not Supported. Attempting to change the TRIGger:SLOPe to anything other than NEG will generate an error. TRIGger:SLOPe? TRIGger:SLOPe? Is used to query the polarity of the output trigger. For the Agilent E8462A, this query always returns NEG. Example Query Trigger Slope TRIG:SLOP? Always returns NEG.
external trigger source (with an TRIGger:SOURce EXTernal command). Using TTL or ECL Trigger Bus Inputs: With TRIGger:SOURce TTLTrgn or ECLTrgn selected, only one switchbox at a time can use the trigger bus selected on the Agilent E1406A Command Module bus. The trigger input is assigned to the first switchbox that requested the trigger source (with a TRIGger:SOURce TTLTrgn or ECLTrgn command). Only one of the ten available trigger bus lines (ECL0 to 1 or TTL0 to 7) can be specified at one time.
Increment loop Increment loop count. TRIGger:SOURce? TRIGger:SOURce? Returns the current trigger source for the switchbox. Command returns BUS, ECLT, EXT, HOLD, IMM, or TTLT for sources BUS, ECLTrgn, EXTernal, HOLD, IMMediate, or TTLTrgn, respectively. Example Querying the Trigger Source This example sets external triggering and queries the trigger source. Since external triggering is set, TRIG:SOUR? returns "EXT". TRIG:SOUR EXT TRIG:SOUR? Set external trigger source. Query trigger source.
IEEE 488.2 Common Command Reference The following table lists the IEEE 488.2 Common (*) Commands that apply to the Agilent E8462A module. The operation of some of these commands is described earlier in this manual. For more information on Common Commands, refer to the Agilent E1406A Command Module User's Manual or the ANSI/IEEE Standard 488.2-1987. Table 3-2. Command Command Description *CLS Clears all status registers (see STATus:OPERation[:EVENt]?) and clears the error queue.
SCPI Command Quick Reference Table 3-3. Agilent E8462A SCPI Command Quick Reference. Command Description ABORt Abort a scan in progress. ARM :COUNt MIN|MAX :COUNT? [MIN|MAX] Multiple scans per INIT command. Query number of scans. DIAGnostic :FUSE? :INTerrpt[:LINE] , :INTerrpt[:LINE]? :INTerrpt:TIMer , :INTerrupt:TIMer? :SCAN:DELay , :SCAN:DELay? Query fuse continutity.
116 Agilent E8462A Relay Multiplexer Command Reference
Chapter 4 Agilent E8462A Scanning Voltmeter Application Examples Using This Chapter This chapter gives application information and examples for using the Agilent E8462A 256-Channel Relay Multiplexer to make measurements with the Agilent E1411B (or Agilent E1326B used with a C-size adapter installed in the C-size mainframe) 5½-Digit Multimeter in the scanning voltmeter configuration. This chapter contains the following sections: • Reset Conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Figure 4-1. "Scanning Voltmeter" Configuration Reset Conditions This section describes the power-on and reset condition the E8462A switch module is in when a “scanning voltmeter” reset occurs. The “VOLTMTR” device driver controls both the voltmeter and any switch module configured with it in a scanning voltmeter configuration. At power-on or following the reset of a scanning voltmeter (*RST command sent to the voltmeter address), all 256 channels and the tree relays are open.
. Table 4-1. Agilent E8462A Default Conditions for Power-on and Reset Parameter Default Value Description ARM:COUNt 1 Number of scanning cycles is one. TRIGger:SOURce IMM Advances through a scanning list automatically. INITiate:CONTinuous OFF Number of scanning cycles is set by ARM:COUNt. OUTPut[:STATe] OFF Trigger output from EXT, TTL, or ECL sources is disabled. [ROUTe:]SCAN:MODE NONE Channel list is set up for volts measurement (the default mode).
Table 4-2. Tree Relay Descriptions (controlled automatically by the “VOLTMTR” Scanning Voltmeter Driver) Relay Function Analog Bus Relays Tree Relay Channel Designation 9200 AB200 Connects the Voltage Sense H1 terminal of the Analog Bus to the Terminal Bus, line Ter0. 9201 AB201 Connects the Voltage Sense L1 terminal of the Analog Bus to the Terminal Bus, line Ter1. 9202 AB202 Connects the G terminal of the Analog Bus to the Terminal Bus, line Ter1 or Ter2.
10 20 !Dimension a computer array to store readings. DIM Rdgs(1:32) 30 40 50 60 !Clear and reset the scanning voltmeter (voltmeter & multiplexer). !See Figure 4-1 for module addresses. CLEAR 70903 OUTPUT 70903;"*RST" 70 80 90 !Configure the multimeter for DCV measurements and !specify the channel list to scan (channels 00 through 31). OUTPUT 70903;"MEAS:VOLT:DC? (@100:131)" 100 110 120 130 140 150 !Enter and display measured readings.
Scanning Voltmeter Command Quick Reference The following tables summarize SCPI commands for the Agilent E1326B and Agilent E1411B 5½-Digit Multimeters. Command ABORt Description Place multimeter in idle state. CALibration :LFRequency 50 | 60 | MIN | MAX :LFRequency? [MIN | MAX] :ZERO:AUTO OFF | 0 | ON | 1 :ZERO:AUTO? Change line reference frequency. Query line reference frequency. Enable/disable autozero mode. Query autozero mode.
Command Description [SENSe:] FUNCtion[:] FUNCtion? RESistance:APERture | MIN | MAX RESistance:APERture? [MIN | MAX] RESistance:NPLC | MIN | MAX RESistance:NPLC? [MIN | MAX] RESistance:OCOMpensated OFF | 0 | ON | 1 RESistance:OCOMpensated? RESistance:RANGe | MIN | MAX RESistance:RANGe? [MIN | MAX] RESistance:RANGe:AUTO OFF | 0 | ON | 1 RESistance:RANGe:AUTO? RESistance:RESolution | MIN | MAX RESistance:RESolution? [MIN | MAX] VOLTage:AC:RANGe | MIN |
Notes: 124 Agilent E8462A Scanning Voltmeter Application Examples Chapter 4
Appendix A Agilent E8462A Specifications General Characteristics Module Size/Device Type Interrupt Level Cooling/Slot Operating Temperature C-Size VXIbus, Register based, A16/D16 1-7, selectable Watts/slot: 30W max, 10W typical 0.1 P mm H2O: Air Flow (liters/sec): 3.0 0 - 55°C Operating Humidity 65% RH, 0 - 40°C Operating Location Intended for indoor use only.
Input Characteristics These limits apply only if there are no connections made to power mains. Maximum Input With Option 012 Crimp & Insert Terminal Card With Opt. 014 Fault Tolerant Terminal Card With Opt. 015 Ribbon Cable Conn. Terminal Card Analog Bus Maximum DC Voltage 250 V (see notes a and b) 60 V 60 V 60 V Max. ACrms Voltage 250 V (see notes a and b) 50 V (see note c) 50 V (see note c 30 V Max. ACpeak Voltage 353V (see note a) 70.7 V (see note c) 70.
AC Performance (Typical) Bandwidth, 50 Source/Load: Configuration 100 Protection Resistor Shorted 256:1 (1-wire) 6.0 MHz 128:1 (2-wire) 12.0 MHz 32:1 (2-wire) 30.
Relay Life Electromechanical relays are subject to normal wear-out. Relay life depends on several factors. The effects of loading and switching frequency are briefly discussed below. Relay Load. In general, higher power switching reduces relay life. In addition, capacitive/inductive loads and high inrush currents (for example, turning on a lamp or starting a motor) reduces relay life. Exceeding specified maximum inputs can cause catastrophic failure. Switching Frequency.
Appendix B Register-Based Programming About This Appendix The Agilent E8462A 256-Channel Relay Multiplexer is a register-based module which does not support the VXIbus word serial protocol. When a SCPI command is sent to the multiplexer, the instrument driver parses the command and programs the multiplexer at the register level. Register-based programming is a series of reads and writes directly to the multiplexer registers.
A16 Address Space Outside the Command Module When the Agilent E1406A Command Module is not part of your VXIbus system (Figure B-1), the multiplexer's base address is computed as:1 C000h + (LADDR * 64)h or (decimal) 49,152 + (LADDR * 64) where C000h (49,152) is the starting location of the register addresses, LADDR is the multiplexer's logical address, and 6410 is the number of address bytes per VXI device. For example, the multiplexer's factory set logical address is 112 (70h).
A16 Address Space Inside the Command Module or Mainframe When the A16 address space is inside the Agilent E1406A Command module (Figure B-2), the multiplexer's base address is computed as: 1FC000h + (LADDR * 64)h or (decimal) 2,080,768 + (LADDR * 64) where 1FC000h (2,080,768) is the starting location of the VXI A16 addresses, LADDR is the multiplexer's logical address, and 64 is the number of address bytes per register-based device. Again, the multiplexer's factory set logical address is 112.
Register Offset The register offset is the register's location in the block of 64 address bytes. For example, the multiplexer's Status/Control Register has an offset of 04h.
Register Descriptions The Multiplexer has 25 registers (refer to Table B-1). This section contains a description of each register. Undefined register bits appear as "1" when the register is read, and have no effect when written to. Table B-1. Agilent E8462A 256-Channel Multiplexer Registers Register Addr.
There are eight relay registers driving the 256 channels of the Multiplexer and two tree relay registers controlling the 21 tree relays. The second tree relay control register also controls nine C relays used for signal routing. The analog bus register controls five analog bus connection relays. All these relay control registers are readable/writable (R/W) registers. Writing a “1” to one bit will close the respective relay and writing a “0” will open the relay.
Status/Control Register Bits Defined: *WRITE BITS (Control Register) bit 0 R bit 1 SYSFAIL bit 6 D bits 10, 9, 8 Interrupt level Writing a “1” to bit 0 resets the module to the power-on state (all channels open). Allow a 5 mS delay, then you must set bit 0 back to “0” before the multiplexer will resume normal open/close operations. Writing a “1” to bit 1 inhibits the front panel SYSFAIL error LED. Writing a “0” to this bit enables the interrupts. Writing a “1” to this bit disables the interrupts.
Relay Control Registers Writing to the Relay Control Registers (base + 20h to base + 34h) allows you to open or close any one of the 256 channel relays or the 21 tree relays, nine routing relays or five analog bus relays. Any number of relays per bank can be closed at a time.
Bank 5 Channel 000 - 015 Relay Control Register 5 (Base + 2Ah) base + 2Ah 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 Write Read ch015 ch014 ch013 ch012 ch011 ch010 ch009 ch008 ch007 ch006 ch005 ch004 ch003 ch002 ch001 ch000 Bank 6 Channel 000 - 015 Relay Control Register 6 (Base + 2Ch) base + 2Ch 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 Write Read ch015 ch014 ch013 ch012 ch011 ch010 ch009 ch008 ch007 ch006 ch005 ch004 ch003 ch002 ch001 ch000 Bank 7 Channel 000 - 015 Relay Contr
Timer Control Register This register provides a programmable timer for relay settling time. Programmable times are 2 mS, 5 mS, 8 mS and 64 mS. The primary purpose of the 64 mS time period is testing. Settling times for the relays on this multiplexer can be accomodated by 8 mS or less.
Program Timing and Execution This section contains flowcharts and comments for using register programming to close/open channels and synchronize the multiplexer with a multimeter. The flowcharts identify the registers used and the status bits monitored to ensure execution of the program. Closing Channels The following flowchart shows how to close (or open) a multiplexer channel and determine when it has finished closing (or opening). Bit = 7 E8462A BUSY Bit Figure B-3.
Using a Multimeter with the Multiplexer This flowchart shows the timing sequence between closing an Agilent E8462A Multiplexer channel and triggering an Agilent E1326/E1411 multimeter. Figure B-4. Program Timing Between Multiplexer and Multimeter Comments • Multiplexer Status Register bit 7 (BUSY bit) is monitored to determine when a channel can be closed (or opened), and when a channel has finished closing (or opening).
• Multimeter status bit 5 (multimeter complete) is monitored to determine when the analog-to-digital (A/D) conversion is in progress, and thus, when to advance the channel. This enables each channel to be measured before the readings are read from the buffer.The channel can also be advanced by monitoring bit 4 (Data Ready). However, before measuring the next channel, readings from the previous channel must be read from the buffer in order to clear the bit.
Beginning of Program /* This program reads the ID Register, reads the Device Type Register, */ /* reads the Status Register, reads the modules bank 0 Register, */ /* and closes channels 000 and 001. */ /* (Visual C/C++ program using Agilent VISA I/O calls.) */ #include #include #include
err=viIn16(mux,VI_A16_SPACE, 0x20,&bank0_ch); if(err
144 Register-Based Programming
Appendix C Error Messages Error Types Table C-2 lists the error messages generated by the Agilent E8462A Relay Multiplexer module firmware when programmed by SCPI. Errors with negative values are governed by the SCPI standard and are categorized in Table C-1. Error numbers with positive values are not governed by the SCPI standard. Table C-1. Error Types Described Number Range Error Types Description -199 to -100 Command Errors (syntax and parameter errors).
Table C-2. Multiplexer Error Messages Code Error Message Potential Cause(s) -211 Trigger ignored Trigger received when scan not enabled. Trigger received after scan complete. Trigger too fast. -213 Init Ignored Attempting to execute an INIT command when a scan is already in progress. -222 Data out of range Parameter value is outside valid range. -224 Illegal parameter value Attempting to execute a command with a parameter not applicable to the command.
Index Agilent E8462A 256-Channel Relay Multiplexer A Bus A16 Address Space, 129, 129 A16 Address Space Inside the Command Module, 131 A16 Address Space Outside the Command Module, 130 Abbreviated SCPI Commands, 68 Address A16 address space, 129 base address, 129 channel, 29 logical, 130, 131, 131 Addressing Register, 129 Analog Bus connecting, 99 connecting a channel to the, 37 control relays, 99, 99 disconnecting, 99 port, 100 query analog bus port, 100 scanning channels using the, 43 switching chann
Command Quick Reference Scanning Voltmeter, 122 Command Reference, 67 command types, 67 Commands ARM subsystem, 72, 72, 72 CLEAR, 71, 81 DIAGnostic subsystem, 74 DISPlay subsystem, 78 GET (group execute trigger), 112 IEEE 488.
Error messages in error queue, 107 numbers in error queue, 107 queue, maximum number, 107 Error Checking using interrupts with, 53 Error Conditions detecting, 53 Error Messages multiplexer, 125, 145 Error Types, 145 Event Register, 103, 103 Example Programs, 33 measurements using scanning voltmeter, 120 Examples programming, 141 scanning voltmeter application, 117 ExampleuUsing the scan complete bit, 52 Execution program, 139 External Trigger Inputs, 111 Inputs connecting user, 18 L LADDR, 130 Link
Numbers card, 30 channel, 31 Numeric Command Parameters, 70 numeric parameters, 69 O One-Wire Channel Switching, 38 *OPC?, 89, 95 Common (*) Commands *OPC?, 89, 95 Opening channels, 92, 94, 95 tree relays, 136 Operating Mode changing, 90 querying, 92 Operation initial, 32 Operation Status Register, 101, 101, 103, 103, 104 Operational Status Bit, 101 Optional Command Parameters, 70 OUTPut ECLTrgn[:STATe], 83 ECLTrgn[:STATe]?, 84 TTLTrgn[:STATe], 85, 86 TTLTrgn[:STATe]?, 86 OUTPut Subsystem, 83, 83, 84
Registers base address, 129 condition, 103 Event, 103 event, 103 operation status, 101, 101, 103, 103, 104 reading registers, 129 reading the relay control, 138 relay control, 136 standard event, 101 Standard Event Status, 101 standard event status, 101 status byte, 101, 101, 103 the WRITE, 133 writing to registers, 129 Relay tree relays, 120, 136 Relay Control Registers, 136 Reset, 33 Reset Conditions, 35 scanning voltmeter, 118 Resetting the module, 135 Resetting the Multiplexer, 138 Resistance Measurem
SCPI Commands abbreviated, 68 ARM subsystem, 72, 72, 72 boolean parameters, 69 command separator, 68 DIAGnostic subsystem, 74 discrete parameters, 69 DISPlay subsystem, 78 format, 67 implied, 68 INITiate subsystem, 81, 81, 82, 82 linking, 70 numeric parameters, 70 optional parameters, 70 OUTPut subsystem, 83, 83, 84, 84, 85, 85, 86, 86 parameter types, 69 quick reference, 115 ROUTe subsystem, 87, 87, 88, 90, 90, 92, 92, 94, 95, 95, 96, 97, 98, 99, 99, 100, 100 specifying, 29 STATus subsystem, 101, 103, 103
Switching or Scanning, 36 Synchronizing the Multiplexer with a Multimeter, 46 SYSTem TTL Trigger CDEScription?, 105 CPON, 106 CTYPe?, 106 ERRor?, 107 SYSTem Subsystem, 105, 105, 106, 106, 107 Two-wire Ohms Scanning Measurements, 98 Two-wire Resistance Measurements T enabling and setting, 85, 111, 112 query state of, 86 scanning voltmeter, 121 Types error, 145 U Temperature Measurements By Channel Switching, 43 Terminal Module wiring a, 26 Terminal Modules, 24 The Device Type Register, 134 The Stat
154 Index