Differenti a l Divider or Filter Configuration Example . . . . . . . . . . . . . . . . . . 102
HP E1442A User’s ManualTable of Contents 3
Notes
4 Table of ContentsHP E1442A User’s Manual
Certification
Hewlett-Pac kard Compa ny certif ies that this product met its published spec ifica tion s at the time of shipment from the factory. Hewl et t Packard fur th er cer tif ies that its cal ib rati on me asu re ment s are trace abl e to the Unite d Stat es Nation al Instit ut e of Stand ard s and Technology (for mer l y Nati onal Bur ea u of Sta ndar ds ), to the exte nt allo wed by that orga ni zati on’ s cal ib rat ion f ac ili t y, and t o the c alibration
facilities of ot her Inte rna tional Standards Organ iz ati on members.
Warranty
This Hewlett-Packa rd product is warrante d against defect s in mater ial s and workmanship for a period of three years from date of shipment. Duration and conditions of wa rrant y for this product may be superseded when the product is integrat ed into (bec omes a part
of) other HP products. During the warranty period, Hewl ett-Pac kard Com pany wil l, at its option, eithe r repair or replac e products
which prove to be defective.
For warrant y servic e or repai r, thi s produc t must be retur ned to a service faci lity de sign at ed by Hewlet t-P ac kard (HP ). Buyer sha l l prepay shipping cha rges to HP and HP shall pay shipping c harge s to retu rn the product to Buyer. However, Buye r shall pay all shi ppi n g
charges , dut ies, and ta xe s for produc t s ret urn ed to HP fr om an ot her count ry.
HP warrants that its software and firmware designated by HP for use with a product will execute its programm ing inst ruct ions when
properly instal led on that product. HP does not warrant that the operation of the product , or soft wa re, or firmwa re will be uninterrupted or error free.
Limitation Of Warranty
The foregoing war ra nty sh all not apply to de fect s resul ting from imprope r or inadequate maint e nan ce by Buyer, Buyer- sup plie d pr oducts or interfacing, unauthorized modification or misuse, operation outside of the environmental specifications for the product, or improper site pr ep ar at ion or ma int ena nce.
The design and imple men ta tio n of any circui t on this produc t is the sole respon sibi l ity of the Buyer. HP does not war rant the Buye r’s
circuitry or malf unc tion s of HP products that result from the Buyer’ s circui try . In addition, HP does not warra nt any dama ge tha t occurs as a result of the Buyer’s circui t or any defects that resul t fr om Buyer-supplied products.
NO OTHER WARRANTY IS EXPRESSED OR IMPLIE D. HP SPECIFICALLY DI SCLAI MS THE IMPLI ED W ARRANTIE S OF
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
Exclusive Remedie s
THE REMEDIES PROVIDED HEREIN ARE BUYER’S SOLE AND EXCLUSIVE REM EDI ES. HP SHALL NOT BE LIABLE
FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER BASED ON CONTRACT, TORT, OR ANY OTHER LEGAL THEORY.
Notice
The inform at i on c ont ained in this docum en t is subject to chan ge wi t hout noti ce . HEWLETT-PAC KARD (HP) MAKE S NO WARRANTY OF ANY KIND WITH REGARD TO THIS MATERIAL, INCLUDING, BUT NOT LIM ITE D TO, THE IMPLI ED WARRANTIES OF MERCHANTABILITY AND FITNES S FOR A PARTICULAR PURPOSE. HP shall not be liable for errors contained
herein or for inci de nt al or consequential da mag es in conne ct ion wi t h the fu rnis hi ng, perfo rm a nce or use of th is mat er ial . This document contains proprietary information which is protected by copyright. All rights are reserved. No part of this document may be photocopied, repr oduc ed , or transl ate d to anothe r lan gua ge wi thout t he prior wr itten cons en t of Hewlet t-P ac kar d Compa ny. HP assume s no
respons ibility for the use or reli ab il i t y of it s so ft wa r e on equi pm ent that is not fur ni shed by HP.
U.S. Government Restricted Rights
The Software and Documentation have been developed entirely at private expense. They are delivered and licensed as "commercial
computer soft war e" as defin ed in DFARS 252. 227- 701 3 (Oct 19 88), DFARS 252.211-7015 (May 1991) or DFARS 252. 22 7-7 014 ( Jun
1995), as a "commerci al item " as define d in FAR 2.101(a) , or as "Restric ted com puter softwar e" as defin ed in FAR 52.22 7-19 (Jun
1987) (or any equivalent agency regulation or contract clause), whichever is applicable. You have only those rights provided for such
Software and Documentation by the applicable FAR or DFARS clause or the HP standard software agreement for the product involved.
HP E1442A 64-Cha nne l Form C Swi tch M odu le Use r’s Manu al
HP E1442A 64-Channel Form C Switch Module User’s Manual 5
Documentatio n 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 increm ents by 1 whenever the manua l is revised . Updates, whic h are issued betwee n Edit ions , contain repl a cem ent pa ges
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 inf orma t io n for the previ ou s Edi ti on. Each new Ed iti on or Upda te also incl ude s a revis ed c opy of this doc um en tat io n hi story page.
Instruction ma nual sym bol affixed to prod uct. Indicates that the user must refer to the
manual for specific WARNING or CAUTION information to avoid personal injury
or dama ge t o t he pr o du ct .
Indicates the field wiring terminal that must
be connec ted t o eart h groun d bef or e opera t ing the equipment—protects against electrical sho ck in ca se of fault.
Fram e or cha ss is gro und t er m i nal — ty pi -
or
cally connects to the equipment’s metal
frame.
WARNING
CAUTION
Alternating curre nt (AC) .
Direct curr en t (DC).
Indicates hazardous voltages.
Calls at te nt i on t o a pr oce dure, prac ti c e, or
condit ion t hat co ul d ca use bodi l y inj ury or
death.
Calls at te nt i on t o a pr oce dur e, pr ac ti c e, or c on dition t hat co ul d pos sibl y ca us e da m age to
equipment or permanent loss of data.
WARNINGS
The following ge ner al safet y prec aut io ns mus t be obse rv ed du ring al l phas es of operati on , servi ce , and repai r of this prod uct .
Failure to compl y with thes e pr ecaut i ons or with spec i fic warni ngs elsewhe re in this manua l violat es safety stand ard s of desig n,
manufactur e, and inten ded use of the produc t. Hewl ett- Pac kar d Com pan y assum es no lia bi lit y for the custo mer’ s fai lure to
comply with these requirements.
Ground the e qui pm en t: For Saf ety Clas s 1 eq uipmen t (e qu ipment ha ving a protective ea rt h t erminal ) , a n uni nt errupt ib le safety earth
ground must be provide d from the ma in s power sour ce to the prod uct input wi ring ter m inal s or suppli ed power cable .
DO NOT operat e the pr oduc t in an expl os ive atmo sph er e or in the pres en ce of flammabl e gase s or fume s.
For continued protection against fire, replace the line fuse(s) only with fuse(s) of the same voltage and current rating and type.
DO NOT use repaired fuses or short-circuited fuse holders.
Keep away from live circuits: Operati ng pers onne l must not re move equi pm e nt cover s or shiel ds . Proc ed ure s invo lv in g the rem ova l
of covers or shi el ds are for use by se rv ic e- t ra ined personnel only. Under certain cond iti ons, dangerous vol ta ge s m ay exist even wit h the
equipment switc hed off. To avoid dange rous e lectr ical shock , DO NOT perform proc edu res involvi ng cover or shield removal unless
you are qualified to do so.
DO NOT operate damaged equipment: Whe ne ver it i s possi bl e that the sa fety prot e cti on fe at ur es bui l t int o thi s produc t have bee n im paired, eithe r through phys ical da m age , exces sive mois ture , or any other reas on, REMOVE POW E R and do not use the produc t unt il
safe operation can be verifie d by serv ice-t ra ined pers onn el. If necessary, return the produ ct to a Hewlett -Pac kar d Sales a nd Se rvice Office for service and repair to ensure that safety features are maintained.
DO NOT service or adjust alone: Do not attempt internal service or adjustment unless another person, capable of rendering first aid
and resus ci t at i on, is pr esent.
DO NOT substitute parts or modify equipment: Because of the danger of intr oduc i ng addi tional hazards , do not inst all subst itut e
parts or perform any unaut hor ized modi ficat io n to the produc t. Retur n the produ ct to a Hewlet t-P ac kard Sa les and Se rvic e Offi ce for
service and repair to ensure that safety features are maintained.
6 HP E1442A 64-Channel Form C Switch Module User’s Manual
Declaration of Conformity
according to ISO/IEC Guide 22 and EN 45014
Manufacture r ’s Name :Hewlett-Pa ck ard Com pa ny
Lovela nd M a nufacturi ng Ce nter
Manufacture r’s Addre s s:815 14th Stre et S.W .
Loveland, Colorado 80537
declares, that the produc t:
Product Name:64-Channel For m C GP Switch Module
Model Number:HP E1442A
Product Options:All
conforms to the followi ng Produc t Spe cific ati ons:
EMC: CISPR 11:1990/ EN5 5011 (1991 ): Group1, Cl ass A
IEC 801-2:1991/ E N5008 2-1 (1 992) : 4kVCD
IEC 801-3:1984/ E N5008 2-1 (1 992) : 3 V/m
IEC 801-4:1988/ E N5008 2-1 (1 992) : 1kV Power Lin e, . 5kV Sig nal Line s
IEC 801-5:1992( DRAFT ) 3kV Low Ener gy, 1kV High Ener gy
Supplementary Information: The product herewith complies with the r equirements of th e Low Voltage
Directive 73/23/EEC and the EMC Directive 89/336/EEC .
Tested in a typic al confi gur at ion in an HP C-size VXI mainfr am e .
July 28, 1994Jim White, QA Manager
European c ont act : You r loca l He wle tt-Packard Sa les a nd Se rvi ce Offic e or Hewl ett- Pac ka rd GmbH, De pa rtme nt
HQ-TRE, Herren be rge r Straß e 130, D-71034 Böbl in gen, Germa ny (FAX +49- 7031 -14- 3143 ).
HP E1442A 64-Channel Form C Switch Module User’s Manual 7
Notes
8 HP E1442A 64-Channel Form C Switch Module User’s Manual
Please fold and tape for mailing
Reader Comment Shee t
HP E1442A 64-Channel Form C Switch Module User’s Manual
Edition 2
You can help us improve our manuals by sha rin g your comme nts a nd sug ge sti ons. In appreciat ion of your time, we will
enter you in a quarterly drawing for a Hewlett -Pac kar d Palmtop Per sonal Computer (U.S. government employees
are not eligible for the drawing).
Your Name
Company Name
Job Title
Address
City, State/Province
Country
Zip/Postal Code
Telephone Number with Area Code
Please list the syste m contr olle r, oper ati ng syste m , progr am mi ng language , and plug-in mo dule s you are using.
fold here
BUSIN ES S REPLY MAIL
FIRST CLASSPERMIT NO. 37LOVELAND, CO
HEWLETT-PACKARD COMPANY
cut along this line
Measurement Sys tems Divi si on
Learning Products Department
P.O. Box 301
Loveland, C O 80539-9984
NO POSTAGE
NECESSARY
IF MAILED
IN THE
UNITED STATES
fold here
Please penci l-in one circl e for eac h statem ent bel ow:Disagree Agree
• The documentation is well organized.OOOOO
•Instructions are easy to understand.OOOOO
•The documentation is clearly written.OOOOO
•Examples are clear and useful.OOOOO
•Illustrati ons are cle ar and helpfu l.OOOOO
•The documentation meets my overall expectations.OOOOO
Please wri te any c omments or sugge stions below--be spe ci fi c.
10 HP E1442A 64-Channel Form C Switch Module User’s Manual
Using This Chapter
This chapter provides one page of general module information follow ed by
the tasks you must perform to set up your module. It also provides
information to verify that your inst allation was successful . Chapter contents
include:
The terms "Form C switch" and "switch" are both used in this manu al to
refer to the HP E1442A 64-Channel Form C Switch Module which is a
VXIbus C-size register-based slave device that can operate in a C-size
VXIbus mainframe or a VMEbus mainframe.
The switch "instrument" is the firmware running in the E1405/E1406
Command Mod ule. This firmware is the instrum ent driver providi ng SC PI
(Standard Commands for Programm able Instrum en ts) programm ing
capabilit y. The term "switchbox" is used to refer to a switch instrument
made up of one or more switch modules.
Programmin g the HP E1442A can be done th rough th e command m odul e
using the Standa rd Commands for Programmable Instrum ents (SC PI - see
Chapter 3), or via direct register access (register-based programming - se e
Appendix B).
Chapter 1HP E1442A Module Setup 11
Graphical Overview
Figure 1-1 is a simplified schematic illu strating the 64- chan nel Form C
switch module with internal bu s and all available t erminal m odul es .
Figure 1-1. Form C Switch Simpl ified Schemati c
HP E1442A Terminal
Module Summary
12 HP E1442A Module SetupChapter 1
• Standard Solder-Lug Terminals
• Option 010: Signal Condition ing C ircuitry/Solder Eyes
• Option 020: Screw Terminal Form A Confi guration Terminals
(NOTE: Option 020 has no connection to the NC relay contact.)
Module Use and Address Selection
You can use the switch module as a switchbox in two ways:
• As one module in a group of switch modules called a switchbox.
The first module must be addressed so it can be recognized as an
instrument and the other modules in the group have addresses
sequentially following the first module e.g., 120, 121, 122 ....
• As a single-switchbox switch mod ule. The module must be
addressed so it can be recognized as an instrument.
NOTEAddressing channels on a switch module depends on how you use the
module. Figure 1-2 on card numbers (module num bers) and channel
addresses describes how your choice of using the module determines ho w
you access a particular channel on the switch card (modu le).
MultipleModule
Switchbox
Multipleand
Single-Module
Switchboxes
The channel address (
has the form (@ccnn) where:
cc = card number
nn = channel number.
Channel 45 on card number 02 is
addressed by (@245).
This mainframe has two switchboxes:
a) one multiple-module switchbox
at address 120, and
b) one single-module switchbox
at address 48.
Single-module channel addressing:
channel_list)
A single-module switchbox has channel addresses of the form (@1nn). It is card number 1.
Figure 1-2. Logical Address, Card (Mod ule) Numb er and Chan nel Ad dress
Chapter 1HP E1442A Module Setup 13
Setting the Module Address Switch
The logical address switch (LADDR) factory setting is 120. Valid
addresses are from 1 to 254. The Form C switch module can be configured
as a single instrument, or as a switchbox. Refer to the C-Size VXIbusSystems Configura tion Guide for addressing information. Refer to
Figure 1-3 for switch position in fo rmation .
NoteWhen usin g an HP E1405A/B or E140 6A, the address switch value must be
a multiple of 8 if th e m odule is the first module in a swi tchbox used with a
VXIbus command mo dule usi ng SCPI comm ands.
Figure 1-3. Setting the Logi cal Address
14 HP E1442A Module SetupChapter 1
Setting Interrupt Priority
Interrupts are enabled at power-up, after a SYSRESET, or after resetting the
module via the control register. An interrupt is generated after any channel
enable register is accessed when interrupts are enabled. The interrupt is
generated approximately 13 ms after one of the registers is accessed. The
interrupt priority jumper selects which priority level will be asserted. The
interrupt priority jumper is set in positi on 1 as shipped from the factory. For
most applications th is priority level shou ld not have to be changed. The
interrupts are disabled when set to level X. The interrupt priority jumpers
are identified on the sheet metal shield. A hole has been cut into it for
access. Interrupts can also be disabled using th e Control Regist er.
To change the setting, simply remove the jumper or jumpers from their
current position and place on the level you desi re. If the card uses two 2-pin
jumpers, both ju mpers mu st be placed in the same row for proper operation.
NoteCon sult your mainframe manual to make sure backplane jumpers are
configured correctly. If you are using the HP E1401A/B Mainframe, these
jumpers are automatically set when the card is installed.
Connecting User Inputs
The Form C switch consists of a component module and a terminal module. The
user connects inputs to the Form C switch NO (Normally Open), NC (Norm ally
Closed), and C (Common) terminal connections on one of the three available
terminal modules. Figure 1-1 earlier in this chapter shows the switch module and
the thr ee term ina l mo du les . F igu re 1 -5 b elo w sh ow s t he m odul e f ron t p anel and
the module’s connector pin-out which mate to the terminal module.
Figure 1-5. 64-Ch ann el Form C Switch Fro n t Panel
16 HP E1442A Module SetupChapter 1
Standard Form C Configuration
HP E1442A Standard
Terminal Module
Form C Configuration
with Solder Lugs
Chapter 1HP E1442A Module Setup 17
Option 010 Form C Configuration
HP E1442A Option 010
Terminal Module Form C
Configuration with Signal
Conditioning Circuitry
18 HP E1442A Module SetupChapter 1
Option 020 Form A Configuration
HP E1442A Option 020
Terminal Module Form A
Configuration with Screw
Terminals
Chapter 1HP E1442A Module Setup 19
Terminal Module Type
Standard
Solder-lug
RELAY OPENLOAD 1LOAD 1NO CONNECTION
RELAY CLOSEDLOAD 2LOAD 2LOAD 2
Option 010
Signal Conditioning
Option 020
Form A
Screw Termin al
Figure 1-6. Terminal Mod ule Diff erences
20 HP E1442A Module SetupChapter 1
Usi ng the Internal
Buses
The HP E1442A 64-Channel Form C Switch Module con tains in ternal
buses that you can connect any channel co ntact to. Figure 1-7 below shows
channels 0 and 63 and the internal bus structure. There is a bus for the
common, the normally closed (NC), and the normally open (NO) contacts.
Other jumpers provide the means to connect the NC and NO contacts to a
fused +5V pull-up voltage, or to be connected as pull-downs to ground. The
common can be connected to ground. Figure 1-8 shows where you can find
the component/jum pe r locations on the modu le.
Figure 1-7. HP E1442A Internal Bus Struct ure
Chapter 1HP E1442A Module Setup 21
NOTE: For clarity, not all channel relays are shown.
"Relay Connecti on " and "Bus Conn ectio n" nod es
are identified on the previous diagram.
Figure 1-8. HP E1442A Intern al Bus Co mpo nen t/Ju mp er Lo cati ons
! WARNINGS and CAU TIONS
WARNING SHOCK HAZARD. Only qualified, service-trained personnel
aware of the hazards involved should install, configure, or
remove the module. Disconnec t all power sources from the
mainframe, the terminal module and installed modules before
installing or removing a module.
22 HP E1442A Module SetupChapter 1
WARNINGSHOCK HAZARD. When handling user wiring connected to the
terminal module, consider the highest voltage present
accessible on any terminal.
WARNINGSHOCK HAZARD. Use wire with an insulation rating greater
than the highest voltage which will be present on the terminal
module. Do not touch any circuit eleme n t connected to the
terminal module if any other connector to the terminal module
is energized to more than 30 VAC RMS or 60 VDC.
CAUTIONMAXIMUM VOLTAGE/CURRENT. Maximum allowable volta ge
per channel terminal -to-termina l or terminal -to-cha ssis for the
switch module is 150 Vdc or 150 Vac RMS (210 Vac peak).
Maximum curre n t per channel is 1 Adc or 1 Aac RMS
(non-inductive). Maximum transient voltage is 1300V peak.
Maximum power input is 40 Wdc or 40 VA per channel, 320 Wdc
or 320 VA per module. Exceeding any limit or use outside the
parameters specified in Appendix A and by these warnings and
cautions may damage the switch module and impair the
protection provided by the module.
CAUTIONWIRING TERMINAL MODULE: When wiring to the terminal
connectors on the E1442A terminal module, be sure not to
exceed a 5mm strip back of insulation to prevent the possibility
of shorting to other wiring on adjacent termi nals .
CAUTIONSTATIC-SENSITIVE DEVICE. Use anti-static procedures when
removing, con figuring, cleani ng and installing a module . The
switch module is susceptible to static discharges; do not install
the module without its metal shield attache d.
CAUTIONCLEANING the Front Panel: Disconnect power from the
mainframe and remove the module to be cleaned. Clean the
front panel with a soft cloth dampened either in clean water or
in water containing a mild detergent. Do not use abrasive
cleaners. Do not use an excess ively wet clo th or allow
excessive water to migrate inside the module. Let the panel dry
thoroughly before reinstalling the module.
Chapter 1HP E1442A Module Setup 23
Installing the Switch Module in a Mainframe
The HP E1442A 64-Channel Form C Switch Modu le may be installed in
any slot (except slot 0) in a C-size mainframe. Refer to Figure 1-9 to install
the module in a mainframe.
NOTE: The ex tract ion leve rs
will not seat the backplane
connectors on older VXIbus
mainframes. You must
manually seat the connectors
by pushing in the module until
the front panel is flus h with
the front of the mainf ra me .
The extract io n levers ma y b e
used to guide or remove the
switch module.
Figure 1-9. Installing the Switch Modu le in a Mainframe
24 HP E1442A Module SetupChapter 1
Wiring the Terminal Module
Figures 1-10 a nd 1- 11 show t he ru diment s of th e term inal m odu le asse mbly. M aximum terminal wire size is No. 16 AWG. Wire ends should be stripped 5mm (0.2 in.)
and tinned. When wiring all channels, use a smaller gauge wire (No. 20-22 AWG).
NOTE: Solder eyes will accept a dual 96-pin DIN-C
Figure 1-10. Wiring the Terminal Module (continued on next page)
Chapter 1HP E1442A Module Setup 25
Figure 1-11. Wiring the Termin al Module (con tinu ed from previous page)
26 HP E1442A Module SetupChapter 1
Attaching the Terminal Module to the Switch Module
Figure 1-12. Attachi ng the Terminal Modu le to the Switch Modu le
Chapter 1HP E1442A Module Setup 27
Initial Operation
The following program uses Hewlett-Packard BASIC and SCPI (Standard
Commands for Programmable Instruments) language to get you started using
the Form C switch. The example assumes a n HP 9000 Se ries 200/300 (or
equivalent) computer and a Hewlett-Packard Interface Bus ( HP-IB). (HP-IB is
the Hewlett-Packard implementation of the IEEE 488.2-1987 standard.)
The Normally Open (NO) contact of each Form C relay is "open" and the
Normally Closed (NC) conta ct of each Form C relay is "closed" when the
switch is deactivated (the Common terminal (C) is connected to NC at
power-on, after reset or after an open command).
This program closes channel 02 of a Form C switch at logical address 12 0
(secondary address = 120/8 = 15) and queries the channel closure state. The
result is returned to the computer and displayed ( 1 = channel closed,
0 = channel open). See the C-Size VXI bus Systems Configura tion Guide
for information on addressing.
Example: Close Form C Switch Channel
10 OUTPUT 70915;"CLOS (@102)" ! Close channe l 02 .
20 OUTPUT 70915;"CLOS? (@102)"! Query channel 02 state.
30 ENTER 70915;Value! Enter result into V alu e.
40 PRINT Value! Display result.
50 END
Programmin g the
Switch
NoteThis discussion applies only to SCPI programming using the HP switchbox
Specifying SCPI
Commands
To program the Form C switch using SCPI, you must select the compu t er
language, interface address, and SCPI commands to be used. Guideli nes to
select SCPI commands for the Form C switch follow. See the C-SizeVXIbus Systems Configur atio n Guide for interface addressing and computer
language information.
driver version provided with this module. See Appendix B, "Form C
Switch Register Programming & Definitions", for information on Form C
switch registers.
To address specific channels within a Form C switch, you m ust sp ecify the
SCPI command and switch channel address. For the Form C switch, use
CLOSe <channel_list> to connect th e normally op en (NO) terminal to the
common (C) terminal for the channels specified. Use use
OPEN <channel_list> to conne ct the normally closed (NC) terminal to th e
common (C) terminal for the channels specified. Use
to close the set of channels specified, one channel at a time.
SCAN <channel_list>
28 HP E1442A Module SetupChapter 1
Channel AddressesChannel add resses (cha nnel_l ist) have the form (@ccnn) where cc = switch
card number (01-99) and
nn = channel numbers (00-63).
You can address single channels
(@ccnn,ccnn,...); sequential channels (@ccnn:ccnn); groups of sequential
channels
(@ccnn:ccnn,cc nn:cc nn); or any combination.
(@ccnn); multiple channels
Card NumbersThe switch card number depends on the switchbox configu ration (single
module or multipl e modul e) set for the switches. (Leading zeroes can be
ignored for the card number. ) For a single-module switchb ox, the card
number is always 01.
For a multiple-module switchbox, the card numbers are 01, 02,...,nn. The
module with the lowest logical address is c ard number 01, the module with the
next lowest logical address is card number 02, etc. (See the C-Size VXIbusSystems Configuration Guide for a definition of logical addresses.)
Figure 1-13. Multiple- Mo dule Swi tchb ox Card Numb er s
Assume that three Form C switches are c onfigured to f orm a switchbox
instrument with logical addresses of 120, 121, and 122. Since card number 01
is assigned to the module with the lowest logical address, card number 01 is
assigned to the card at logical address 120. Card number 02 is assigned to the
card at address 121 and card number 03 is a ssigned to the c ard a t address 122.
Chapter 1HP E1442A Module Setup 29
Channel Numbe rs,
Channel Lists,
Channel Ranges
Form C switch channel numbers are 00 through 63. The channels can b e
addressed using channel numbers or channel ranges. For a single-modul e
switchbox, channel ranges can sp an across the channels. For multiplemodule switchboxes, channel ranges can sp an across the channels of all
modules.
Use commas (,) to form a channel list or use a colon (:) to form a channel
range. Only valid channels can be accessed in a channel list or channel
range. Also, the channel list or channel rang e must be f rom a lower channel
number to a higher channel number. For example,
acceptable, but
CLOS (@215:100) generates an error.
CLOS (@100:215) is
Example: Form C Switch Channel Lists/Rang es
Channel Lists :
CLOS (@100,112)! Close cha nnels 00 and 12 on card
01.
OPEN (@203,210)! Open channels 03 and 10 on card
02.
Channel Ranges:
OPEN (@100:163)! Open all channels on card 01.
SCAN (@100:163)! Scan all channels on card 01 .
SCAN (@100:199)! Scan all channels on card 01 .
30 HP E1442A Module SetupChapter 1
Chapter 2
HP E1442A Switchbox Application Examples
Using This Chapter
This chapter provides application informati on and exampl es for using the
HP E1442A 64-Channel Form C Switch Mod ule in a "switch box" . The
switchbox can consis t of a single-switch modul e or multip le -switch
modules. It can also include other HP switch modu les which are controlled
by the same "SWITCH" device driv er.
Scanning Form C switch channels consis ts of closin g a set of channels
(connecting NO to C) one channel at a time. Single scan, multiple
ARM:COUNt 2 to 32767) scans, or continuous (INI T:CO NT ) scanning
(
modes are available. See the command reference in Chapter 3 for more
information on these commands.
A number of SCPI commands relate to scanning; mos t of them are optional.
• ARM:COUNt sets the number of scanning cycles per INIT (optional).
• TRIGger:SOURce sets the trigger source for scan advance (optional).
• OUTPut:STA Te enables/ disables Trig Out signal (op tional).
• OUTPut[:EXTernal][:STAT e] ON selects Trig Out port (optional).
• INIT:CONTinuous ON selects continuous scanni ng (opti onal).
• SCAN defines channels to be scanned (required).
• INIT begins scanning (required).
• TRIG advances to next channel in scan list (required if using HOLD
or BUS trigger sources).
At power-on or following the reset of the module (*RST command), all 64
channels are open (common connected to the normally closed terminal). In
addition, after a
*RST command the current scan ch annel list is invalidated.
Table 2-1 lists the parameters and default values following power-on or reset.
Table 2-1. Power-on and Reset Default Values .
ParameterDefaultDescription
ARM:COUNt1Number of scanning cycles is one.
TRIGger:SOURceIMMWill advance scanning cycles
INITiate:CO NTinuou sOFFNumber of scanning cycles is set by
OUTPut:[:STATe]OFFTrigger output from EXT, TTL or ECL
Channel stateAll 64 channels are open (channels 00 - 63).
Channel list from SCAN
command (after *RST)
Current channel list is invalidat ed following a reset of
the module with the *RST command.
automatically.
ARM:COUNt.
sources is disabled.
32 HP E1442A Switchbox Application ExamplesChapter 2
Using Scanning Trigger Sources
The TRIG:SOUR command specifies the sou rce to advance the scan. You
can use the
TRIG:SOUR HO L D is set. The OUTPut command can be used to enable the
HP E1405A/B or E1406A Trig Out port. See the examples that follo w.
TRIG command to advance the scan when TRIG:SOUR BUS or
Scanning with External Instruments
Scanning Form C switch channels has the same effect as executing multiple
CLOSe commands. Thus, scanning is useful when the output s from a
number of devices under test (DUT) are to be measured with an instrument.
Two examples using HP BAS IC programming language follow.
Example: Scanning
with External Device
This example uses the command mo dule’s Trig Out po rt to synchroni ze the
Form C switch channel closures to an external measurement device. See the
following figure for typical user connections. For measurement synchronization, the HP E1405A/B or E1406A T rig Out port is conn ected to the
instrument External Trigger In port. For this example, the mainframe and
instrument are connected via HP-IB with m ainf rame at address 709 and the
measurement instrument at address 722. The Form C switch is at logical
address 120 (secondary address 15 and therefore address through the
mainframe at address 70915). The measurements are transferred directly to
the computer. (Appropriate instrum ent comman ds must be added to line 10
and you may need to add a WAIT statement as line 65 for long
measurements.) The sequence of operation is:
INIT (line 50) closes chann el 100.
1.
2. Closure causes trigg e r output from the Trig Out port.
3. Trigger to Ext Trig In initiates channel 100 m easu rem en t.
4. Result is sent to the computer (lines 60-80).
TRIGGE R (line 90) advances the scan to channel 101.
34 HP E1442A Switchbox Application ExamplesChapter 2
Example: Scanning
Using Trig Ou t and
Trig In Ports
This example uses the command m odule’s Trig Out and Trig In ports to
synchronize Form C switch channel closures with an exte rnal measurem ent
device. See the following figure for typical use r connections. For this
example, the mainframe and measurem ent instrument a re c onnected via HP-IB
with mainframe at address 709 and the me asurement instrument at address 722.
The Form C switch logical address is 120 ( secondary address = 120/8= 15 and
therefore addressed through the mainframe at 70915).
With this example, sinc e synchronizatio n with the computer cann ot be
ensured, the external instrument must have internal mem ory capacity to
store the readings. Also , you must add the appropriate inst ru ment
commands to line 10. The sequence of operation is:
INIT (line 50) closes chann el 100.
1.
2. Closure causes trigg e r to be ou tput from Trig Out port.
3. Trigger to Ext Trig In initiates channel 100 m easu rem en t.
4. Channel 100 measurement result stored in instrument.
5. Trigger is then output from Measu rem ent Com plete port.
6. Trigger to Event In port advances scan to channel 101.
7. Steps 2-6 are automatically repeated for channels 101-102.
10 OUTPUT 722;"TRIG EXT; .... "! Configure volt met er.
20 OUTPUT 70915;"OUTP ON"! Enable Trig Out port.
30 OUTPUT 70915;"TRIG:SOUR EXT"! E ve nt In trigge ring.
40 OUTPUT 70915;"SCAN (@l00:102)"! Sc an c ha n ne ls 00 - 02.
50 OUTPUT 70915;"INIT"! Enable scan .
60 FOR Chan = 1 to 3
70 PRINT "Channel", Chan, Result
80 NEXT Chan
90 OUTPUT 70915;"*RST"
You can use the Scan Complete bit (bit 8) in the Operation Status Register
of a switchbox to determine when a scanning cycle completes (no other bits
in the register apply to the switchbox). Bit 8 has a decimal value of 256 and
you can read it directly with the
STATe:OPERational[ :EVENt]? command in the Command Reference for an
example.
STAT:OPER? command. See the
When enabled by the
bit will be reported as bit 7 of the Status Register. Use the HP-IB Serial Poll
or the IEEE 488.2 Commo n comm an d
When bit 7 of the Status Register is enabled by the
command to assert an HP-IB Service Request (SRQ), you can interrupt the
computer when the Scan Complete bit is set after a scanning cycle
completes. This allows the computer to do othe r operations while the
scanning cycle is in progress.
STAT:OPER:E NAB 2 5 6 command, the Scan Comp lete
*STB? to read the Status Register.
*SRE 128 Comm o n
36 HP E1442A Switchbox Application ExamplesChapter 2
The following example monit ors bit 7 in the Status Regist er to determine
when the scanning cycle completes. The computer used in this example is
an HP 9000 Series 200/300 used with HP BASIC as the programm ing
language. The compu t e r interfaces with an HP E1400A/E1401A Mainframe
or an HP E1405/E1406 Command Module ov er HP-IB. The HP-IB select
code is 7, the HP-IB primary address is 09, and the HP-IB secondary
address is 15.
Example: Scan Complete Interrupt
10 OUTPUT 70915;"*CLS"! Clear all switchbox status
structure.
20 OUTPUT 70915;"STAT:OPER:ENAB 256" ! Enable Sc an Co mplete Bit to
30 OUTPUT 70915;"*SRE 128"! Enable bit 7 of Status Register to
40 OUTPUT 70915;"TRIG:SOUR EXT"! Set to external trigg er mode.
50 OUTPUT 70915;"SCAN (@100:147)" ! Select channels to be scann ed .
60 OUTPUT 70915;"INIT"! Start scann ing cyc le.
70 WHILE NOT BIT(SPOLL(70915),7)! Waiting for scan compl ete .
80 PRINT "DO OTHER OPERATION HERE"! Enter program lines for
90 END WHILE
100 PRINT "INTERRUPT GENERATED" ! Program goes to this line after
set bit 7 in Stat us R eg ist er.
assert SRQ.
computer to do othe r ope rat ion s.
interrupt is generat ed by a
complete d scanni ng cyc le.
This section contains information about saving and r e calling a switch
module state. The switchbox driver can store up to 10 states.
Saving StatesThe *SAV <numeric_state> 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 (channels 00 through 63 open or closed)
• ARM:COUNt
• TRIGger:SOURce
• OUTPut[: STATe]
• INITiate:CONT inuous
Recalling StatesThe *RCL <numeric_state> comm and recalls a previously saved st at e.
Enter the number (0-9) in the state parameter of the desired saved state. If
*SAV was not previously executed using the selected number, the switch
module will configure to the reset values (see Table 2-1).
NOTEScan lists are not saved when a state is saved. You must re-enter your scan
list after recalling a state.
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 "poll ing" and is illustrated in
the example shown below.
10 DIM Err$[256]
20 OUTPUT 70915;"CLOS (@101)"! Close cha nne l 1 switch.
30 OUTPUT 70915;"SYST:ERR?"! Query for error.
40 ENTER 70915;Err$! Read response.
50 IF VAL (Err$) > 0 THEN! If an error is found (Err$ not 0).
60 PRINT "Error";Err$! Print the error.
70 STOP! Quit if error encountered.
80 END IF
90 ... (PROGRAM CONTINUES )
38 HP E1442A Switchbox Application ExamplesChapter 2
Using Interrupts with
Error Checking
The second approach involves the use of interrupts. The following program is
a method of checking for errors using interrupts as you program the switc h
module. The program monitors the switch’s Standard Event Status Register for
an error condition. If no errors occur, the switc h module f unctions as
programmed. If errors do occur, the switch module interrupts the computer,
and the error codes and messages are read from the error queue.
This HP BASIC programming example has a single switch modul e at
address 70915.
200 !
210
220
230
240
250 SUB Errmsg
260 DIM A$[256]
270 CLEAR 70915! Clear the switc h module .
280 B = SPOLL(70915)! Fetch status byte.
290 REPEAT! Rep eat.
300 OUTPUT 70915;"SYST:ERR?"! Query for error.
310 ENTER 70915;Code,A$! Read re sponse.
320 PRINT Code,A$! Print error.
330 UNTIL Code=0! Keep querying for an er ror unt i l
340 OUTPUT 70915;"*CLS"! Clears status registers and error queue.
350 STOP
360 SUBEND
! Call to print out error message.
! Enables the standard event summary bit SRE.
STATus
command figure.
! Define in te rr upt servi ce rout i ne.
! Declare resp o nse string.
This section discusses syn chro nizing the switch to other instrum ents when
making measurements. The following example uses the switch m odul e to
switch a signal to be measured by a multimeter. The program verifies that
the switching is complete before the multimeter begins a measurement.
Measurement Set-Up
• Digital Multimeter has an HP-IB select code = 7, primary
address = 09 and secondary address = 03 (it is addressed as 70903).
• HP E1442A has an HP-IB select code = 7, primary address = 09 and
secondary address = 15 (it is addressed as 70915).
• Controller is an HP Series 200/300/400 comput er with HP BASIC.
10 OUTPUT 70915;"CLOS (@100)"! Close channe l 10 0.
20 OUTPUT 70915;"*OPC?"! Wait for completio n of close
30 ENTER 70915;Opc_value! Read response to
31 !
32 ! Channel is closed and measurement can be made.
33 !
40 OUTPUT 70903;"MEAS:VOLT:DC?" ! Make VM measureme nt.
50 ENTER 70903;Meas_value! Read the measurement.
60 PRINT Meas_value! Print the measurement.
70 END
command.
*OPC?
command.
40 HP E1442A Switchbox Application ExamplesChapter 2
Chapter 3
HP E1442A Switchbox Command Reference
Using This Chapter
This chapter describes Standard Commands for Program mable Instrum ents
(SCPI) and summarizes IEEE 488. 2 Comm on (*) co mm ands appli cabl e to
the HP E1442A 64-Channel Form C Switch Mod ule. This chapter contains
the following sections:
Commands are separated into two types: IEEE 488.2 Common com mands
and SCPI commands.
Common
Command Format
SCPI Command
Format
The IEEE 488.2 standard defines the Common commands th at perform
functions like reset, self-test, status byte query, etc. Common comm ands
are four or five characters in length, always begin with the asterisk character
*), and may include one or more parameters. The command keyword is
(
separated from the first parameter by a space character. Some examples of
Common commands a r e shown below:
*RST *ESR 32 *STB?
The SCPI commands perform functions like closing switches, mak ing
measurements, and querying instrum en t states or retrieving data. A
subsystem comman d structure is a hierarchical structure that usually
consists of a top level (or root) command, one or more lower-level
commands, and their parameters. The following example shows part of a
typical subsystem:
[ROUTe:]
CLOSe
SCAN <channel_list>
[ROUTe:
commands with param eters, and
<channel_list>
:MODE?
]is the root command, CLOSe and SCAN are second-level
:MODE? is a third-level command.
Chapter 3HP E1442A Switchbox Command Reference 41
Command SeparatorA colon (:) alw ays 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 seco nd level from the thi rd level (SCAN:MODE ? ).
(
Abbreviated
Comma nd s
The command syntax shows most com mands as a mixture of upper- and
lowercase letters. The uppercase letters indicate the abbreviated sp elling for
the command. For shorter program lines, send the abbreviated form. For
better program readability, you may send the entire comm and. The
instrument will accept either the abbreviated form or the entire command.
For example, if the command syntax shows
MEASURE are both acceptable forms. Other forms of MEASure, such as
MEASU or MEASU R will generate an error. You may use upp er- or
lowercase letters. Therefore,
MEASURE, measure, and MeAsUrE are all
MEASure, then MEAS and
acceptable.
Implied CommandsImplied comman ds are those which appear in square brackets ([ ]) in the
command syntax. (Note that the brackets are not part of the command
and are not sent to th e inst rum ent.) Suppose you send a second-level
command but do not send the preceding implied co mman d. In this case, the
instrument assumes yo u intend to use the implied comm and and it respon ds
as if you had sent it.
Examine the
[ROUTe:]
CLOSe
CLOSe? <channel_list>
OPEN <channel_list>
OPEN? <channel_list>
SCAN <channel_list>
[ROUTe:] subsystem shown below:
<channel_list>
:MODE NONE|VOLT
:MODE?
The root command [ROUT e:] is an implied command (indi cated by square
brackets
[ ]). To close relays in a channel list, you can send either of the
following command st atem ents:
[ROUTe:]CLOSe (@100:107, 201, 225)or CLOSe (@100:107, 201, 225)
These commands function the same closin g channels 00 th ro ugh 07 on
card 1 and channels 01 and 25 on card 2.
42 HP E1442A Switchbox Command ReferenceChapter 3
ParametersParameter Types. The following table contains explanations and exam ples
of parameter types you might see later in this chapter.
Parameter TypeExplanations and Examples
Numeric
Boolea n
Discrete
Accepts all commonly used decimal representations of
numbers including optional signs, decimal points, and
scientific notation.
123, 123E2, -123, -1.23E2, .123, 1.23E-2, 1.23000E-01.
Special cases include MIN, MAX, and INF.
Represents a single binary condition that is either true or
false.
ON, OFF, 1, 0.
Selects from a finite number of values. These
parameters use mnemonics to represent each valid
setting.
An example is the TRIGger:SOURce
<source > can be BUS, EXT, HOLD, or IMM.
where
<source> command
Optional Parameters. Parameters shown within squ a re brackets ([ ]) are
optional parameters. (Note that the brackets are not part of the commandand are not sent to the instrument. ) If you do not specify a value for an
optional parameter, the instrum ent chooses a de fault value. For example,
consider the
command without sp ecifying a parameter, the present
is returned. If you send the
minimum count available. If you send the
ARM:COUNt? [MIN |MAX] comman d. If you send the
ARM:COUNt settin g
MIN parameter, the command returns the
MAX parameter, the command
returns the maximum count available. Be sure to place a space between the
command and the parameter.
Linking CommandsLinking IEEE 488.2 Common Commands with SCPI Command s. Use
a semicolon (
*RST;OUTP ON or TRIG:SOUR HOLD;*TRG
Linking Multiple SCPI Commands. Use both a semicolon (;)and a
colon (
ARM :COUN 1;:TRIG :S OUR EXT
;)between the commands. For example:
:) between the commands. For example:
Chapter 3HP E1442A Switchbox Command Reference 43
SCPI Command Reference
This section describes the Standard Commands for Programmable
Instruments (SCPI) comm an ds for the HP E1442A 64-Channel Form C
Switch Module. Commands a re listed alphabeti cally by sub syst em and
within each subsys tem.
There are two methods to send commands to the instrument. The method
most often used is from a controller over the HP-IB interface; this method
will be referred to as the "HP-IB interface" in the following com mand
reference. The second method of sending commands is from a terminal
connected to the HP E1405/1406 Command M odul e (RS-232). Commands
sent this way will be referred to as "from the terminal" in the following
command reference.
ABORt
The ABORt command stops a sc an in progress when the trigger sources are
TRIGger:SOURc e BUS or TRIGger:SOURce HOLD. See the
either
comments below for how to get out of a scan if trigger source is not
HOLD.
BUS or
Subsystem SyntaxABORt
Comments• Channel Status Af ter an ABO Rt: ABORting a scan will leave the
• Effect on Scan Complete Status Bit: ABORting a scan will not set
• Stopping Scans Enab led f ro m HP-IB Int erface: When a scan is
NOTEClearing the HP-IB interface during a scan leaves the last channel the scan
closed in the closed position and do es not set the "scan complete" st at us bit .
last channel that it closed in the closed position.
the "scan complete" status bit .
enabled from the HP-IB interface, and the trigger source is not
HOLD or BUS, you can clear the interface to stop the scan (in the
BASIC programming language, this is done by executing the
command for your interface, e.g. CLEAR 7).
When the scan is enabled from the HP-IB interface and the trigger
source is
the
TRIGger:SOURce BUS or TRIGger:SOURce HOL D, send
ABORt command ov er the HP-IB bus.
CLEAR
44 HP E1442A Switchbox Command ReferenceChapter 3
• Stopping Scans by Using the RS-232 Termin al: You may us e a
terminal connected to the HP E1405/14 06 Comm an d Module to sto p
any scan.
If the scan was started from the terminal, and the trigger source is
HOLD or BUS, send the ABORt command to halt the scan. If the
scan was started from the terminal and some other trigger source is
being used, a "Ctrlinstrument and abort the scan. Sending "Ctrl-
c" will send an interface CLEAR to the
r" also sends an
interface CLEAR to the instrument and additionally performs a reset
*RST) on the instrument. (See the Command Reference in the
(
command module’s user’s manual for details on the terminal
interface.)
If the scan was started from the HP-IB interface but you wish to stop
it by using the terminal, first make sure that the correct instrument
(e.g.,SWITCH at desired logical add ress) is selected by using the
terminal soft keys. Then send a "Ctrl-
r". This will send an interface
CLEAR to the HP-IB task, but will not place the instrument in the
reset state with respect to the HP-IB task. These actions will occur
regardless of the trigger source setting.
NOTEClearing the interface using a "Ctrl-c" from the terminal during a scan
leaves the last channel it closed in the closed posi tion and does not set the
Scan Complete status bit.
• Related Commands: ARM, INITiate:CO NT inuous, [ROUTe: ]SCA N,
TRIGge r
ExampleStopping a Scan with ABORt
TRIG:SOUR BUS! Bus is trigger source.
INIT:CONT ON! Sets contin uous sc ann ing .
SCAN (@100:115)! Sets channel list.
INIT! Starts scanning cyc le.
.
.
ABOR! Aborts scan in progress.
Chapter 3HP E1442A Switchbox Command Reference 45
ARM
Subsystem SyntaxARM
The ARM subsystem allows a scan list to be scanned multiple tim es
(1 through 32767) with one
:COUNt
:COUNt? [MIN | MAX]
<number> MIN | MAX
INITiate command.
:COUNt ARM:COUNt <number> allows scanning cycles to occur a multiple of
times (1 to 32767) with one
INITiate:CONTinuous O FF |0 is set.
Parameters
Parameter NameParameter TypeRange of Values
<
number
>
Comme nt s• Number of Scans: Use only values between 1 (MIN ) to 32767
MAX) for the number of scanning cycles (default is MIN = 1).
:COUNt? ARM:COUNt? [MIN | MAX] returns the current number of scanning cycles
ARM:COUNt. If a value between MIN and MAX is set, that value for
set by
ARM:COUNt is returned. The optional parameters MIN and MAX allow you
to query the module for the these values instead of lookin g them up in the
command reference. A 1 is returned for the
returned for the
MAX parameter regardless of the ARM:COUNt value set.
Parameters
Parameter NameParameter TypeRange of Values
MIN | MAXnumeric[MIN = 1 | MAX = 32767]
Comme nts• Related Commands: INITiate:IMMediate
ExampleQuery Number of Scanning Cycles
ARM:COUN 55! Set 10 scanning cycles.
ARM :COUN?! Query number of scann ing
MIN parameter; 32767 is
cycles; returne d valu e is 55.
The DISPlay subsystem monitors the channel state of a selected module ( or
card) in a switchbox. The
an RS-232 terminal connected to the HP E1405/1406 Co mman d Mod ule’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 ov er the HP-IB in terface and
control the terminal’s display. In this case, care must be taken that the
instrument receiving the
selected on the terminal, otherwise the HP- IB comm an d will have no visibl e
effect.
Subsystem SyntaxDISPlay
:MONitor
:CARD
:CARD?
[:STATe]
[:STATe]?
<number>|AUTO
DISPlay command subsys tem onl y operates with
DISPlay command is the same one that is currently
<mode>
Chapter 3HP E1442A Switchbox Command Reference 47
:MONitor:CARDDISPlay:MONitor:CARD <number>|AUTO selects the module in a
switchbox to be monito red .
NOTEYou must use DISP:MO N:STAT ON to actually display the mon itored
module state to the RS-232 terminal.
Parameters
Parameter NameParameter TypeRange of Values
<number>
|AUTOnumeric1 thru 99
Comments• Selecting a Specific Module to be Monitored: Send the card
number in a switchbox with the
DISPlay:MONitor :CARD com mand.
• Selecting the Present Module to be Monitored (AUTO): Use the
DISPlay:MONitor AUTO command to select the last module
addressed by a switching command (e.g.,
[ROUTe:]CLOSe).
• *RST Condition: DISPlay:MONitor:CARD AUTO
ExampleSelect Module #2 in a Switchbox for Monitoring
DISP:MON:CARD 2! Se le cts m od ule #2 in a swit c hbox .
:MONitor:CARD?DISPlay:MONitor: CARD? qu eries the setting of the :MONit or:CARD
command and returns the mo dule in a switchbox to be mo nito red.
48 HP E1442A Switchbox Command ReferenceChapter 3
:MONitor[:STATe]DISPlay:MONitor[ :STATe] <mode> turns the moni tor mode on or off.
When monitor mode is on, the RS-232 terminal disp lay p resen ts an array of
values indicating the open/close state of every switch on the module. This
display is dynamically updated e ach time a switch is opened or closed.
Parameters
Parameter NameParameter TypeRange of Values
<mode>
boolean0 | 1 | ON | OFF
Comme nts• Monitoring Switchbox Channels: DISPlay:MONit or[: ST AT e] ON or
DISPlay:MONitor [:ST ATe] 1 turns the mo nito r mode on to show the
channel state of the selected module.
OFF
or DISPlay:MONitor[:STATe] 0 tu rns the mon itor mo de off.
DISPlay:MONitor[:STATe]
• Typing in another command on the terminal will cause the
DISPlay:MONitor [:ST ATe] to be automatically set to OFF (0).
NOTE: Use of the OFF parameter is useful only if the command
is issued across the HP-IB interface.
• Selecting the Module to be Monitored: Use the
DISPlay:MONitor:CARD <number>|A U TO command to se lect the module.
• Monitor Mode on an HP E1405/1 406 Comma nd Module
Display: A typical display for the HP E1442A 64-Channel Form C
Switch with all channels (i.e. all relays) closed follows. The "#H"
indicates data is in hexadecimal format. Each channel is represented as
a bit in the hex value.
The channels are grouped into four blo cks of 16 channels e ach.
DISP:MON:CARD 2! Se le cts m od ule #2 in a swit c hbox .
DISP:MO N 1! Turns the monitor mode on.
:MONitor[:STATe]?DISPlay:MONitor[:ST AT e]? queries the monitor mode. The command
returns a 1 if monitor mode is on or a 0 if monitor mode is off.
Chapter 3HP E1442A Switchbox Command Reference 49
INITiate
Subsystem SyntaxINITiate
:CONTinuousINITiate:CONTinuou s <mode> enables or d isa ble s cont in uous sca nni ng
Parameters
The INITiate subsystem selects continuous scanning cycles and starts the scanning cycle.
:CONTinuous
:CONTinuous?
[:IMMediate]
cycles for the switchbox. The setting of this command determines whether or not
a subsequent
Parameter NameParameter TypeRange of Values
<mode>
INIT[:IMMediate] command will cause a continuous scan to occur.
<mode>
boolean0 | 1 | ON | OFF
Comme nts• Continuous Scanning Operation: Continuous scanning is enabled
with the
command. Sending the INITiate[:IMMediate] command closes th e
first channel in the channel list. Each trigger from a trigger source
selected by the
through the channel list. A trigger at the end of the channel list
closes the first channel in the list and the scan cycle repeats.
INITiate:CONTinuous ON or INITiate:CONTinuous 1
TRIGger:SOURce command advances the scan
• Non-Continuous Scan ning Ope rati on: Non-continuo us scanning is
enabled with the
command. Sending the INITiate[:IMMediate] command closes th e
first channel in the channel list. Each trigger from a trigger source
selected by the
through the channel list. A trigger at the end of the channel list
opens the last channel in the list and the scanning cycle stops.
INITiate:CONTinuous OFF or INITiate:CONTinuous 0
TRIGger:SOURce command advances the scan
• The INITiate:CONTinuous command does not start a scanning cycle
INIT:IMM).
(see
• Stopping Continu ous Scans: See the ABORt command.
• Related Commands: ABORt, ARM:CO UNt, INITiate[ :IMM ediate] ,
TRIGger, TRIGger:SOURce
• *RST Condition: INITiate:CONTinuous OFF
ExampleEnabling Continuous Sca ns
INIT:CONT ON! Enables continuou s scan nin g.
SCAN (@100:163)! Sets channel list.
INIT! Starts scanning cyc le.
50 HP E1442A Switchbox Command ReferenceChapter 3
:CONTinuous?INITiate:CONTinuous? queries the scanni ng state. With continuous
scanning enabled, the command returns 1. With contin uous scann ing
disabled, the command returns 0.
ExampleQuery Contin uou s Scan ni ng Sta te
INIT:CONT ON! Enable conti nuou s scan nin g.
INIT:CO NT ?! Query continuou s scan nin g stat e.
[:IMMediat e]INITiate[:IM Medi ate] starts the scanning cycle and closes the first channel
in the channel list. Successive triggers from the source specified by the
TRIGger:SOURce command advan ce the scan through the chan nel list .
Comme nt s• Starting the Scanning Cycle: The INITiat e[:IM Mediate] command
starts scanning by closing th e first channel in the channel list. A
trigger advances the scan through the channel list. An invalid
channel list generates an error (see
• Stopping Scanning Cycles: See the ABO Rt command.
• Related Commands: ABORt, ARM:CO UNt, INITiate: CONTinuous ,
TRIGger, TRIGger:SOURce
[ROUTe:]SCAN comm and).
• *RST Condition: None
ExampleStarting a Single Scan
SCAN (@100:163)! Sets channel list.
INIT! Starts scanning cyc le by closin g
channel 00 and proceeding.
Chapter 3HP E1442A Switchbox Command Reference 51
OUTPut
The OUTPut subsystem enables one trigger line of the HP E1405A/B or
E1406A Command Modu le. It also can disable the active line.
Subsystem SyntaxOUTPut
:ECLTrg
[:EXTernal]
:TTLTrg
:ECLTrgn[:STATe]OUTPut:ECLTrgn[:STATe] <mode> enables (ON or 1) or disables
(OFF or 0) the ECL trigger bus pulse on the VXI bus line specified by n.
There are two ECL t rigger lines on the VXI bus a llowing valid values for n to
be 0 and 1.
n
[:STATe] <mode>
[:STATe]?
[:STATe]
[:STATe]?
[:STATe] <mode>
[:STATe]?
<mode>
n
Parameter NameParameter TypeRange of Values
n
<mode>boolean0 | 1 | ON | OFF
numeric0 or 1
Comme nts• When OUTPut:E CLTr gn[: ST ATe] ON is set, a trigger pulse occurs
each time a channel is closed during a scan.
:ECLTrgn[:STATe]?OUTPut:ECLTrgn[:STATe]? queries th e state of the ECL trigg er bus line
specified by
disabled. Valid values for n are 0 and 1.
Parameter NameParameter TypeRange of Values
n. A 1 is returned if the line is enabled; a 0 is returned if it is
n
numeric0 or 1
52 HP E1442A Switchbox Command ReferenceChapter 3
[:EXTernal][:STATe]OUTPut[:EXTernal][:STATe] <mode> enables or disables the Trig Out
port on the HP E1405A/B or E1406A Com mand Modu le.
OUTPut[:EXTernal][:STATe] ON | 1 enables the port and
OUTPut[:EXTer nal][ :STAT e] OFF | 0 disables the port.
and [:STATe] are optional subcomm ands. The OUTPut command
can be abbreviated by simply executing
OUTPut OFF .
OUTPut ON or
• Enabling Trig Out Port: When enabled, the Trig Out port is pulsed
each time a channel is closed during scanning. When disabled, the
Trig Out port is not pulsed.
• Output Puls e : The pulse is a +5 V negative going pulse.
• Trig Out Port Shared by Switchboxes: Once enabled, the Trig
Out port may be pulsed by the switchbox each time a channel is
closed in a switchbox during scannin g. To disable the output for a
specific switchbox, send the
OUTPut[:EXTernal][:STATe] 0 comm and for that switchb ox. The
OUTP OFF command must be executed following use of this port to
allow other instrumen t drivers to control the Trig Out port.
OUTPut[:EXTer nal] [: STAT e] OFF or
• Related Commands: [ROUTE:]SCAN, TRIGger :SOURce
• *RST Condition: OUTP ut[:EXT erna l][:ST ATe ] OFF (port disabled)
ExampleEnabling Trig Out Port
OUTP ON! Enables Trig Out port for pul se
output.
[:EXTernal][:STATe]?OUTPut:[:EXTernal][S TAT e]? queries the present state of the Trig Out port
on the HP E1405/E1406 Command M odule. The command returns 1 if the
port is enabled, or 0 if disabled.
ExampleQuery Trig Out Port State
OUTP ON! Enable Trig Out port for pul se
output.
OUTP :STAT?! Query port enab le stat e .
Chapter 3HP E1442A Switchbox Command Reference 53
:TTLTrgn[:STATe]OUTPut:TTLTrgn[:STATe] <mode> enables (ON or 1) or disables (OFF or
0) the TTL trigger bus pulse on the VXI bus line specified by n. There are
eight TTL trigger lines on the VXI bus (n = 0 through 7).
Parameter NameParameter TypeRange of Values
n
<mode>boolean0 | 1 | ON | OFF
numeric0 thru 7
Comme nts• When OUTPut:TTLTrgn[:STATe] ON is set, a trigger pulse oc curs
each time a channel is closed during a scan.
:TTLTrgn[:STATe]?OUTPut :TTLTrgn[:STATe]? queries th e state of the TTL trigger bus lin e
specified by n. A 1 is returned if the line is enabled; a 0 is returned if it is
disabled. Valid values for n are 0 th ro ugh 7.
Parameter NameParameter TypeRange of Values
n
numeric0 thru 7
54 HP E1442A Switchbox Command ReferenceChapter 3
[ROUTe:]
Subsystem Syntax[ROUTe:]
The [ROUTe] subsystem cont ro ls switch ing and scanni ng operation s for the
Form C switch modules in a switchbox.
CLOSe
CLOSe? <channel_list>
OPEN <chann el _list>
OPEN? <channel_list>
SCAN <channel_lis t>
<channel_list>
:MODE <mode>
:MODE?
CLOSe[ROUT e:]CL OSe <channel_list> activates the Form C switch relay for the
channels specified in the channel_list. The relay’s Common (C) termin al is
connected to the Normally Open (NO) terminal (see diagram below). The
channel_list is in the form
cc = card number (00-99) and nn = channel number (00-63).
(@ccnn), (@ccnn,ccnn) , or (@ ccnn:ccnn) where
Parameters
Parameter NameParameter TypeRange of Values
<channel_list>
numericcc00-cc63
Comments• Special Case of Using Upper Rang e 99 in the Channel List:
Specifying the last channel as 99 e.g. ,
closes all channels on the card number specified by
(@100:199) auto matically
cc.
• Closing Channels (card and chan nel syn tax; ccn n):
– [ROUTe:]CLOSe (@ccnn) to close a single channel.
– [ROUTe:]CLOSe (@ccnn,ccnn) to clo se m ultiple channels.
– [ROUTe:]CLOSe (@ccnn:ccnn) to close sequential channels.
– [ROUTe:]CLOSe (@ccnn:ccnn, ccnn: ccnn) to clo se a group of
sequential channels.
• Closure Orde r: A list of channels will not all close simultaneously.
The order channels close when specified from a single command is
not guaranteed. Use s eq uential
CLOSe commands if needed.
Chapter 3HP E1442A Switchbox Command Reference 55
• Related Commands: [ROUTe:]OPEN, [ROUTe:]CLOSe?
• *RST Condition: All Form C switch channels are open.
ExampleClosing Form C Switch Chan nels
This example closes channel 00 of card number 1 Form C switch module
and channel 15 of card number 2 Form C switch module in a single
switchbox.
CLOS (@100,215)! 100 closes cha nne l 00 of Form C
switch #1; 215 close s c hann el 15
of Form C switch #2.
CLOSe?[ROUTe:]CLOSe? <channel_list> returns the current state of the
channel(s) queried. The channel_list is in the form
command returns 1 if the channel is in the NO state (C connected to NO) or
returns 0 if the channel is in the NC state (C connected to NC). If a list of
channels is queried, a comma deline ated list of 0 or 1 values is returned in
the same order of the channel list.
Comme nt s• Query is Software Readback: The [ROUT e:]CLOSe? command
returns the current state of the hardware controlling the specified
channel. It does not account for a failed switch element or a relay
closed by direct register access (see Appendix B).
ExampleQuery Form C Switch Chan nel Clos ur e
CLOS (@100,215)! 100 closes cha nne l 00 of Form C
switch #1; 215 close s c hann el 15
of Form C switch #2.
CLOS? (@215)! Query channe l 215.
(@ccnn). The
56 HP E1442A Switchbox Command ReferenceChapter 3
OPEN[ROUTe:]OPEN <channel_list> de-energizes the relays for the channels
specified in the channel_list connecting the Common (C) terminal to the
Normally Closed (NC) terminal (see diagram below). The channel_list is in
the form
(00-99) and
Parameters
Parameter NameParameter TypeRange of Values
(@ccnn), (@cc nn,cc n n), or (@ccnn:ccnn) where cc = card number
nn = channel number (00- 63).
<channel_list>
numericcc00-cc63
Comments• Using Upper Range 99 in the Channel List: Specifying the last
channel as 99 e.g.,
the card number specified by
(@100:199) automatically opens all channels on
cc.
• Opening Channels : To open:
– a single channel, use [ROUTe:]OPEN (@ccnn);
– for multiple channels, use [ROUTe:] O PEN (@cc nn,cc n n) ;
– sequential channels, use [ROUTe:]OPEN (@ccnn: ccnn) ;
– a group of sequential channels,
[ROUTe:]OPEN (@ ccnn: ccnn,ccnn:ccnn);
use
– or any combination .
• Opening Order: A list of channels will not all open
simultaneously. The order channels open when specified from a
single command is not gua ranteed. Use sequential
OPEN commands
if needed.
• Related Commands: [ROUTe:]CLOSe, [ROUT e:]OP EN?
• *RST Condition: All Form C switch channels are open.
ExampleOpening Form C Switch Channels
This example opens channel 00 of a card number 1 Form C switch module
and channel 63 of a card number 2 Form C switch module in a single
switchbox.
OPEN (@100,263)! 100 opens ch anne l 00 of Form C
switch #1; 263 opens c han nel 63 of
Form C switch #2.
Chapter 3HP E1442A Switchbox Command Reference 57
OPEN?[ROUTe:]OPEN? <channel_list> returns the current state of the channel
queried. The channel_li st is in the form
if the channel is in the NC state (C connected to NC) or returns 0 if the
channel is in the NO state (C connected to NO). If a list of channels is
queried, a comma delineated list of 0 or 1 values is returned in the same
order of the channel list.
Comments• Query is Software Readback: The [ROUTe:]O PEN? command
returns the current state of the hardware controlling the specified
channel. It does not account for a failed switch element.
ExampleQuery Form C Switch Chan nel Open State
(@ccnn). The command returns 1
OPEN (@100,263)! 100 opens ch anne l 00 of Form C
OPEN? (@263)! Query cha nne l 263.
switch #1; 263 opens c han nel 63 of
Form C switch #2.
58 HP E1442A Switchbox Command ReferenceChapter 3
SCAN[ROUTe:]SCAN <channel_list> defines the chan nels to be scanned. The
channel_list is in the form
cc = card number (00-99) and nn = channel number (00-63 and 99). See the
first bullet commen t for explanat ion of usi ng the special c ase of 99 in the
channel list.
Parameters
Parameter NameParameter TypeRange of Values
(@ccnn), (@ ccnn,ccnn), or (@ccnn:ccnn) where
<channel_list>
numericcc00-cc63 (or cc99)
Comme nt s• Special Case of Using Upper Range 99 in the Channel List:
Specifying the last channel as 99, e.g .
scans all channels on the card number specified by
(@100:199) auto matically
cc.
• Defining the Channel Lis t: When executing [ROUTe:]SCAN, the
channel list is checked for valid card and channel numbe rs. An error
is generated for an invalid channel list.
• Scanning Operation: With a valid channel list, INIT iate[ :I MM ediate]
starts the scanning cycle and closes the first channel in the channel
list. Successive triggers from the source specified by
TRIGger:SOURce advance the scan through the channel list.
• Stopping Scan: See the ABORt command.
• Related Commands: CLOSe, OPEN, SCAN:MODE, TRIGger,
TRIGger:SOURce
• *RST Condition: All channels open.
ExampleScanning Using External Device
See Chapter 2, "Example: Scanning with Ext ernal Device" or "Example:
Scanning Using Trig Out and Trig In Ports" for example sc anning programs
using external instruments .
Chapter 3HP E1442A Switchbox Command Reference 59
ExampleScanning Using External Devices
The following example shows how to scan channels using the HP
E1405/1406 Co mm and Mod ule via HP-IB and an HP 345 7A Digit al
Multimeter. This example uses the comm an d module’s T rig Out port to
synchronize the switch mo dule in a switchb ox to the multi meter. The
trigger pulse from the Trig Out port triggers the multimeter for a
measurement. See Chapter 2 for typical user connections to the Form C
switch module.
The computer used in the example is an HP Series 200/300 with HP BASIC
as the program language. The computer interfaces with the mainframe over
HP-IB. Assumed is an HP-IB select code of 7, an HP-IB primary address of
09 and 22 for the HP E1405/E1406 Comm and Mo dule and HP 34 57A
Multimeter, respe ctively, and an HP-IB secondary address of 15 for the
switchbox.
10 OUTPUT 722;"TRIG EXT;DCV"! Sets multime te r to exte rnal
20 OUTPUT 70915;"OUTP ON"! Enables Trig Out port on
30 OUTPUT 70915;"TRIG:SOUR BUS" ! Sets switchb ox to receive bus
40 OUTPUT 70915;"SCAN:MODE VO LT"! Sets switchbox to measure
50 OUTPUT 70915;"SCAN (@100:163)"! Selec ts t he channel list.
60 OUTPUT 70915;"INIT"! Starts scann ing cyc le.
70 FOR I=1 TO 64! Starts count loop.
80 ENTER 722;A ! Enters v olt m e te r re a din g into
90 PRINT A! Prints readin g in vari abl e A.
100 TRIGGER 70915 ! Trig ge rs t he switchbox to
110 NEXT I! Increme nts coun t.
120 END
trigger and to measure dc volts.
command module.
triggers .
voltage during scanning .
variable A.
advance the channel list.
60 HP E1442A Switchbox Command ReferenceChapter 3
SCAN:MODE[ROUTe:]SCAN:MODE <mode> sets the Form C switch channels defined
[ROUTe:]SCAN <channel_list> command for "no measurements".
by the
The SWITCH device driver for the E1442A also supports Form C switches
which use this command to close appropriate tree relays for a specific kind
of measurement (e.g., 2-wire and 4-wire ohms require different tree relay
closures). For compatibility in use with the switchb ox device driver, th e
E1442A accepts the
operation. It’s important to note that the command erases the current
list when executed.
NOTE This command erases the current SCAN channel list; SCAN:M ODE must be
followed by a [
Parameters
Parameter NameParameter TypeRange of Values
SCAN:MODE command but it has no effect on Form C
SCAN
ROUTe:]SCA N command to re-establish a scan channel list.
<mode>
discreteNONE | VOLT
Comme nt s• Order of Command Execution: If used, [ROUTe:]SCAN:MODE
must be executed before [ROUTe:]SCAN <chann el_list> because
SCAN:MODE e rases the current SCAN list. Note: The
SCAN:MODE command is not needed for Form C Switch operation.
• Related Commands: SCAN
• *RST Condition: [ROUTe:]SCAN:MODE NONE
SCAN:MODE?[ROUTe:]SCAN:MODE? returns the current state of the scan mode. The
command returns NONE or
VOLT to indicate which mode the scan is set.
Chapter 3HP E1442A Switchbox Command Reference 61
STATus
Subsystem SyntaxSTATus
The STATus subsystem reports the bit values of the Operation Status
Register (in the command module). It also allows you to unmask the bit s
you want reported from the Standard Event Register and to read the
summary bits from the Statu s Byte Register.
:OPERation
:CONDition?
:ENABle
:ENABle?
[:EVENt]?
:PRESet
<number>
CommentsThe STATus system contains four software registers (that is, they reside in a
SCPI driver, not in the hardware), two of which are under IEEE 488.2
control: the Standard Event Status Register (
Register (
*STB?). The Operation al Status bit (OPR ), Service Request bit
(RSQ), Stand ard Even t sum mary bit (ESB ), M essage Av ailable bit (MAV)
and Questionable Data bit (QUE) in the Status Byte Regi ster (bits 7, 6, 5, 4
and 3 respectively) can be queried with the
*ESE? command to query the unmask value for the Standard Event Status
Register (the bits you want logically OR’d into the summ ary bit). The
registers are queried using decimal weigh ted bit valu es. The decimal
equivalents for bits 0 through 15 are shown below.
A numeric value of 256 executed in a STAT us:OPERation:ENABle <unmask>
command allows only bi t 8 to generate a summary bit. The decimal value
for bit 8 is 256.
The decimal values are also used in the inverse manner to determine which
bits are set from the total value returned by an
EVENt or CONDitio n query.
The SWITCH driver exploits only bit 8 of Operation Status Register. This
bit is called the Scan Complete bit whi ch is set whenever a scan operation
completes. Since completion of a scan operation is an event in time, you
will find that bit 8 will never appear set when
queried. However, you can find bit 8 set with the
STAT:OPER:COND? is
STAT:OPER:EV ENt?
query command.
62 HP E1442A Switchbox Command ReferenceChapter 3
:OPER: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 operatio n. The SWITCH driver does not
set bit 8 in this register (see
STAT:OPER:EVENt?).
:OPERation:ENABleSTATus:OPERation:ENABle <number> sets an enable mask to allow
events recorded in the Event Register to send a summ ary bit to the Status
Byte Register (bit 7). For Form C switch modul es, when bit 8 in the
Operation Status Register is set to 1 and that bit is enabled by the
OPER:ENABle command, bit 7 in the Status Regist er is set to 1.
Parameters
Parameter NameParameter TypeRange of Values
<number>
numeric1 through 65535
Comments• Setting Bit 7 of the Status Register:
STATus:OPERation:ENABle 256 sets bit 7 of the Status Register to
1 after bit 8 of the Operation Status Register is set to 1.
• Related Commands: [ROUTe:]SCAN
ExampleEnable the Status Register
STAT:OPER:ENAB 256! Enabl es b it 8 of the Operat io n
Status Regi ste r to be re port ed to bit
OPR in the St atu s Re gi ste r.
:OPERation:ENABle?STATus:OPERati on:E NABle? returns which bits in the Event Register
(Operation Status Group) are unmasked.
Chapter 3HP E1442A Switchbox Command Reference 63
:OPERation[:EVENt]?STATus:OPERation[:EVENt]? returns which bits in the Event Register
(Operation Status Group) are set. The Event Register indicates when there
has been a time-related instrument event.
Comme nt s• Setting Bit 8 of the Operation Status Register: Bit 8 (Scan
Complete) is set to 1 after a scanning cycle completes. Bit 8 returns
to 0 after sending the
• Returned Data after Sending the STATus:O PE Ratio n [:E VENt]?
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 STATus: OPERation:EVENt
register with the STATus: O PERation:EV ENt? command clears it.
• ABORting a Scan: ABORting a scan will leave bit 8 set to 0.
• Related Commands: [ROUTe:]SCAN
ExampleReading the Operation Status Register After a Scanning Cycle
STAT:OPER?! Returns the bit values of the
read the register value!
STATus:OPERat ion[: EVENt ]? command.
Standard Ope rati on St atu s
Regist er.
+256
shows bit 8 is set to 1;
+0
shows bit 8 is set to 0.
:PRESetSTATus:PRESet affects only the enable register by setting all enable
register bits to 0. It does not affect either the "status byte" or the "standard
event status".
PRESet does not clear any of the event registers.
64 HP E1442A Switchbox Command ReferenceChapter 3
Figure 3-1. HP E1442A Status System Register Diagra m
Chapter 3HP E1442A Switchbox Command Reference 65
SYSTem
Subsystem SyntaxSYSTem
:CDEScription?SYSTem:CDEScription? <number> returns the description of a selected
Parameters
The SYSTem subsystem returns the error numbers and error messag es in
the error queue of a switchbox, and returns the types and descriptions of
modules (cards ) in a switchbox.
:CDEScription?
:CTYPe? <number>
:CPON <number>| ALL
:ERRor?
module (card) in a switchbox.
Parameter NameParameter TypeRange of Values
<number>
<number>
numeric1 through 99
Comme nts• Form C Switch Module Descrip tion :
SYSTem:CDEScription?<number> command returns:
The
64 Channel General Purpose Switch
for the HP E1442A.
ExampleReading the Description of a Card #1 Mod ule
SYST:CDES? 1 ! Determin e the descri ption.
:CPONSYSTem:CPO N <number>|ALL open s all channels of a selected or all
modules (cards ) in a switchbox to their p ower-on state.
Parameters
Parameter NameParameter TypeRange of Values
<number>
numeric1 through 99
Comme nts• Differences Between *RST and CPON: SYSTem:CPON only
opens all channels of a selected module or all modules in a
switchbox.
and also sets all other settings to their power-on states.
*RST opens all channels of all modules in a switchbox
ExampleSet All Channels on Module #1 to Power-on State
SYST:CPON 1! Sets mod ule #1 c hannels to
power-on sta te (ope n) .
66 HP E1442A Switchbox Command ReferenceChapter 3
:CTYPe?SYSTem:CTYPe? <number> returns the module ( card) type of a selected
module in a switchbox.
Parameters
Parameter NameParameter TypeRange of Values
<number>
numeric1 through 99
Comme nts• Form C Switch Module Model Number:
SYSTem:CT YPe? <nu mber> comm and r eturns:
The
HEWLETT-PACKARD,E1442A,0,A.08.00
Note: The four fields of the response are, 1) manufacturer, 2) model
number, 3) serial number (always 0), and 4) SWITCH firmware
revision.
ExampleReading the Model Number of a Card #1 Module
SYST:CTYP? 1! Determine the model number.
:ERRor?SYSTem:ERRor? returns the error numbers an d corresponding error
messages in the error queue of a switchbox. See Appendix C for a listing of
the switchbox erro r numbers and mess ages.
Comme nt s• 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. Each error message can be up to
255 characters long but typically is much shorter.
• Clearing the Error Queue: An error number/message is removed
from the queue each time the
sent. The errors are cleared first-in, first-out. When the queue is
empty, each following
0, "No erro r ". To clear all error numbers/messages in the queue,
execute the
*CLS command.
• Maximum Error Numbers/Messages in the Error Queue: The
queue holds a maximum of 30 error numbers/messages for each
switchbox. If the queue overflows, the last error number/message
in the queue is replaced b y -350, "Too many erro rs". Th e
least recent error numbers/messages remain in t he queue and th e
most recent are discarded.
ExampleReading the Error Queue
SYST:ERR?! Query the error que ue .
SYSTem:ERRor ? query command is
SYSTem:ERRor? query command returns
Chapter 3HP E1442A Switchbox Command Reference 67
TRIGger
Subsystem SyntaxTRIGger
[:IMMediate]TRIGger[:IMMediate] causes a trigge r to occur when the defined trigger
The TRIGger subsystem command s controls the triggering operatio n of the
Form C switch modules in a switchbox.
[:IMMediate]
:SOURce
:SOURce?
source is
used to trigger a suspended scan operation.
<source>
TRIGger:SOURc e HOL D or TRI Gger:SOURce BUS. This can be
Comme nt s• Executing the TRIGger[:IMMed i ate] Command: A chann el list
must be defined in the
and an
TRIGger:IMMediate can trigger the switch box.
INITiate:IMMediate com mand m ust be executed befo re
[ROUTe:]SCAN <channel_list> command
• HOLD or BUS Source Remains: If selected, the
TRIGger:SOURce HOLD or TRIGger:SOURce BUS commands
remain in effect, after triggering the switchbox with the
TRIGger[:IMMediate] command.
• Related Commands: INITiate, [ROUT e:]SCAN, TRI Gger :SOURce
ExampleAdvancing Scan Usin g the TRIGger Command
TRIG:SOUR HO L D! Sets trigger source to hold .
SCAN (@100:163)! Sets channel list.
INIT! Starts scanning cyc le.
loop statement! Starts count loop.
TRIG! Advanc es ch a nne l list to ne x t
channel.
increment loop! Increments coun t lo op.
68 HP E1442A Switchbox Command ReferenceChapter 3
:SOURce TRIGger:SOURce <source> specifies the trigger source to advance the
scanning channel list.
Parameters
Parameter Nam eParameter TypeDescrip tion or
Range of Values
BUSdiscrete*TRG command
EXTernaldisc reteTrig In port
HOLDdiscreteHold triggering
ECLTrg
TTLTrg
IMMediatediscreteI mmediate triggering
nnumericn = 0 or 1
nnumericn = 0 thru 7
Comments• Enabling the Trigger Source: The TRIGger:SOURce command
only selects the trigger source. The
enables the trigger source. The trigger source must be selected using
TRIGger:SOURce command before executing the INIT command.
the
INIT[:IMMediate] command
• One Trigger Input Selected at a Time: Only one input (ECLTrg 0
or 1; TTLTrg 0, 1, 2, 3, 4, 5, 6 or 7; or EXTernal) can be selected at
one time. Enabling a different trigger source will auto matically
disable the active input. For example, if
TTLTrg 4 is enabl ed , TTLTrg1 will become disabled and TTLTrg4
and
TTLTrg1 is the active input,
will become the active input.
• Using the TRIG command: You can use the TRIGger[:IMMediate]
command to advance the scan when TRIGger:SOURce BUS or
TRIGger:SOURce HOLD is selected.
• Using External Trigger Inputs: With TRIGger:SOURce EXTernal
selected, only one switchbox at a time can use the external trigger
input at the HP E1405/E1406 Co mm and Mod ule Trig In port.
• Using TTL or ECL Trigger Bus Inputs: These triggers are from
the VXI backplane trigger lines ECL[0,1] and TTL[0-7]. These may
be used to trigger the SWITCH driver from other VXI instruments.
• Using EXTern al | TT L Tr gn | ECL Trgn Trigger Inputs: After using
TRIGger:SOURce EXT | TTLTn| ECLTn, the selected trigger source
remains assigned to th e SWITCH driver until it is relinquished
through use of the
TRIG:SOUR BUS|HOL D comm and. While the
trigger is in use by the SWITCH driver, no other drivers operating on
the E1405/E1406 Co mman d Module will have a ccess to that
particular trigger source. Likewise, other drivers may consume
trigger resources which may deny access to a particular trigger by
the SWITCH driver. You should always release custody of trigger
sources after completion of an activity by setti ng the trigg er sourc e
BUS or HOLD (i.e. TRIG:SOUR BUS|HOLD).
to
Chapter 3HP E1442A Switchbox Command Reference 69
• Using Bus Triggers: To trigger the swit chbox wit h
TRIGger:SOURce BUS selected, use the IEEE 488.2 Common
command
*TRG or the HP-IB Group Execute Trigger (GET)
command.
• Trig Out Port Shared by Switc hboxe s: See th e OU TPut command.
• Related Commands: [ROUTe:]SCAN, TRIGger, ABO Rt
• *RST Condition: TRIGger:SOURce IMMediate
ExampleScanning Using External Trigg ers
In the following example, the trigg er input is applied to the
HP E1405/E1406 Comm and Mo dule Trig In port.
TRIG:SOUR EXT! Sets trigger source to externa l.
SCAN (@100:163)! Sets channel list.
INIT! Starts scanning cyc le.
(trigger externally)! Advanc es ch a nne l list to ne x t
Scanning Using Bus Triggers
channel.
TRIG:SOUR BUS! Sets trigger source to bus.
SCAN (@100:163)! Sets channel list.
INIT! Starts scanning cyc le.
*TRG! Advanc es ch a nne l list to ne x t
channel.
:SOURce?TRIGger:SOURce? returns the current trigger source for the switchbox.
Command returns either BUS, EXT, HOLD, TTLT0-7, ECLT0-1 or IMM
for trigger sources
IMMediate, respectively.
ExampleQuery Trigger Source
TRIG:SOUR EXT! Sets trigger source to externa l.
TRIG:SOUR?! Queries tri gge r sourc e; re turn s
BUS, EXTernal, HOLD, TTL Trigger, ECL Trigger or
EXT
.
70 HP E1442A Switchbox Command ReferenceChapter 3
SCPI Command Quick Reference
The following tabl e summa rize s the SCPI comman ds for the HP E144 2A
64-Channe l Form C Switch Module used in a switch box.
:ECLTrg
:ECLTrg
[:EXTernal][:STATe] ON|OFF|1|0
[:EXTernal][ : STATe ]?
:TTLTrg
:TTLTrg
CLOSe? <channel_list>
OPEN <channel_list >
OPEN? <channel_ li s t>
SCAN <channel_li st >
SCAN:MODE NONE|VOL T
SCAN:MODE?
n[:STATe] ON|O F F|1|0
n[:STATe]?
n[:STATe] ON|OFF|1|0
n[:STATe]?
Multiple scans per INI T comm and.
Queries nu mb er of scans.
Selects module to be monitored.
Queries the ca rd nu mb er.
Selects monitor mode.
Queries the m onit or mode.
Enables/disab les continuo us sca nning.
Queries co ntin uous scan stat e
Starts a scanning cycle.
Enables/disables the spec ified ECL trigg er line.
Queries the sp ecif ied ECL trigger line .
Enables/disab les the Trig Out por t on the HP E1405/E 14 06.
Queries the ex te rna l stat e.
Enables/disable s the specified TT L trigger line .
Queries the sp ecif ied TTL t rigg er line.
Closes channel(s).
Queries channe l(s) closed.
Opens channel(s).
Queries channe l(s) opened.
Defines channels for scanning.
Sets scan mode ( has no effec t on Form C oper at ion) .
Queries the sc an m ode.
:SOURce BUS
:SOURce EXTernal
:SOURce HOLD
:SOURce IMMediate
:SOURce:ECLTrg
:SOURce:TTLTrg n
:SOURce?
n
Returns content s of the Oper at ion Condit ion Regist er.
Enables events in the Operation Event Register to be reported.
Returns the mask value set by the :ENABle command.
Returns the cont ent s of the O per atio n Event Regist er.
Sets Enable Register bits to 0.
Returns description of module in a switchbox.
Returns the module type.
Opens all channels on specified module(s ).
Returns error numbe r/m essage in a switc hbox Error Queue.
Causes a trigger to occ ur.
Trigger source is *T RG .
Trigger source is Trig In (on the HP E1405 or E1406).
Holds off triggering.
Trigger source is t he int ern al tr igger s.
Trigger is the VXIbus ECL trigger bus line
Trigger is the VXIbus TTL trigg er bus line
Queries sc an trigge r source .
n.
n.
Chapter 3HP E1442A Switchbox Command Reference 71
IEEE 488.2 Common Command Reference
The following table lists the IEEE 488.2 Common (*) commands accepted
by the HP E1442A 64-Channel F orm C Switch Mo dule. The operation of
some of these commands is described in Chapter 2 of this manual. For
more information on Common command s, refer to the user’s manual for
your HP E1400/E1401 Mainframe, or the ANSI/IEEE Standard 488 .2-1 987.
CommandCommand Description
*CLSClears all status registers (see STATus:OPERation[:EVENt ]? ) and clears the error queue.
unmask>
*ESE<
*ESE?En able Standa rd Event Query.
*ESR?Standard Event Register Query.
*IDN?Ins trum ent ID Qu ery; ret urn s ident ifica tion string of the module.
*OPCOperation Complete.
*OPC?Operation Complete Query.
*RCL<
n>R e calls the inst rumen t stat e saved by *SAV. You must recon figu re the sc an list.
*RSTResets the module. Opens all channels an d invalidates cu rrent chan nel list for scanning .
*SAV<
n>
unmask>
*SRE<
*SRE?Service request enable query.
*STB?Read status byte query.
*TRGTriggers the modu le to advanc e the scan when sca n is enabled and trigge r source is
*TST?Self-test. Executes an int er nal self -test and retur ns only t he first er ror enco unt ered.
Enable Standard Event .
Sets ARM:CO UN 1, TRIG: SO UR IMM , and INI T: CO NT OFF.
Stores the inst r um ent stat e but does not save the scan list.
Service request enab le, en ables status register bits .
TRIGger:SOURce BUS.
Does not retu rn multip le errors . The following is a list of responses yo u can ob ta in where
"cc" is the card number with the leading zero deleted .
+0 if self test pa sses.
+cc01 for firmware error.
+cc02 for bus error (problem communicat ing with the mod ule).
+cc03 for incorrect ID informat ion read back from the mod ule’s ID regist er.
+cc10 if an interrupt was expected bu t not receive d.
+cc11 if the busy bit was not held for a sufficien t amou nt of time.
*WAIWait to Complete.
NOTE These commands apply to many instrum ents. See the user’s manual for
your HP E1400/E1401 Mainframe, or the ANSI/IEEE Standard 488 .2-1 987
for more information about these commands . The common commands
*RCL, *SAV and *TST? do specific actions with the HP E1442A an d are
described in the above table in "Co mm an d D escrip tion".
72 HP E1442A Switchbox Command ReferenceChapter 3
Appendix A
HP E1442A Form C Switch Specifications
Maximum Input Voltage:
High to Low Any terminal to chassis
150VDC 150VDC
150VAC RMS150VAC RMS
210VAC Peak 210VAC Peak
(Maximum with internal jumpers installed
or use of option 010 t erminal modul e ):
High to Low Any terminal to chassis
60VDC 60VDC
30VAC RMS30VAC RMS
42VAC Peak 42VAC Peak
Maximum Current (per switch):
lA DC or lA AC RMS
Maximum Power:
Per switch: 40W DC, 40VA AC
Per module: 320W DC, 320VA AC
Thermal Offset: <70 µV per channel
Closed Channel Resistance:
<1.5Ω typ i c al
<3.5Ω at end of relay life
Power Up/Down Sta tes: All Open
Typical Tim e to Open/Close a Chan nel: 13mS
Module Size/Device Type: C, register based
Installation Category: IC 1
Connectors Used: Pl and P2
Number of Slots: 1
VXIbus Interface Capability: Interrupter, D16
Interrupt Level: 1-7, selectable
Power Requirements:
Peak Module Current
Voltage:
IPM: 0.10A 0.24A
Dynamic Module Current
Voltage:
IDM: 0.11A 0.01A
Watts/Slot: 1.0
+5V +12V
+5V +12V
Insulation Resistance:
(between any two points):
Bandwidth: -3dB at 10 MHz
Crosstalk, Channel to Cha nnel :
Capacitance:
Relay Life (typical):
7
Ω at 40°C, 65% RH
>10
8
Ω at 25°C, 40% RH
>10
<100 kHz: <-70dB
<10 MHz:<-30dB
Common to NO or NC: <40pF
Channel to Channel: <30pF
6
No load: >10
Max. load: >10
operations
5
operations
Maximum Transient Voltage: 1300V
Operating Temperature: 0° to 55°C
Storage Temperature: -40° to 75°C
Operating Humidi ty: 40°C and` 95% RH
Operating Location: Intended for indoor use only
IEC Pollution Deg ree 2 (No rmally on ly
non-conductive poll utio n occurs. Occasionally ,
however, a temporary conductivity caused by
condensation mus t be expected. See p age 74 .)
Appendix AHP E1442A Form C Switch Specifications 73
Definition of Term s:
Pollution: Any additio n of foreign matter, solid, liquid or gaseous (ionized gases), th at may produce a
reduction of dielectric strength or surface resistivity.
Pollution D eg ree: For the purpose of evaluating CLEARANCES, Pollut ion Degree 1 and Pollution Degree 2
are recognized for use in the micro-environment.
Pollution D eg ree 1 : No pollution or only dry, non-conductive poll utio n occu rs. The pollutio n has no
influence.
Pollution D eg ree 2: Normally onl y non-conductive pol luti on occurs. Occasionally, however, a temporary
conductivity caused by condensation mu st be exp ected.
Clearance: The shortest distance in air between two conductive parts.
74 HP E1442A Form C Switch SpecificationsAppendix A
HP E1442A Form C Switch Register
Programming & Definitions
About This Appendix
This appendix contains the inform ation yo u need for register-based
programming. The contents include:
The HP E1442A 64-Channel Form C Switch Module is a register-based
module which does not support the VXIbus word serial proto co l. When a
SCPI command is sent to the Form C switch, the HP E1406A Comman d
Module parses the command and programs th e switch at the register level.
Appendix B
NOTEIf SCPI is used to control this module, then r egister programm ing is not
recommended. The SCPI Drive r maintains an image of the card state. The
driver will be unaware of changes to the card state if you alter the card state
by using register w rites.
Register-based programming is a series of reads and writes directly to the
Form C switch registers. This increases throughput speed since it
eliminates command parsing and allows the use of an embedded control l er.
Also, if slot 0, the resource manager, and the computer (HP-IB) interface
are provided by other devices, a C-size system can be downsi zed by
removing the comm and mo dule.
Addressing the Registers
Register addresses for register-based devices are located in the upper 25% of
VXI A16 address space. Every VXI device (up to 256 de vices) is a llocated a
32-word (64-byte) block of addresses. With seven registers, the HP E1442A
Form C Switch Module uses seven of the 64 a ddresses allocated.
The Base AddressWhen you are reading or writing to a switch register, a hexadecimal or
decimal register address is specified. This address consists of a base
address plus a register offset.
The base address used in register-based programming depends on whether the
A16 address space is outside or inside the HP E1406A Com mand Module .
A16 Address Space
Outside the Command
Module
A16 Address Space
Inside the Command
Module or Mainframe
When the HP E1406A Command Mod ule is not part of your VXIbus system
(Figure B-1), the switch’s base address is comput ed as:
C00016 + (LADDR * 64)16 or 49,152 + (LADDR * 64)
where C00016 (49,152) is the starting location of the register addresses,
LADDR is the switch’s logical address, and 64 is the number of address
bytes per VXI device. For example, the switch’s factory-set logical
address is 120 (78
). If this address is not changed, the switch will have a
16
base address of:
C00016 + (120 * 64)16 = C00016 + 1E0016 = DE00
16
or (decimal)
49,152 + (120 * 64) = 49,152 + 7680 = 56,832
When the A16 address space is inside the HP E1406A Command Module
(Figure B-2), the switch’s base address is comput ed as:
where 1FC00016 (2,080,768) is the starting locatio n of the VXI A16
addresses, LADDR is the switch’s logical address, and 64 is the numb er of
address bytes per register-based device. Again, the switch’s factory-set
logical address is 120. If this address is not changed, the switch mod ule
will have a base address of:
Figure B-1 shows the register address location within A16 as it might be
mapped by an embedded controller. Figure B-2 shows the location of
A16 address space in the HP E1405A/B and E 1406A Command Modules.
76 HP E1442A Register Programming & DefinitionsAppendix B
Register OffsetThe register offset is the register’s location in the block of 64 addr ess bytes.
For example, the switch’s Status/C ontrol Register has an offset of 04
When you write a command to this register, the offset is added to the base
address to form the register address:
16
.
DE00
1FDE00
+ 0416 = DE04
16
16
+ 04
= 1FDE04
16
16
or
56,832 + 4 = 56,836
2,088,448 + 4 = 2,088,452
16
Figure B-1. Register within A16 Address Spac e
Figure B-2. Registers with in the HP E1406 A16 Address Space
The HP E1442A Form C Switch Module is a register-based slave device.
There are 64 independent switches on the card which are controlled using
the Switch Control Regi sters. There are four register types on this module:
• ID Register - Identifies Hewlett-Packard as the manufacturer, and
that the card is an A16 register-based device.
• Device Type Register - Identifies card as an HP E1442A.
• Status/Control Register - When read from, it is used to return
device- specific status information. When written to, it is used to set
control bits.
• Switch Enable Regist ers - These four registers control the state of
the Form C switches on the module (e.g. close or open the switch).
The register definitions are listed later in this chapter.
Reading or Writing
to HP E1442A
Registers
Register Access
with Logical
Address
(Command Module)
NoteRefer to the HP El405/E1406 Command M odul e documentati on for use of
To read or write to specific registers you must address a particular register
within a module. The registers with in a module are located using a fixed
offset. The module address is based on the module’s logical address. There
are two basic ways of accessing registers. One method uses the logi cal
address directly to access a particular card using VXI:READ and
VXI:WRITE commands through a co mm and mod ule. The oth er method ca n
be used with an embedded controll er that lo cates A16 data space withi n its
memory map. The memory map ping allows registers to be directly re ad or
written with moves to/from memory.
The factory setting of the logical address switch is 120 (78
used in the following examples.
When using the HP El405 or E1406 Command M odul e to acc ess registers
via VXI:READ and VXI:WRITE commands, the logical addr ess is used to
determine which VXI module is being accessed.
the VXI:READ and VXI:WRITE commands and oth er related commands.
). This value is
16
78 HP E1442A Register Programming & DefinitionsAppendix B
The following commands a r e sent to the HP El406 Command Module via
the HP-IB. The example below shows a portion of an HP BASIC program.
The controller could either be external or embedded in the VXI mainframe.
This example shows the Status/Co ntrol R egister being a c cessed.
! Writes FFFF hex to Control Register
OUTPUT 70900; "VXI:WRITE 120, 4, #HFFFF"
! Reads from Status Register
OUTPUT 70900;"VXI:REA D 120,4 "
ENTER 70900; Status
Register Access
with Memory
Mapping
(Embedded
Controller)
NoteRefer to the manual for the specific embedded controller that you are using
When using an embedded controller, VXI A16 address space is usuall y
mapped to some block of memory within th e contro ller’s addressab le
memory space.
to determine where VXI Al6 is mapped. There may be other methods of
accessing the VXI backplane. What is shown here is the method in which
Al6 addresses are calculated for a module.
For example, for the HP 75000 Series C Mainframe with an
HP El405/E1406 Comm and Mo dule, VXI Al6 address spa ce starts at
lF0000
. In the HP El405/E1406 Command M odul e, the Al6 sp ace is
16
divided so modules are addressed only at locations begin ning with C000
within Al6. Each modu le is allocated 64 register ad d resses (4 016). The
module base address is related to the logical address set by the logical
address switch on the module:
16
(base address)
= (logical address)16 * 4016 + C000
16
16
For the Form C switch, the factory-set logical address is 120 (7816), so to
address the Status/Cont rol Regis te r of a Form C switch using the HP El405
Command Module:
ID RegisterFor the Form C switch, a read of the ID Register (base address + 00
returns FFFF
since the switches are manufactured by Hewlett-Packard
16
16
)
)
16
)
16
)
16
)
16
)
16
)
16
)
16
and are A16 only, register-based devices. The Device Type Register
(base + 02
) returns 02 2816.
16
Device Type RegisterFor the Form C switch, a read of the Device Type Register (base address +
) returns 022816. This indicates it is a model HP E1442A.
02
16
Status/Control RegisterEach relay requires about 13 msec execution time (close to open or open to
close) during which time the switch is "busy" . A read of the Status/Con trol
Register (base + 04
returns a 0 in bit 7 when the module is busy.
An interrupt is generated after any of the Switch Enable Registers are
written. Bit 6 of the Status Register is used to enable/ disable interrupts
from the card. If bit 6 is returned as a 0, interrupts are enabled. If bit 6 is
returned as a 1, interrupts are disabled.
) returns a 1 in bit 7 when the module is not busy or
16
Bit 14 is the MODID bit. When a 0 is returned in bit 14, the module has
been selected with a high state on the P2 MODID line (this occurs during
turn-on). If a 1 is returned, the module has not been selected.
Switch Enable RegisterA read of any of the Switch Enable Registers always returns FF FF
regardless of the channel states.
Writing to
You can write to the following Form C switch registe rs:
80 HP E1442A Register Programming & DefinitionsAppendix B
Status/Control RegisterWriting a 1 to bit 0 of the Status/Control Register (base + 04
switch module (all channels open). Resetting the module enables interrupts.
NoteIt is necessary to write a 0 to bit 0 after the reset has been performed before
any other commands can be programmed and executed.
To disable the interrupt generated when channels are opened/closed, write a
1 to bit 6 of the Status/Control Register.
NoteTypically , interrupts are disabled when doin g register-level access to a
module. Refer to the operating manual of the command module or the
embedded controller being used in order to handle interrupts. Int e rrupts are
re-enabled after a reset.
Bit 12 provides status on fuse F4. This is a user-installed componen t
required to provide the +5V pullup vol tage to the mod ule’s internal bus for
the NC and NO contacts. A 0 indicates the fuse is not installed (or the fuse
is blown if installed); a 1 indicates you previousl y inst alled the fu se and it is
good.
) to reset the
16
Switch Enable
Registers
NoteAll r elays are non-latching and will open during a power-down.
Writes to the Switch Enable Registers (base + 1016 through base + 1616)
enable you to open or close the desired channel. For example, write a
bit 2 of the Switch Enable Register (base + 10
write a
A switch is open when contact is made between the normally closed (NC)
contact and common (C). It is closed when contact is made between the
normally open (NO) contact and common (C). Any combination of open or
closed states is allowed at one time for all channels on the module.
Write a "1" to the register bit to close the relay.
Write a "0" to the register bit to open the relay.
82 HP E1442A Register Programming & DefinitionsAppendix B
Register Definitions
Manufacturer ID Register (a read only register)
Address
b + 00
ReadManufacturer ID; Returns
Address
b + 02
ReadReturns
Address
b + 04
Write*UndefinedDUndefinedR
Read** Un-
1514131211109876543210
16
FFFFh = Hewlett-Packard A16 only register-based device.
Device Type Register (a read only register)
1514131211109876543210
16
0228
Status/Control Register
1514131211109876543210
16
MUn-
def
S1UndefinedBDUndefinedR
def
for the E1442A module.
16
The following two tables describ e Status/Con trol Regi ster b its:
*WRITE BITS (Status/Control Register)
bit 0RWriting a 1 to this bi t r esets th e swi tch to th e pow er- on st a te (a ll
channels o pen). To rese t, you must keep this bit set to 1 for a
minimum of 100 ms and then you must set bit 0 back to a logical 0 to
allow switches to be closed.
bit 6DDisable interrupt by writing a 1 to this bit (this is set back to 0 with a
**READ BITS (Status/Control Register)
bit 0RA 1 at this bit resets the switch to the power-on state (all channels
open). You must set bit 0 back to a logical 0 to allow switches to be
closed.
bit 6DInterrupt Status; 1 = disabled, 0 = enabled.
bit 7BBusy Status; 1 = not busy, 0 = busy.
bit 12S1Fuse F4 Statu s; 0 = fuse F4 not installed (factory ship pe d witho ut
fuse) .
(A 0 can indicate a blown fuse after installing
fuse F4.)
1 = fuse F4 is installed (user must install fuse).
Fuse F4 provide s +5V pull-up voltag e for the NC and NO switch
contacts by use of the module’s internal bus (see figures 1-7 and 1-8).
bit 14MMODID bit; if the bit is 0, module has been sele cte d durin g turn -on.
Normally this bit is 1 when not in the turn-on cycle.
84 HP E1442A Register Programming & DefinitionsAppendix B
Swi tc h E nable
Regi sters
You write to the switch enable registers to close (or open) a channel.
Write a "1" to the register bit to close the relay.
**Reading any Switch Enable Regi ster will always return FFFF
double ldexp(double i, int exp);
char *base_addr;
int j, k;
unsigned short chan_0_15 _reg, chan_16_31 _r eg; /* First 32 channels */
unsigned short chan_32_4 7_reg, chan_48_6 3_reg; /* Second 32 channels */
unsigned short id_reg, dt_reg; /* ID and device type */
unsigned short stat_reg;/* Status Register */
/* create and open a device session */
INST e1442a;
e1442a = iopen("vxi ,120" );
Read ID and Device
Type Registers
/* map the E1442A registers into user memory sp ace */
base_addr = imap(e1442a, I_MAP_VXIDEV, 0, 1, NULL);
/* clear the user screen */
clrscr();
/* reset the E1442A */
reset_sw(base_addr);
/********** read the switch’s ID and Device Type registers ****** **** /
id_reg = iwpeek((unsigned short *)(base_addr + 0x00));
dt_reg = iwpeek((unsigned short *)(base_addr + 0x02));
printf("ID register = 0x%4X\nDevice Type register = 0x%4X\n",
id_reg, dt_reg);
iwpoke ((unsigned short *)(base_add r + 0x10), ldexp(1,k));
delay (50); /* delay to allow mechanical relays to close*/
}
/* sets all bits to 0 to open last closed channel */
iwpoke ((unsigned short *)(base_addr + 0x10), 0);
/* scan channels 16-31 (register offset 12) */
for (k=0; k15; k++)
{
iwpoke ((unsigned short *)(base_addr + 0x12), ldexp(1,k));
delay (50);
}
/* sets all bits to 0 to open last closed channel */
iwpoke ((unsigned short *)(base_addr + 0x12), 0);
88 HP E1442A Register Programming & DefinitionsAppendix B
/* reset the module; open all r elays (writ e a 1 to status bit 0) */
/* delay 100 ms for reset then set bit to 0 to allow closing of */
/* switches*/
{
/* this function resets the switch mod ule */
iwpoke((unsigned short *) (base_ addr + 0x04), 1);
delay (100);
iwpoke((unsigned short *) (base_ addr + 0x04), 0); }
90 HP E1442A Register Programming & DefinitionsAppendix B
Appendix C
HP E1442A Form C Switch Error Messages
Error Types
Errors with negative values are governed by the SCPI standard and are
categorized in the table below.
Categories of SCPI Errors
-199 to -100Command Errors (syntax and parameter errors).
See HP E1405/E1406 Command Module user’s
manual for descriptio n of these errors.
-299 to -200Execution Errors (instrument driver detected
errors). See following table for these valu es (also,
see
HP E1405/E1406 Command Module user’s manua l
for further details).
-399 to -300Device Specific Errors (instrument driver errors that
are not command nor execution errors). See
following table for these values (also, see
HP E1405/E1406 Command Module user’s manua l
for further details).
-499 to -400Query Errors (problem in querying an instrument).
See HP E1405/E1406 Command Module user’s
manual for descriptio n of these errors.
The table on the following page lists all the error messages that can be
generated by the HP E1442A Form C Switch Module. Error numbers with
positive values are not governed by the SCPI standard.
Appendix CHP E1442A Form C Switch Error Messages 91
Form C Switch Error Messages
CodeError MessagePotential Cause(s)
-211Trigger ignore dTrigger received whe n scan not enabled. Trigger received aft er scan
-213Init Igno redAttempt ing to execute an INIT co mman d when a sc an is alrea dy in pro gre ss.
-222Data out of rangeParameter value is outside va lid range .
-224Illegal para mete r valueAttempt ing to execu te a command with a paramete r not applicable to the
-240Hardwar e errorCommand failed due to hard ware problem.
-310System errorInternal drive r error. This error can result if an exce ssively long para me ter
1500External trigger sour ce
already allocated
1510Trigger source non -existe ntSelected trigger source is not availab le on this platfor m (e.g. some trigge rs
2000Invalid card numbe rAddressing a module (card) in a switchbox that is not part of the switchbox.
2001Invalid channel numbe rAttem ptin g to address a ch anne l of a module in a switchbox that is not
2006Command not suppor ted
on this card
2008Scan list not initializedExecuting a scan without the INIT command.
2009Too many channels in
channel list
complete. Trigger too fa st.
command.
list is entered.
Assigning an exte rna l trigger sourc e to a switchbox wh e n the trigger source
has already been assigned to anot he r switchbox.
are not available on the E1300/E1 301 VXI B-size mainfr ames) .
supported by the m odu le (e.g., channel 99 of a multiplexer module) .
Sending a command to a module (card) in a switchbox that is unsupported by
the modu le.
Attempt ing to address m or e channels t han av a ilable in the sw itchbox.
2010Scan mode not allowed on
this card
2011Empty channel list
2012Invalid Channel Range
2017Config error 17, S lot 0
functions disabled
2600Function not supported on
this card
2601Channel list requiredSending a command requiring a channel list without the channel list.
The selected scann ing mode is not al lowed with this module or you have
misspelled the mode par am eter (see SCAN: MO DE comma nd) .
No valid channels are specifie d in the
Invalid channel(s) specif ied in SCAN
to begin scanning when no valid chann el list is defined.
Attempt to run a downloaded scan list with ARM :COUNt set to a value other
than 1. Applies to HP FET switches only.
Sending a command to a module (card) in a switchbox that is not supported
by the module or switchbox.
<channe l_li st>.
<channe l_li st> com m and. Attempting
92 HP E1442A Form C Switch Error MessagesAppendix C
Appendix D
HP E1442A Option 010 Terminal Module
About This Appendix
This appendix do cuments the HP E1442A Option 010 Te rminal M odul e. With this terminal mod ule the user
can easily add components to configure a variety of passive signal condi tion ing circuits includi ng pul lups ,
pulldowns, and both single-ended and differential resi stiv e dividers and filters. The user connects to the
module by soldering wires or co mpo nents to the terminal mo dule PC board.
Figure D-1 is an overview of channels 0 and 1 and all associated component and voltage connections
(resistors, capacit ors, jumpers and voltages). Note the correlation of R0/C0 and R1/C1 with channels 0 and 1
respectively (also the associated voltage nod e V0-7 and user-supplied resist or SIP).
Figure D-1. Option 010 Terminal Modu le User Connect ions
Appendix DHP E1442A Option 010 Terminal Module 93
Figure D-2. HP E1442A Option 010 Terminal Modu le
94 HP E1442A Option 010 Terminal ModuleAppendix D
Straight-Through Configuration Example
Any channel of the terminal module can be configured as a straight-through Form C relay. In this mode no
resistors or capacitors are included. A two-position jum per is placed on the mode selection jumper.
Figure D-3. No components are added .
Set one conf igu ratio n jumper as ill ustrated bel ow (INL INE).
Appendix DHP E1442A Option 010 Terminal Module 95
Resistor Divider Configuration Example
Any channel can be configured as a resistor divider connected to the normally open contact of the Form C
relay. The user-supplied SIP resistor can be replaced by a standing resistor with it inserted in the solder hole
of the SIP and a solder hole directly across from it. The row of solder holes is connected to V24-31. The
example below shows the voltage sold er holes and identifies th e voltage the row is connected to.
Figure D-4. Components to be added: Resistor R25 and SIP resistor pack
RP24-31. Set one configuratio n jumper as ill ustrated below (L P/DI V).
96 HP E1442A Option 010 Terminal ModuleAppendix D
Low-Pass Filter Configuration Example
Any channel can be configured as a low -pass f ilter c onnected to the nor ma lly ope n c ontact of the For m C r elay.
Figure D-5. Componen ts to be added : Resistor R25 and Capacito r C25.
No configu rati on jumpers req uired .
Appendix DHP E1442A Option 010 Terminal Module 97
Common Terminal Pullup Configuration Example
Any channel can be configured as a pullup (or pulldown) resistor connected to any of the contacts of the Form
C relay. The figure below shows channel 25 with the pullup attached to the COM contact .
Figure D-6. Components to be added : SIP resistor pack RP24-31.
Set two configuration jumpers as illustrated bel ow (PU COM).
98 HP E1442A Option 010 Terminal ModuleAppendix D
Normally Closed Terminal Pullup Configuration Example
Any channel can be configured as a pullup (or pulldown) resistor connected to any of the contacts of the
Form C relay. The figure below shows channel 25 with the pullup attached to the NC contact.
Figure D-7. Component s to be added: SIP resistor pack RP24-31.
Set two configu ratio n jumpers as ill ustrated below (PU NC).
Appendix DHP E1442A Option 010 Terminal Module 99
Normally Open Terminal Pullup Configuration Example
Any channel can be configured as a pullup (or pulldown) resistor connected to any of the contacts of the
Form C relay. The figure below shows channel 25 with the pullup attached to the NO contact.
Figure D-8. Components to be added : SIP resistor pack RP24-31.
Set two configuration jumpers as illustrat ed below (PU NO).
100 HP E1442A Option 010 Terminal ModuleAppendix D
Loading...
+ hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.