Hewlett-Packard C ompa n y certifi es that this produ ct met its publi sh ed speci fica tions a t the time of shipme nt from the factor y. HewlettPackard furth er cert ifi es that its cali brat ion mea sureme nt s are tracea bl e to the Unit ed Sta tes Na tion al Inst itute of Stan dards and Technology (formerly National Bureau of Standards), to the extent allowed by that organization’s calibration facility, and to the calibration
facilities of other International Standards Organization members.
Warranty
This Hewlet t-Pa ck ar d product is warr ante d agai nst de fect s in mate rials and w orkmansh ip for a period of three yea rs from date of shipment. Duration and conditions of warranty for this product may be superseded when the product i s i nt egrated into (be com es a part of)
other HP products. During the warranty period, Hewlett-Packard Company will, at its option, either repai r or re pl ace pr oducts which
prove to be defective.
For warrant y se r vice or repair, this product must be returned to a service facility de si gnated by Hewlett -Packard (HP). Buyer shall prepay shippin g charges to HP and HP sh al l pay shipping charges t o re tu rn t he p r oduct to Buyer. Howe ver, Buyer shall pay all shipping
charges, dutie s, an d taxe s for products ret urned to HP from an other cou ntry.
HP warrants tha t its softwar e and fir mwar e designa t ed b y HP for use with a product will exe cu te its pr ogrammin g instru cti ons wh en
properly installe d on that product . HP does not warrant that t he operat ion of the product, or software, or firmware wi ll be uninterrupted
or er ro r f r ee.
Limitation Of Warranty
The foreg oin g warranty shall not appl y t o defects resulting from i mproper or inadequate maintenance by Bu yer, Buyer-supplied products or interfacing, unauthori ze d m odificati on or misus e, opera tion outside of the environmental specificat ions for the product, or improper site prep arat i on or maint ena nce.
The design an d imp le mentation of any circuit on this product is the sole responsibility of th e Buyer. HP does not warrant th e Buyer’s
circuitr y or malfunction s of HP products that result from the Bu yer’s circuit r y. In addition, HP does not warrant an y damage tha t occurs as a result o f the Buyer’s circuit or any defects th at re sult fr om Buyer-supplied products.
NO OTHER WARRANTY IS EXPRESSED OR IMPLIED. HP SPECIFICALLY DISCLAIMS THE IMPLIED WARR ANTIES OF
MERCHANTABILITY AND FITNESS FOR A PAR TICULAR PURPOSE.
Exclusive Remedie s
THE REMED IES PROVIDED HEREIN ARE BUYER’S SOLE AND EXCLUSIVE REMEDIES. HP SHALL NOT BE LIABLE
FOR ANY DIRECT, INDIRECT, SPECIAL, IN C IDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER BASED ON CONTRACT, TORT, OR ANY OTHER LEGAL THEORY.
Notice
The information contained in this document is subject to change without notice. HEWLETT-PACKARD (HP) MAKES NO WARRANTY OF ANY KIND W ITH REGARD TO THIS MATERIAL, INCLUDING, BUT NOT LIMITED TO, THE IMP LIED WARRANTIES OF MERCHANTABILIT Y AND FITNESS FOR A PARTICULAR PURPOSE. HP shall not be liable for errors contained
herein or for incidental or consequentia l damages in connection wit h the furnishing, performance or use of this material. This document c ontai ns proprietary information which is prote ct ed by copyright. A ll ri ghts are reserved. No part of thi s document may be photocopied, reproduced, or tran slate d to anothe r langua ge wit h out the prior written c onsent of Hewlett -P ackar d Company. HP assumes no
responsibility for the use or reliability of its software on equipment that is not furnished by HP.
U.S. Government Restricted Rights
The Software and Do cumentat ion ha ve bee n develope d entir ely at privat e expe nse . The y are delivered and lice nsed as "c omme rcia l
computer software" as defin ed in DF ARS 252.227-701 3 (October 1988 ), DF ARS 252.211.701 5 (May 1991) or DFARS 252.227-7014
(June 1995), as a "comme rcia l item" as defined in F AR 2.101(a ), or as "Restrict e d comp uter software " as define d in FAR 52.227-19
(June 1987) (or any equival en t agen cy re gula tion or c ontract cla use ), whi ch ever is appl ica bl e. You have only those right s provided for
such Software and D ocum ent at ion by the applicable FAR or DFARS clause or the H P st andar d software agreement for t he pr oduct invol ved.
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 increment s by 1 whenever the manua l is revised . Updates , which are issued betw een Edi ti ons, c ontain repla ce ment pa ges
to correct or add additional information to the current Edi tion of the manua l. Whene ver a new Edition is creat ed, it will c ontain all of
the Update information for the pre vious Edit ion. Each new Ed ition or Update also include s a revised c op y of this documentation hi story page.
Instruction manual symbol affixed to product. Indicat es that the user must refe r t o the
manual for specific WARNING or CAUTION information to avoid personal injury
or damage to the product.
Indicates the field wiring terminal that must
be connected to earth ground before operating the equipment—protects against electrical shock in case of fault.
Frame or chassis ground termi nal — t ypi-
or
cally connects to the equipment’s metal
frame.
WARNING
CAUTION
Alternating current (AC).
Direct curren t (DC).
Indicate s ha za rdous voltage s.
Calls at te nt i on t o a pr ocedure, practi ce, or
condition that could cause bodily injury or
death.
Calls at te nt i on t o a pr ocedure, practi ce, or condition that could possibly cause damage to
equipme nt or perma nen t los s of data.
WARNINGS
The following ge ner al safet y prec aut ions mu s t be observed du ri ng al l phas es of oper ation, service, and re pai r of this pr oduct .
Failure to comply with these prec aut ions or with specific war nings elsewhe re in this manual violates safety stand ard s of design ,
manufacture, and intended use of the product. H ewl ett-Packard Company assumes no liability for the customer’s failu re to
comply with these requirements.
Ground the equipment: For Safety Cl as s 1 equipmen t (equ ipment ha vin g a protective ea rth ter mi nal) , an unint erru ptib le sa fety earth
ground must be provide d from the ma in s power sour ce to the produ ct input wi rin g termi nals or suppli ed power cable .
DO NOT operate the produc t in an explosive at mospher e or in the presen ce of flammable gases or fumes.
For continued protect ion a gainst fire, repl ace the li ne fuse(s) only with fuse(s) of the same voltage and current rating and type .
DO NOT use repaired fuses or short-circui ted fuse holders.
Keep away from live circuits: Operatin g personnel must not remove equipment covers or shields. Procedures involving the removal
of covers or shields are for use by service-trained personn el onl y. Under certain conditions , dangerous voltages m ay exist even with the
equipment switched off. To avoid dangerous ele ctrical shock , DO NOT perf orm procedures involving cover or shield removal unless
you are qualified to do so.
DO NOT operate damaged equipment: Whenever it is possible that the safety protection features built into this pr oduct have been impaired, either t hr ough physical dama ge, excessive moisture, or an y ot her re as on, REMOVE POWER and do not use the product until
safe operation can be verified by service-trained personnel. If necessar y, return the produ ct to a Hewlett -Packar d Sa les and Se rvice O ffice for service and repair to ensure that safety features are maintained.
DO NOT service or adjust alon e: Do not attempt internal service or adjustment unless another person, capable of rendering first aid
and resuscitation, is present.
DO NOT substitute par ts or modify equipme nt: Because of the danger of introducing additional hazards, do not install substitute
parts or perform any unauth orized modifica tion to the product. Ret urn the produ ct to a Hewlett -Packar d Sa les and Ser vice O ffice for
service and repair to ensure that safety features a re ma i nt ai ned.
EMC: CISPR 11:1990/EN55011 (1991): Group 1 Class A
IEC 801-2:1991/ E N5008 2-1 (1 992) : 4 kVCD, 8 kVAD
IEC 801-3:1984/ E N5008 2-1 (1 992) : 3 V/m
IEC 801-4:1988/ E N5008 2-1 (1 992) : 1 kV Power Line
.5 kV Signal Lin es
Supplementary Information: The product herewith c omplies wit h th e requirements of the Low Voltage
Directive 73/23/EEC and the EMC Directive 89/336/ EEC (inclu sive 93/68/E EC) and carr ies the "CE" mark ing
accordingly.
Tested in a typical HP C-Si ze VXI Ma infr ame configuration .
November 6, 1995Jim White, QA Manager
European c ontact : Your loca l He wlett-Pa cka rd Sa les and Ser vi ce O ffic e or Hewlett- Packa rd GmbH,
Department HQ- TRE, Herrenberg er Stra ße 130, D-71034 Böblingen, German y (FAX +4 9-7031-14-3143).
You can help us improve our manual s b y sharing your commen ts and sug gesti ons. In apprec iat i on of your time, we will
enter yo u in a quarterly drawing for a Hewle tt -Pac kar d Palmt op Per s onal C omputer (U.S. government employees
cannot par ticipate in the drawing).
Your Name
C ompany N a me
Job Title
Address
Please list the s ystem c ontroller, opera ting system, programmi ng lan gua ge, and plug-in modules you are using.
City, State/Province
Country
Zip/Postal C ode
Telephone Number with Area Code
fold here
BUSINESS REPLY MAIL
FIRST CLASSPERMIT NO. 37LOVELAND,CO
HEWLETT-PACKARD COMPANY
cut along this line
Measurement Systems Division
Learning Products Department
P.O. Box 301
Loveland, CO 80539-9984
NO POSTAGE
NECESSARY
IF MAILED
IN THE
UNITED STATES
fold here
Please pencil- in on e circle for each statement below: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
• Illustrations are clear and helpful.OOOOO
• The documentation meets my overall expectations.OOOOO
Please write any comments or suggestions below--be specific.
This chapter provides general module information and tasks you must
perform to install a nd pr e pa re your module. A procedur e to verify your
installation is also given. The chapter is divided into the followin g s ections:
The HP E1418A is an 8 or 16 channel digital- t o-ana log converter module
for use in a VXIbus C-s ize mainframe. The modu le is a regis ter-based
device. The module can be programmed via direct register access or, with
the appropriat e driver , by high level commands. This manual de scribes
programming the module using SCPI (Standard Commands for
Programmable Instruments) a nd the SCPI driver.
Each HP E1418A module is a unique instrument having its own output
buffer and error queu e. Multiple modules cannot be combined into a single
instrument.
Each channel can be configured to eith er voltage or current output mo de.
When configu r ed f or voltage output, voltages in the range of -16.0 to
+16.0 Volts can be set. When configured f or current output, current in the
range of -0.02 to + 0.02 Amps can b e s et. The c hannel output mode can be
programmatically set, or, can be forced to either voltage or current by
mechanical jumpers on the terminal module.
Each output channel is individually configurable to be either an isolated
output or a non-isolated output. Cha nne l configuration to is olated or
non-isolat ed is made by individual plu g- on modules for each channel.
Figure 1-1 shows the module.
Figure 1-1. T h e HP E1418A 8/16-Channel D/A Converter
Ordering Opti onsThe HP E1418A may be ordered from Hewlett-Pa c kard in a va r iety of
configurations. As ordered, the module has t he following options:
Description
HP E1418A8-Channel D/A Converter with Non-Isolated Outpu ts
HP E1418A Option 00116-Channel D/A Converter with Non-Isolated Outp uts
HP E1418A Option 0028-Channel D/A Converter with Isolated Outpu ts
HP E1418A Option 00316-Channel D/A Converter with Isolated Output s
Field KitsThe module can also be us er configured as described beginning on page 166
of this manual. The following field expansion and configuration kits are
available:
DescriptionUse
HP E1523ASingle Channel Isolated
plug-on modul e
HP E1524AExpansion kit, 8-Channel
Non-Isolated Out put s
HP E1525AExpansion kit, 8-Channel
Isolated Out pu t s
To change a single channel from
non-isolated to isolated ou tput.
To add 8 additional non-isolated
channels to an existing 8- cha n nel
module .
To add 8 addit io nal isol at e d cha n n els to
an existing 8-cha n n el modul e.
Terminal ModulesThe standard HP E1418A Terminal Module provides screw terminals for
connections. Two other terminal options are available with the HP E1418A:
– Crimp an d Ins er t ( O ptio n A3E )
– Ribbon Cable (Option A3H)
– Terminal Module Housing wit hout a terminal module PC board or
The HP E1418A provides great flexibility in configuration. This functional
description will help you become famil iar with the various configurations
and how th e module is structured. A functio nal bloc k diagra m is shown in
Figure 1-2.
Figure 1-2. A Function al Blo ck Diag ra m
Each channel MUST have either an isolated or non-isolated plug-on module installed. Channels may be configured
*
using any combination of Isola ted and Non -Isol ated plug-on modules.
As shown, there are four major assemblies that m a k e up an HP E1418A:
– Channels 1 through 8 main board and VXIbus backplane circuitry.
– Channels 9 through 16 expansion board.
– Isolated or Non- isola ted plug-on modules.
– Terminal Module.
Cha nnels 1–8 m ain board and VXIbus backplane circuitry.
This assembly contains all the VXIbus interface and decoding circuitry.
Isolated and Non-Isolated plug-on modules f or channels 1–8 connect to this
assembly. The panel connectors for the terminal module are also mounte d
on this assemb ly.
The optional C hannels 9–16 expansion board is electrically connected and
mechanically mounted to the main board. I s olated and Non-Isolated
plug-on modules for channels 9–16 connect to this assembly.
Isolated or Non-isolated plug-on modules are required for every channel.
Eight plug-on modules mount to the main board and 8 plug-on modules
mount to the expansion board. Any c omb inati on of is olated or non-isolated
plug-on modules may be used, but every channel must ha ve a plug-on
module ins ta lle d.
The Terminal Module shown i n Figure 1-2 is the standard screw-type
terminal module. This module provides screw connections for each channel
output, the calibration connections, and the external trigger in connections.
This module also contains two jumpers for each channel; one, called the P/J
Jumper, to enable or disable VXIbu s programming of the channel mode
(either voltage or current) and one, called the V/I Jumper, to set the channel
mode when the P/J Jumper is in the Jumper position.
Figure 1-4 shows the logical address switch location and setting. The logical
address switch factory setting is 72. Valid addresses range from 1 to 255.
When used with an HP Command Module the fac t ory set address of
decimal 72 results in a module address of 9 (72 divided by 8). The module
address is used as a secondary address when using HP-IB and a Command
Module. For ex ample, the module address may be 7 09 09, wher e 7 is the
HP-IB interfac e address, 09 is the command module addr ess, and 09 is the
HP E1418A addre ss.
The HP E1418A supports dynamic address configuratio n. When you set the
logical address to 255, the res o ur ce manager s ets the logical address
programmatically.
NoteWhen using an HP C-size mainframe with the HP E1405/E1406 Command
Modules, the logical address setting must be a multipl e of 8.
1. Verify the position of the CAL Store Enable Jumper for your
application. The Jumper, as shipped, is in the CAL position. In this
position, a calibration may be performed and the results stored in
non-volatil e memory. In the Secured positio n, a calibration may be
performed , but may NOT be stored in no n- volat ile memory. This
jumper is described in more detail on page 156.
2. Verify or set the logical address switch as shown in Figure 1-4.
3. Install the module in a mainframe as shown in Figure 1-5.
Installation in a
Mainframe
The HP E1418A may be installed in any slot (except slot 0) in a C-size
VXIbus mainframe. To install in a mainframe:
1. Set the extraction levers out. Slide t he module into an y s lot ( ex cept
slot 0) until the backplane connectors touch.
2. Seat the mo dule by moving the levers toward each other.
3. Tighten the top and bottom screws to secure the modu le in the
mainframe.
Figure 1-5. Installing the HP E1418A in a VXIbus Mainframe
To Remove a Module:To remove a module from a mainframe:
1. Remove any terminal modules.
2. Loosen the top and bottom screws securing the module in the
mainframe.
3. Move the extraction levers away from each other. As the levers are
moved, the module will detach from t he ba ck plane connectors.
4. Slide the module out.
NoteThe extraction levers will not seat and unseat the backplane connectors on
older HP VXIbus mainframes and n on-HP ma inframes . You must
manually seat the connectors by pushing the module into the mainframe
until the front panel is flush with the front of the mainframe. The extraction
levers may be used to guide or remove the module.
Four terminal modules are available for the HP E1418A; a screw- type, a
crimp-and-insert type, a ribbon cable type, and an empty terminal housing
(without a PC board or connectors).
Screw-Type
Terminal Module
(Standard)
The standard terminal module uses screw-type terminals to make
connectio ns. Figure 1-6 may be photocop ied a nd used for wiring layout .
Besides the standard screw-type terminal module, the HP E1418A can be
ordered with the following two optio ns. One option (A3E) provides
crimp-and-insert connectors and terminal housing. The other option (A3H)
provides a ribbon cable con nector and termina l hous ing.
Option A3EHP E1418A Option A3E can be ordered if a crimp-an d -insert terminal
module is desired. This allows you to crimp connectors onto wires which
are then inserted directly into the HP E1418A faceplate connector. Ref er to
the pin-out diagram on page 30 to make the connections. The
crimp-and-insert connector is shown in Figure 1-10.
NoteThe pin numbering on th e crimp-and-insert conn ector may not agree with the
pin nu mberi ng on the HP E1418’s fa ceplate connector. Use the pin
numbering on the faceplate connector to wire the crimp-and-insert connector.
Figure 1-10. Option A3E Crimp- and-I nsert Con necto r
The following accessories are necessary f or use with crimp-and-insert
Option A3E:
Single-Conductor and
Contact
Shielded-Twisted-Pair and
Contacts
A crimp-and-insert contact is crimped onto o ne end of a wire. The other
end is not t erminated. Order HP 91510A.
A crimp-and-insert contact is cr im ped onto each conductor at one e nd of a
shi elded- t wist ed -pair cable. The other end is not terminated. Order
HP 91511A.
Jumper Wire and ContactsA crimp-and-insert contact is crimped onto each end of a single-conductor
ju mper wire. This jump er is typica l ly used to tie t wo p i n s togethe r in a
single crimp-and-insert connector. Order HP 91512A.
Crimp-and-Insert Co ntactsThese co ntacts ma y be crimped onto a conductor and then ins erted into a
crimp-and-insert connector. The crimp too l kit is required to crimp the
contacts ont o a conductor and remove the contact from the connector.
Order HP 91515A.
Crimp-and-Insert ToolsThe hand crimp tool (part number HP 91518A) is used for crimping
contacts ont o a conductor. The pin extractor to ol (pa rt number HP 91519A)
is required f or removing contacts from the crimp-a nd-insert connector.
These products are not included with Option A3E or with the terminal
option accessories listed earlier.
Option A3HThe Ribb on Cable Connector Terminal Option provides a terminal housing
NoteIn Figure 1-12, t he center row of each connector is not u s ed in t he ribbon
The crimp-and-insert connector is normally supplied with Option A3E.
Contact H ewl ett-Pa c kard if addit ional connectors are need ed.
Order HP 91484B.
and ribbon cabl e connectors. The connectors ar e designed to be used with
64-pin 0.05 inch center ribbon cables (not provided). Us e Figure 1-12 to
make the connections.
cable. The center row of both connectors is module ground (GND).
Figure 1-11. Option A3H Ribbon Cable Con nect or
Option 135The Terminal Module H ousing Option provides a termina l housing with no
connectors of any type.
The user-supplied connector must be a DIN 41612 type C female,
The screw-type terminal mod u le contains jumpers that control how the
HP E1418A operates. The jumpers are shipped in a separate bag with the
terminal module. The HP E1418A will operate without any jumpers
installed. You can, however, store the jumpers on the terminal module for
later reconfiguration. Figure 1-13 shows the jumper locations and example
settings.
There are two j u mpers for each channel; a P/J jumper and a V/I jumper.
The two j umpers work together.
Figure 1-13. P/J and V/I Jumpers
P/J JumperThe P/J jumper s ets the channel output mode to b e either Progra m
Selectable or Jumper Sel ectable. When the jumper is in the program
selectable position, the channel output mode can be s et via progra m ming
commands. In the jumper selectable position, the channel output mode is
set via the V/I jumper.
V/I JumperThe V/I jumper sets the channel output mode to either voltage or cur r ent
when the P/J jumper is set to the Jumper Sel ectable position. When the P/J
ju mper is set t o Pr o g r am Selectab l e , this j umper has no effect.
NotesWith no jumpers installed, the module will be in the Program S electa b le
output mo de.
When the P/J Jumper is set to the Jumper Selectab le position, the output
mode cannot be changed with SCPI co mman ds. The output mode follo wing
*RST common command will be the mode s et by t he V/I jumper.
The P/J jumper connectio n for each channel is named CH X PRGM JMPR
in the conn ection diagram on page 30. W ith no connection to this pin, the
module will operate in the Program Selectable mode. Shorting this pin to
GND will set the Jumper Selectable mode for channel X.
When CH X PRGM JMPR is short ed to GND, th e CH X MODE JMPR pin
(corresponding to the V/I Jumper) sets the output mode f or channel X. If
the pin is op en, volt age output mode is s elec ted. If the pin is shorted to
GND, current output m ode is selec t ed for channel X.
Each channel has four output l ines; HI, LO, HS (Hi Sense), and LS (Low
Sense). Wh en using a c hannel in the voltage output mo de, you can use t he
sense lines to increase accuracy or to compensate f or long lead lengths. The
sense leads ar e not used in the current output mode.
Voltage and
Current Output
Connections
NoteThe sense leads are internally disconnected for current output. External
Figure 1-14 shows connections for three types of output. Channel 1 is
connected in t he 2-wire voltage output mode, the sense leads are not used
(and the sense connections need not be made). Channel 2 is connected in
the 4-wire v oltage output mode. Us e this connection for the hig hest volta ge
accuracy and to compensat e for long lead lengths. Channel 3 is connected
for current output m ode (sen s e is not used for current output).
wiring may be left connected to th e sense outputs on the terminal module
with no effect.
Figure 1-14. Typical Output Connecti o ns
Options A3E and A3H
HI, HS, LO, a nd LS connections are shown on the diagram on pa ge 30.
An external trigger input is provided on the terminal module. Use the
external trigger to externally synchronize multiple outputs or multiple
instruments. The External Trigger us es TTL levels. The trigger occurs
when the EXT TRIGn connection is pulled low for at least 1 µS. T ypical
connections to th e external trigger is shown in Figure 1-16.
Options A3E and A3H
Terminals
Figure 1-16. External Trigger Con necti ons
The external tri gger l ine is loca ted on the upper conn ector and is lab eled
EXT TRIGn in the diagram on page 30.
The CAL Output Terminals provide one set of connections that can be used
to calibrate the output on all 16 channels. Calibration and adjustment
procedures are described in Appendix D beginning on pa g e 154.
The CAL out put terminals ar e ava ila ble on the terminal module. There ar e
four lines; HI, LO, HS (Hi Sense), an d LS (Low Sense). Typical CAL
output t erminal connections are shown in Figure 1-17.
Options A3E and A3H
Terminals
Figure 1-17. Calbus Connect ions
The CAL Output Terminals are located on the upper connector and are labeled
CAL HI, CAL HS, CAL LO, and CAL LS in the diagram on page 30.
NoteThis discussion applies to SCPI programming using the driv er provided
Device DriverThe HP E1418A module is shipped a driver CD. This CD contains the SCPI
This section provides a programming example to help verify correct module
installation and operation. Additional programming exa mpl es and procedures
are given in the next chapter.
The examples shown here use HP BASIC and SCPI (Standard Commands for
Programmable Instruments). The example assumes a f ac tory set logical
address of 72 for the HP E1418A module and uses an HP Command Modul e
for co mmand interpretation. Examples in A NSI C are given in the next chapter.
with the module. The SCPI commands are described in Chapter 3 of this
manual. Appendix B of this manual describes direct register access.
instrument driver, VXIplug&play drivers, example programs, and HP VIC
(VXI Installation Consultant). Follow the instructions contai ned on the CD to
properly install the device driver.
The following example shows how to query the command module and
verify that the correct device driver is installed:
10 DIM A$[256]
20 OUTPUT 70900;"DIAG:DRIV:LIST?"
30 ENTER 70900;A$
40 PRINT A$
50 END
In this exam ple, the co mmand modu le is loca ted on H P- IB ( inter face a ddr es s 7)
and uses a primary address of 09. Responses to this example vary depending
upon the drivers loaded on your system. A typical response might look like:
This example can be used to verify that the logical addr e ss ha s been
correctly set, that the module is corr e c t ly installe d, and that the module is
communicat ing with the command module . The terminal module do es not
need to be instal led for t h is example to work. This example qu eries t he
module for the identific ation st ring.
10 DIM A$[256]
20 OUTPUT 70909;"*IDN?"
30 ENTER 70909;A$
40 PRINT A$
50 END
The response should be similar to one of the fo llowing:
HEWLETT-PACKARD,E1418A_8CH,xxxxAxxxx,A.01.00
or
HEWLETT-PACKARD,E1418A_16CH,xxxxAxxxx,A.01.00
The xxxxAxxxx port ion of the response string is the module serial number.
This chapter provides examples and descriptions of the mo st c ommon
operations using the HP E1418A. Use this chapter to gain an overview of how
to program the module, and to obtain programming hints. The examples
shown in this chapter are in ANSI C and use SCPI commands to control the
module. The SCPI commands are described in detail in Chapter 3 of this
manual. SCPI usag e conventions and synta x r ules are described beginning on
page 60.
This chapter is divided into the following sections:
Program ExamplesExample programs in ANSI C format are included on the driver CD
supplied with the HP E1418A. Most examp les in this chapter are included.
The examples are ASCII files wit h the *.c extension.
NoteThe int data type is system dependent. Thes e exa mples were developed on
a system where int is a 16-bit integer. Other systems may define int to be a
different width.
In the examples, t he HP VI S A Trans ition L ib rary is used for I/O operations
with the VXIbus. An HP command module (HP E1405/ E1406) is used and
controlled via HP-IB.
To use the HP VISA Transition Library (ab br eviated as VTL), include th e
visa.h header fil e.
Hewlett-Packard V T L function calls and data types typically begin with the
lower cas e let ters vi. Output and enter are performed with functions na med
viPrintf and viScanf. Both these functions require a s ession (a VTL
defined I/O funct ion ) to uniquely identify the d evice being controlled. In
the examples, the session has b een name d dac.
Querying Module Identification and Configuration
This examp le will query the modu le for the identificati on string and
determine the module configuration.
The module identification is obtained using the IEEE-488 Command
!Send query to the module.
*IDN?
!Enter a string.
The string retur ne d should be similar to one of the f ollowing:
HEWLETT-PACKARD,E1418A_8CH,xxxxAxxxxx,A.01.00
or
HEWLETT-PACKARD,E1418A_16CH,xxxxAxxxxx,A.01.00
The xxxxAxxxxx portion of t he respon se string is the module seria l
number.
The module co nfiguration is obtained using the
query.
The DIAG:CONF? query returns six integers. The six integers returned
contain the module configuration and have the following meaning.
Integer
ReturnedMeaning
1stExpansion Board ID in the form : 0 = present, 7 = none
(expansion board contains channels 9 through 16)
2ndTerminal Modul e ID in the form
0 = screw type, 7 = none or other
3rdIsolated/Non-isolated Channel status
A bit set to 0 indicates an isolated channel
A bit set to 1 indic ates a non-isolated channel or no plug-on
module installed (DO NOT operate the module without a plug-on
module)
Bits 0 – 15 correspond to channels 1 – 16, respectively*
4thChannel Mode
A bit set to 0 indi c ates a current out put channel
A bit set to 1 indic ates a voltage output channel
Bits 0 – 15 correspond to channels 1 – 16, respectively*
5thChannel Output State
A bit set to 0 indicates the channel output relay is closed
A bit set to 1 indicates the channel output relay is open
Bits 0 – 15 correspond to channels 1 – 16, respectively*
6thChannel Mode Programmable State (P/J Jumper)
A bit set to 0 indi c ates a channel is not mode programmabl e
A bit set to 1 indi c ates a channel is mode programmable
Bits 0 – 15 correspond to channels 1 – 16, respectively*
* For 8-channe l configurations, the upper 8 bits of integers 3, 4, 5, and 6 are set to 1’s.
For example, if the f ollo wing six integers ar e returned, the module has the
configurat i on indicated.
Decimal
Integer
1st7No expansion board installed
2nd7No Terminal Module installed or
3rd-1All channels are non-isolated.
4th-1All channels are voltage output channels.
5th-1All channel outputs are disabled
The following program segment demo nstrat es how to rea d the module
identification string and the configurat ion. The configuration integers are
bit manipulated using the C operator for bit shifting result = result <<1
(a one bit shift to the left).
•
•
•
/** FUNCTION PROTOTYPE S **/
void main (void);
void err_handler(ViS ession vi, ViStat u s x); /* VTL error routine */
void sys_err(ViS e ssion re source); /* Checks for SCPI programming error s */
/** GLOBAL **/
ViStatus err;
ViSession defaultRM, cmd, dac;
err=viPrintf(dac, “*IDN?\n”); /* request id from the module */
err=viScanf(dac, “%t”, &buf ) ; /* enter string returned */
printf (“Module is identified as a %s\n”, buf); /* print the result */
/*** Get the module conf i gurati on ***/
err=viPrintf(dac, “DIAG:CONF?\n”); /* request m odul e configurat ion */
err=viScanf (dac, “%,6d”, &config); /* ret urns six integers */
The APPLyn subsystem commands provide th e easiest method to output
voltages or currents.
/* Set channel 1 for 5.0 Volt output */
APPLy1:VOLTage 5.000
/* Channel is se t to volta ge outp ut and 5. 000 V appl ie d */
/* Set channel 8 for 10 mA output */
APPLy8:CURRent 0.0100
/* Channel is set to curre nt output and 10 mA applie d */
The APPLyn subsyst em outpu ts t he volta ge or cur r ent s pecified on the
channel specified immediately. The output relay for that channel is closed.
Other channel outputs and output states are not disturb ed.
APPLyn subsystem command performs several actions with a single
An
command. Each
– Sets the channel output mode ( voltage or current).
– Sets the output value (volts or amps).
APPLyn c omma nd a ffects a single channel and:
– Enables th e outputs (closes the output relay).
The output c hannel rem a ins e na b led, a nd outputs the last progra mm ed
voltage or current valu e, unless you take explic it action to turn off the
output. For exa mple, if you send two
APPLyn commands to the same
channel, t he first command sets an outp ut va lue and closes th e output relay.
The second c omma nd changes only the outp ut va lue (since the relay is
already closed).
/* Set cha n ne l 1 f o r 5. 0 Volt output */
APPLy1:VOLTage 5.000
/* Channel 1 is se t to vol ta ge output an d 5. 000 V appl ie d */
/* No w set channel 1 for 6.0 Vol t out put */
APPLy1:VOLTage 6.000
/* Channel 1 is se t to vol ta ge output an d 6. 000 V appl ie d */
The comman ds ab ove will s et a 5.000 Volt output on Channe l 1, a nd then
set a 6.000 Volt outpu t on channel 1. The output rela y is not affected by the
second command.
The output can also be disabled before changing the mode or output value.
Use the
OUTPutn commands to disab le t he output.
/* Set channel 1 for 5.0 Volt output */
APPLy1:VOLTage 5.000
/* Disable the output */
OUTPut1 OFF
/* Channel 1 output rel ay is ope ne d */
/* No w, enabl e t he outp ut */
OUTPut1 ON
/* Channel 1 is se t to vol ta ge output an d 5. 000 V appl ie d */
/* Disable the output */
OUTPut1 OFF
/* Now set channel 1 for 20 mA curre nt outpu t */
APPLy1:CURRent .0200
/* Channel 1 is set to current out put and 20 mA appl ie d */
The OUTPut subs ys tem commands only affect the output relay. The
programmed mode and output value for a given channel is not changed.
Once the mode is set and the desired output value programmed, the output
can be turned on or off as needed with the
OUTPutn[:STATe] command.
It is also possible, with the
APPLyn commands, to change the channel
output mode from volt age to current.
/* Set channel 1 for 5.0 Volt output */
APPLy1:VOLTage 5.000
/* Channel 1 is se t to vol ta ge output an d 5. 000 V appl ie d */
/* Now set channel 1 for 20 mA curre nt outpu t */
APPLy1:CURRent .0200
/* Channel 1 is set to current out put and 20 mA appl ie d */
During the c hange from voltage t o current (or current to voltage), the
channel out put r e la y is opened. Sendi ng a c omma n d sequenc e similar to the
one above performs the following actions:
– Programs channel 1 to th e voltage mode and 5.000 Volts output.
– Closes th e channel 1 output relay.
– Opens the channel 1 output relay.
– Programs channel 1 to current mode and 20 mA outp ut.
– Closes th e channel 1 output relay.
To develop pro gra ms you wi ll need t o creat e one or more error checking
routines. For example, you will need routines to check for errors in the
fol lo wi ng operations:
– I/O operations to t he VXIb us, a n d
– SCPI commands to the module.
I/O Error CheckingI/O error checking is specific to th e type of I/O library you are using to
communicate with the VXIbus. In this manual and on the CD, the
HP VISA Transition Library is used.
Function calls to the HP VISA Transition Library (VTL) typically begin
with a lower case vi. For example, viPrintf is a VTL output function call.
The HP VTL I/O function calls return a var iable that can be tested for errors
against the VTL variable VI_SUCCESS. In the examp les, the variable err
is used to trap the VTL errors and is declared as a gl obal variab le of the
ViStatus type (defined in visa.h).
I/O error checking is illustrated in the f ollowing program example. The
VTL error chec king function is named error_handler. Errors found are
report ed to the standard output device.
SCPI Error
Checking
You must also c hec k for errors r eported by t he SCPI drive r. The SCPI
driver reports errors in response to the
/* Repeat … */
SYST:ERR?
/* …until no errors found */
The query returns two values: an int eger error code and an error description
string. The integer value returns +0 and the string returns “No Error” if
no errors are fou nd.
SCPI error s are reported in an error q ueue. The error queue is a first in, f irst
out queue. Each response to the
from the queue. Multiple SCPI errors may be generated by a single
incorrect command and the error queue should be read until it reports +0,"No Error".
SCPI error checking is illustrated in the following program example. The
SCPI error routine is named sys_error. Errors found are reported to the
standard output device.
•
•
•
/** FUNCTION PROTOTYPE S **/
void main (void);
void err_handler(ViS e ssion vi, ViStat u s x); /* VTL error routine */
void sys_err(ViS ession resource); /* SCPI error routine */
•
•
•
/** GLOBAL **/
ViStatus err;
ViSession defaultRM, cmd, dac;
•
•
•
void main (void)
{
/*** Open the resource manager, command module, and dac sessions ***/
viOpenDefaultRM (&defaultRM);
viOpen (default RM, CMD_ADDRESS, VI_NULL, VI_NULL, &cmd);
viOpen(defaul tRM , DAC_ADDRESS, VI_NULL, VI_NULL, &dac);
/*** Set the timeout for the dac ***/
viSetAttribute(dac , VI_ATTR_T MO_VA LUE, 10000); /* 10 second timeout */
The ou t put mode can b e set using co mmands in the SOURce subsystem.
SOURcen:FUNCtion:MODE VOLTage
SOURce
The mode can also be set on the terminal module with the P/J ju mpers and
V/I ju mp ers ( s ee pa ge 3 1). I f t he mode is set to Jumper selectable with the
P/J jumper on the term ina l module, t he mode cannot be changed with the
SCPI comma nds a nd the output mode is s et by the V/I ju mper (also on the
terminal module, see page 31).
For example , if on th e termi nal modu le, c hannel 1 P/J jump er is set to
Jump er Selectab le and the V/I jumper is set to current mod e, the following
command will each generate an error:
SOURce1:FUNCtion:MODE VOLT
The error retur n ed is:
+3012 Channel cannot be program med to this mode, check jumper s
Appendix C, starting on page 150 contains a full list of t he errors that may
be generated by the SCPI commands for t he HP E1418A.
To synchronize outputs to external events, ba ckplane events, or software
events use the
TRIGge r subsystem c omma nds. Triggering an out put from
the module involves four steps:
1. Set the trigger source.
2. Set on e or mor e c hannels for triggered output.
3. Put the trigger system in the wait-for-trigger state.
4. Send the trigger event.
TRIGger:SOURce <source> command sets the trigger source. One of
The
four trigger s ources can be specified.
• VXIbus backplane tr igger — one of the eight TTL trigger lines
defined in the VXIbus P2 connector. The lines are named
*TTLTRG0 throu gh *TTLTRG7. Any one of these trigger lines
may be used as a trigger source.
• Software trigger — generated within the c ontrolling program.
• Immediate trigger — places the trigger system in the wait-for-trigger
state and then imme diately triggers the output.
• External Trigger — an input on the terminal module (see page 35).
Use this source to synchronize the outputs to a n external e ve nt.
SOURcen:VOLTage[:LEVel]:TRIGgered[:AMPLitude] and
The
SOURcen:CURRent[:LEVel]:TRIGgered[:AMPLitude] commands program a
channel output value when the trigger conditions are met.
INITiate:IMMediate command places the trigger system in the
The
wait-for-trigger state. The trigger event depends upon the trigger source set.
The trigger syst em is common to all channels in the mo dule. That is, a
single trigger ev ent triggers t he output on all c hannels that are waiting for
the trigger. The
SOURce sub syst em contains commands t o p ut each
/* Channels 1 and 2 outpu t the programme d volt age s */
Note that th e channels must be set for triggered output (using the SOURce
subsystem) before the trigger system is changed to the wait-for-trigger state
(using the
the
INITiate command). If you send the SOURcen commands after
INITiate command, t he fo llowi ng error is re ported:
+3014 Illegal while initiated
Once the outputs have been triggered (using
TRIGger:IMMediate in the
previous example) the trigger syste m is set back to the trigger idle state. New
triggered channel output values can be progr am med and the trigger system put
in the wait-for-trigger state. The triggering process is illustrated below.
NoteOnce an output is enabled and a voltage or current output, t hat value
remains on th e output . S ending subsequent
SOURn:CURR:TRIG co mmands will not change the output value until the
trigger ev ent is received. The output may be disabl ed (output rela y opened)
with the
OUTPn OFF command.
The trigger source set using the TRIGger:SOURce command re ma ins in
effect until it is changed or a reset occurs. Following a reset (
trigg er source is set to
As shown, the examples have made no attempt to coordinate the program
execution with the HP E1418A module. In some cases, you may need to pause
program execution until the module has completed executing the co mmands.
The IEEE-488 common command
and the module synchronized. The
*OPC? can be used to k eep the pr ogram
*OPC? query returns a 1 when all
programmed operations are complet e. The program can wait for the
response before executing additional statements. The returned value is
uni mportant (always a 1).
/* Set channel 1 voltage mode */
SOURce1:FUNCtion:MODE VOLTage
/* Set channel 1 voltage output */
SOURce1:VOLTage 5.000
/* Turn on the ou tpu t */
OUTPut1 ON
*OPC?
/* enter the response */
*OPC?
is used to synchronize the program with the module since program
execution waits for the response. The command may be combined using the ;
as described under “Linking Commands” on pag e 62. For example,
As described on pag e 34, multiple outputs may be combined to obtain higher
voltage or current outputs. A triggered output is recommended for combined
channels. The general sequence used to control combined channels is:
1. Set the trigger source.
2. Close the output relays.
3. Set the desired output on all combined channels.
4. Trigger the outp ut.
For example , when three current channels are combined in parallel as
shown on page 34, the following commands ca n be used.
/* Set the tri gger source for external tri gger */
TRIGger:SOURce EXT
/* Close the output relays */
OUTPut9 ON
OUTPut10 ON
OUTPut11 ON
/* Set channe l s 9, 10, an d 11 fo r trig ge red outp ut */
SOURce9:CURRent:TRIGgered MAX
SOURce10:CURRent:TRIGgered MAX
SOURce11:CURRent:TRIGgered .0100
/* Put the trigger sy stem in the wait-for-t rigg er st ate */
INITia te
/* Wait for the trigger event */
/* When the trigger occurs… */
/* …output 50 mA */
When combining channels in parallel, for increased current output, channels
may be configured with either isolated or non-isolated plug-on modules.
When combinin g channels in series, for increased voltage output , all
combined channels MUST be configured with isolated plug-on modules.
CAUTIONWhen combining output voltage channels (series connections) you must
ensure that the output does not exceed the maximum isolation rating of ±42
Vdc/42 Vpeak. Up to three channels may be co mbined, but the controlling
program must ensure that all three channels together are NEVER set
beyond ±42 Vdc.
This chapter describes Standard Commands for Programmable Instrumentatio n
(SCPI) and su mmar izes IEEE 488.2 C omm on (*) Commands applicab le to th e
HP E1418A D/A Converter Module. This chapter contains the followin g s ections:
Comman ds are s eparat ed i nto two types: IEEE 488.2 Common C omm a nds a nd
SCPI Commands.
Common
Command
Format
The IEEE 488.2 standard defines the c ommon c ommands that perform functions
like reset, self-t est , status byte query, etc. Common commands ar e four or five
characters in length, always begin with the asterisk character ( *), and may include
one or more parameters. The c ommand keyword is separated from the f irst
parameter by a space character. Common commands are not documented, except in
a general manner, in this manual. Some examp les of common commands are:
SCPI comma nds perform functions like setting output s, querying instrument states,
or retrieving data. The command structure is a hierarchical structure that usually
consists of a top level (or root) command, one or more lower level commands, a n d
their parameters. The fo llowing example shows part of a typical subsystem:
SOURcen:
FUNCtion:
MODE <CURRent | VOLTage>
Command
Separator
Abbreviated and
Short Commands
SOURce
range o f 1 to 16),
command, and
n: is the root command (where n is replaced by the channel number in the
FUNCtion: is a second level comman d, MODE is a third level
<CURRent | VOLTage> is an input parameter.
A colon (:) always separat es one command from the next lower level command.
This is illustrated as follows:
SOURcen:FUNCtion:MODE VOLT
Colons separate the root command from the second level (SOURcen:FUNCtion) and
the second from t hird level (
FUNCtion:MODE ), a nd so forth.
The comman d syntax shows most commands as a mix o f upper and lower case
letters. The upper case l etters i ndica te an abbreviated spelling for th e comma nd.
For shorter program lines, s end only the abbreviated form. For better program
readability use the entire command. The instrument will accept either the
abbreviated form or the entire command.
For example, if the c ommand ref eren ce syntax s hows the command
TRIG and TRIGGER are both acceptable forms. Other forms of TRIGger, such as
TRIGG or TRIGGE will generate an error.
TRIGger, then
The instrument do es not distinguish between upper case and lower case characters.
Therefore
TRIGGE R , trigger, and Tr igGeR a r e a ll a cceptable.
Comman d keywords can be entered in th eir full form, as shown above, or can be
entered i n t heir short form. In this manual, the entry required in short form
commands is always cap ita l iz ed. The short form is gen erally us ed for examp le s in
this manual.
Implied commands appear in square brackets ([ ]) in the command syntax. (Note
that the brackets are not part of the command and are not sent to the instrument.)
Suppose you send a second level command but do not send the preceding implied
command. I n this case, the instrument assumes you intend to use the imp lied
command and it resp on ds as if you had sent it. Examine this excerpt from the
STATus subsystem shown below:
STATus:
OPERation
[:EVENt]?
The third level command, EVENt, is implied. To read the value of the Event
Register, you can use either:
STATu s:OPERation?
Parameters
STATus:OPERation:EVENt?
or
Parameters are enclosed in greater than/less than symbols (< >) in the command
syntax. When more than one parameter is allowed, the parameters are separated by
a vertical line ( | ).
Parameter Types. The following table contains explanations and examples of
parameter types you might see later in this chapter. Parameters mus t a lways be
separated from the keywords by a space.
Parameter T ypeExplanatio ns and Ex am pl es
NumericAccepts all commonly used decimal representations of
BooleanRepresents a single binary condition tha t is either
DiscreteSelects from a finite numb er of values. Th ese param eters
numbers including opti onal signs, decima l points, and
scientif ic not at ion.
123, 123E2, -123, -1.23E2 , .123, 1.23E-2, 1.230 00E- 01.
Special cases include MIN, MAX, and DEF.
true or fals e.
ON, OFF, 1, 0.
use mnemo nics to r epr esent each valid setting .
An example is the SOURce
command where the <
CURRent or VOLTage.
n:FUNCtion:MODE <mode>
mode> param eter can be either
Optional Parameters. Parameters shown within square brackets ([ ]) are optional
parameters. (Note that the brackets are not part of the command and are not sent to
the instrument.) If you do not specify a value for an opt iona l pa r a me ter, the
instrument chooses a default value.
Linking IEEE 488.2 Common Commands with SCPI Commands. Use a
semicolon between the commands. For example:
*RST;APPLy2:VOLT 10 or INIT:IMM;*IDN?
Linking M ul tiple SCPI C omman d s . Use both a semicolon and a colon b etween
the commands. For example:
SOURce2:FUNCtion:MODE VOLT;:SOURce2:VOLTage 10
SCPI Command Reference
The following s ections describe the Standard Commands for Programmable
Instruments (SC PI) commands for the HP E1418A D/A Conv erter Module.
Commands are listed alphabetically by subsyst em and within each subsystem. A
command guide is printed in the top margin of each page. The guide indicates the
current subsystem on that page.
The CALibration commands are used durin g periodic calibration of th e module.
Calibration is described in App endix D o f this manual, beginning on page 154. You
should rev iew Appendix D before using any of these commands.
CALibration:CONDition? qu eri es the module type and calibration status. The
query returns f our 16-bit unsigned integers.
Parameters Retur ns: four unsigned 16-bit integers ( u int16).
Comments • The integers returned indicate the module configuration and status at the last
calibration, not the current configuration of the module. The first and second
integ ers returned from this query can be compared to the first and third integers
returned from the
configurat ion has c hanged sin ce the last calibra tio n.
CALibration
DIAGnostic:CONFigure? query to determine if t he module
Integer
Returned
1Expansion Board ID in the form :
0 = prese nt, 7 = none
(expansio n board cont ains chann els 9–16 )
22nd 16-bi t value indicates how the chan n els are confi gur ed (is olat ed
or non-isolated). A bit set to 0 indicates an isolated chann el, a bit set
to 1 indicates a non-isolat ed channel. Bi ts 0–15 corr espo nd to
channels 1–16, respectively.
33rd 16-bit value indicates the current calibrati on status for each
channel. A bit set to 0 indicates th e chann el is not calibrated for
current, a bit set to 1 indicates the channel has been calibra ted fo r
current. Bits 0–15 correspond to channels 1–16, respectively.
44th 16-bit value i nd ic at es the voltage calibration status for each
channel. A bit set to 0 indicates th e chann el is not calibrated for
voltag e, a bit set to 1 indicates the channel has been calibrated fo r
voltage. Bits 0–15 correspond to channels 1–16, respectively.
CALibration:STORe loads the stored non-volatile memory calib rat i on c onstants
with the calib rat ion constants curr ently in use by the module.
Parameters None.
Comments • This command s ets the ca libration constants in non- volatile memory if the C AL
• At power-on, calibration constants stored in non-volatile memory are loaded into
• When this command is received, the checksum is verif ied using the constants
CALibration
Store Enab le Jumper is properly set (see page 156). Non-volatile memory has
finite life, based upon the nu mber of writes. Use this command sparingly.
the module where they are used during output operat ions.
currently in use by t he module . I f the checksum does not v erify, the non-volatile
memory is not updat ed and an error is generat ed.
• Refer to Appendix D, “Voltage/Current Output Adjustment”, starting on pa ge 154,
• Related Commands: CALibration:RESet
CALibration:TEST?
CALibration:T EST? performs an internal rough check of the calibration of each
channel and returns an integer indicating the channel calibration condition.
Calibration is c hecked to approximately ± 2%.
Comments • Following the co mpletion of this query a ll outputs are dis abled and set to 0 Volts
• This query returns a 16-bit integer indicating the calibration st atus of each channel.
– Bits set to 0 indicate no calibration errors were found.
– Bits set to 1 indicat e a channel wit h questionable calibration.
– Bits 0–15 correspond to channels 1–16, respectively.
for additional infor ma tion about this command.
or 0 Amps based on the channel mode.
• If the trigger syst em is wait ing for a trigger when this comman d is received, an
CALibration:VALue:RESistance <value> enters a new measured value to be used
as the int ernal calibration resistor co nstant by the module.
Parameters
Parameter
Name
<
value>numeric (float 32 )Mus t be > 0 ohmsnone
Parameter
Type
Range of
Values
Default
Comments • The new calibratio n co nstant is u s ed by t he module but not stored in non-volatile
memory.
• This command is used together with the CALibration:CO NFi gu r e:RESistance?
query to calibr a te the internal current calibrati on resistor.
• The internal calibration resistor should b e calib ra ted before calib rating channels in
current mode. When calibrating at the CAL c onnections and using the internal
calibration resistor, the value need only be entered once to calibrate all channels.
• If using an external resistor to calibrate current mode, you must calibrate at each
channel output. External resistances in th e range of 50 Ω to 500 Ω are recommended.
• Refer to Appendix D, “Voltage/Current Output Adjustment”, starting on pa ge 154,
for additional infor ma tion about this command.
• Related Commands: CALibration:STORe, CALibration:CONFigure:RESistance?
CALibrationn:CONFigure:CURRent? configures the channel f or current mode
calibration and returns a
Parameters
Parameter
Name
CALibration
n
Returns: an u nsigned 16-bit integer (uint16). 1 = r eady, 0 = not ready.
Comme nt s • In the keyword, CALibrationn, the valid range of n is:
1 to 8 forE1418A, E1418A Option 002
1 to 16 forE1418A Option 001, E1418A Option 003.
Values of n outside thes e ranges will generate an error.
• This command is used together with the CALibrationn:VALue:CURRent? <value>
query to perform current mode calibration.
0 or 1 to indicate the channel’s readiness for calibration.
Parameter
Type
keyword1 to 8 or 1 to 161
Range of
Values
CALibration
Default
• The calibrat ion is performed either at the C AL output t erminals or at an individual
channel. The choice is made using t he
DIAGn ostic:CALibration:OUTPut[:MODE]
command.
– When the DIAG:CAL:OUTP:MODE CALBus command (also the reset state)
is used, the outpu t r elay routes the calibrat ion current to the CAL output
terminals (and opens all channel output terminals).
– When the DIAG:CAL:OUTP:MODE CHANnel command is used, the output relay
routes the calibration current to the channel terminals (the CAL terminals are
not connected).
DIAG:CAL:OUTP:MODE command must be s ent t o the modu le b efore the
The
CALibratio nn:CONFigure:CURRent? query.
• This query will generate an error if the trigger system is waiting for a trigger event
when this command is received.
• This query returns a 0 to indi cate that the channel is not ready f or calibration, and
1 to indicate the channel is ready for calibration.
a
• This query is affected by the state of the program jumper for this c hannel on the
terminal module. To use this command:
– the P/J ju mper must be set to progra m selectable or, if set to ju mp er s electa ble,
– the V/I ju mper must be set to the current mode. The jumpers are described on
page 31.
• Refer to Appendix D, “Voltage/Current Output Adjustment”, starting on pa ge 154,
CALibrationn:VALue:CURRent? <value> enters a measured calibration value
and returns a value indicating the present state of the current calibration process.
Parameters
CALibration
Parameter
Name
CALibration
<
value>
nkeyword1 to 8 or 1 to 161
Parameter
Type
num eric (float 32)0.0 to 6.0 Vnone
Range of
Values
Returns: unsigne d 16-bit integer (uint16).
Comments • In the keyword, CALibratio nn, the valid range of n is:
1 to 8 forE1418A, E1418A Option 002
1 to 16 forE1418A Option 001, E1418A Option 003.
Values of n outside thes e ranges will generate an error.
• This command is used together with the CALibrationn:CONFigure:CURRent?
query to perform voltage mode calibration. Following the CALn:CONF:CURR?
query, this command is used repetitively until the return value indicates that the
calibration is complete.
• The <value> parameter is the measured output voltage. A minimum of
9 measurements must be taken to calibrate a channel for current mode output
(a maximu m of 50 mea sur eme nt s ma y b e required).
• This query returns one of the f ollowing values:
The DIAGnostic subsystem contains commands used to check the module
configurat i on, enable or disable al l outputs simultaneously, change a channel’s
mode without opening and closing the outp ut r elay, and check the state of the tri gger
on all channels .
Subsystem SyntaxDIAGnostic
:CALibration
:OUTPut
:CONFigure?
:OUTPut
:ALL
:SOURce
:FUNCtion
:TRIGgered?
[:MODE] <
[:MODE]?
[:STATe] <
n
:MODE <
DIAGnostic
path>
state>
mode>
DIAGnostic:CALibration:OUTPut[:MODE]
DIAGnostic:CALibration:OUTPut[:MODE] <path> sets the voltage calibratio n
path for t he module to either the CAL output t erminals or at each output channe l.
Parameters
Parameter
Name
<
path>discreteCALBus or CHANnelnone
Comments • The typical calibration mode for the module is through the CAL out put t erminals.
Following
output terminals (and this command is not needed).
• This command with the CHANnel parameter, sets calibration to be performed at
each channel’s output terminals (and so in cludes the channel out put r e la y
contacts).
• This command must b e s ent b efore any CA Li brati onn:CONFigure:VOLTage? or
CALibrationn: CONFigure:CURRent? query.
• *RST State: Calibration paths set to use the CAL output terminals.
*RST or power-on, the default calibration mod e is through the CAL
DIAGnostic:OUTPut:ALL[:STATe] <state> opens or closes all channel output
relays at once.
Parameters
Parameter
Name
<
state>booleanOFF | ON | 0 | 10
Parameter
Type
Comments • This command performs the same function as the OUTPutn[:STATe] command,
but enabl es or disables all out puts simu ltane ous ly.
• Related Commands: OUTPutn[:STATe]
DIAGnostic:SOURcen:FUNCtion:MODE
DIAGnostic:SOURcen:FUNCtion:MODE <mode> changes the output mode of the
channel without disabling the channel output.
Parameters
Parameter
Name
SOURce
<
nkeyword1 to 8 or 1 to 161
mode>
Comments • In the keyword, SOURcen, the valid range of n is:
1 to 8 forE1418A, E1418A Option 002
1 to 16 forE1418A Option 001, E1418A Option 003.
Values of n outside thes e ranges will generate an error.
Parameter
Type
discreteCURRent or VOLTagenone
Range of
Values
Range of
Values
Default
Default
• Use this command with caution. The output voltage or current is not
predictable during the mode change and transients will occur.
• This command performs the same function as the SOURcen:FUNCtion:MODE
command, but does not disable the output during the mode c hange. This
command can reduce the settling time required to disable and enable the outputs.
• Following a mode change with this command, the appropriate calibration constants
are used, the channel mode is changed, and the output is set to either 0 V or 0 A.
• This command will generate an error if the trigger system is waiting for a trigger
event when this command is received.
• This command is affected by the state of the P/J jumper on the terminal module.
If the P/J jumper is not set to Program Selectable, this command will generate an
error. This jumper is described on page 31.
Comments • This query returns a 16-bit word indicatin g the trigger status of each chann el.
– A bit is set to 0 to indicate the channel is not waiting for a trigger.
– A bit is set to 1 to indicate the channel is in the wait-for-trigger state.
– Bits 0–15 correspond to channels 1–16, respectively.
The OUTPut subsystem pro vides c omma nds to open or close the output relay on
each channel and to enable the module to output the selected trigger source on one
of the VXIbus TTL trigger lines.
Subsystem SyntaxOUTPut
:TTLTrg
OUTPut
[:STATe] <state>
[:STATe]?
OUTPut:TTLTrgn[:STATe]
OUTPut
OUTPut
n
[:STATe] <state>
[:STATe]?
n
OUTPut:TTLTrgn[:STATe] <state> specifies which VXIbus TTLTRG line is
enabled to source a VXIbus trigger when the module is triggered.
Parameters
Parameter
Name
TTLTrg
nkeyword0 to 7none
<
state>
Parameter
Type
booleanOFF | ON | 0 | 10
Range of
Values
Default
Comments • VXIbus TTLTRG l ines ar e numb ered from 0 to 7. Only o ne lin e can be enabled
at a time.
• If a different line is already enabled when this command is received, a settings
conflict error is rep ort ed.
• This command sources a trigger from the module. The TRIGger:SOURce TTLTn
command programs the module to accept triggers from the VXIbus TTLTRG
lines. The module can be programmed to both accept and source triggers on the
VXIbus TTLTRG lines but the source TTLTRG line and the accepted TTLTRG
line must be dif ferent.
• This command should be sent before the TRIGger:SOURce TTLTn command.
• *RST Condition: All lines d isa bled.
• Related Commands:TRIGger:SOURce TTLTn, OUTPut:TTLTn[:STATe]?
SOURcen:CURRent[:LEVel]:TRIGgered[:AMPLitude] <value | MIN | MAX | DEF>
outputs the current set in value at chann el n when the trigger conditions are satisfied and
the output relay is closed. Use this co mmand to synchronize multiple cha nn el outputs.
Parameters
SOURce
Parameter
Name
SOURce
<
value>
nkeyword1 to 8 or 1 to 161
Parameter
Type
numeric (float 32) or
discrete
-0.02 Am ps to +0. 02 Amps or
MIN | MAX | DEF
Comments • In the keyword, SOURcen, the valid range of n is:
1 to 8 forE1418A, E1418A Option 002
1 to 16 forE1418A Option 001, E1418A Option 003.
Values of n outside thes e ranges will generate an error.
• The <value> parameter is a floating point 32-bit number in the range of -0.02 A
to +0.02 A.
MIN sets -0.02 Am ps.
MAX sets +0.0 2 A m p s.
DEF sets 0 Amps.
• This command sets chann el n to outp ut t he current specifi ed fol lowing a valid
trigger condition. F o llowing this command, the trigger system must be ena b led
using an
for additional information.
INITiate command. See the TRIGger subs ystem discus sion on page 54
Range of
Values
Default
0
• If the module is in a wait-for-trigger state (INIT has been r e cei ve d) when th is
command is received, an error is generat ed.
• The output stat e of the channel must be enabled and the trigger event satisfied for
the current to appear at the output terminals.
• If the channel is in the v oltage mode when this command is received, an error is
generated.
• Related Commands: SOURcen:CURRent[:LEVel]:TRIGgered[:AMPLitude]?,
SOURcen:VOLTage[:LEVel]:TRIGgered[:AMPLitude] <value | MIN | MAX | DEF>
outputs the voltage set in value at chan n el n when the trigger conditions are satisfied
and the channel output relay is closed. Use this co mmand to synchronize multiple
channel outputs.
Parameters
SOURce
Parameter
Name
SOURce
<
value>
nkeyword1 to 8 or 1 to 161
Parameter
Type
numeric (float 32) or
discrete
-16 V to +16 V or
MIN | MAX | DEF
Comments • In the keyword, SOURcen, the valid range of n is:
1 to 8 forE1418A, E1418A Option 002
1 to 16 forE1418A Option 001, E1418A Option 003.
Values of n outside thes e ranges will generate an error.
• The <value> parameter is a floating point 32-bit number in the range of -16 Volts
to +16 Volts.
MIN sets -16 Volts.
MAX sets +16 Vo lts.
DEF sets 0 Volts.
• This command sets chann el n to output the voltage specifi ed following a valid
trigger condition. F o llowing this command, the trigger system must be ena b led
using an
additional information.
INITiate command. See the TRIGger subs ystem discussion, page 54, for
Range of
Values
Default
0
• The channel output relay must be closed f or the voltage to appear at the output
terminals.
• If the module is in a wait-for-trigger state (INIT has been r e cei ve d) when th is
command is received, an error is generat ed.
• If the channel is in the current mode when this command is rec eived, an error is
generated.
• Related Commands: SOURcen:VOLTage[:LEVel]:TRIGgered[:AMPLitude]?,
The STATus subsyst em c ontrols the SCPI-defined Op erat ion and Q uestionable
Status Registers and the Standard Event Register. Each is comprised of a Condition
Register, an Event Register, and an Enable mask. The SCPI Status System is shown
in the figure below.
STATus:QUEStionable:CONDition? returns the value of the Questionabl e Status
Condition Reg ister. Reading the register does not affect its contents. Since only
two bits are used in the HP E1418A and both those bits are defined to be events, this
command always returns
Parameters Returns: 16-bit signed integer (int16).
Comments • Bit 8 of this register (decimal 256) indicates the calibration condition. Bit 9 of
this register (decimal 512) indicates the trigger-ignored ev ent.
• *RST Condition: clears all conditions.
• *CLS and STATus:PRESet do not affect bits in the Questionable Status Condition
Register.
STATus:QUEStionable:ENABle
0 and is included for compatibility purposes.
STATus:QUEStionable:ENABle <mask> sp ec ifies which bits of th e Questionable
Event Reg ister are OR’d together to create the Questionable Data bit (bit 3) in the
Sta tus Byte Sum mary Reg i ster.
Parameters
Parameter
Name
<
mask>
Parameter
Type
nu mer ic (int16) or
non-decimal numeric
Range of
Values
-32768 to +32767 or #H0000 to #HFFFFnone
Default
Comme nt s • Only bits 8 and 9 of the Questionable Data Register are used or defined. Bit 8
indicates a qu estionab le calibration and bit 9 indicat es a trig ger was ign ored.
• Either bit 8 or bit 9 ca n be used to generate an SRQ interrupt. Use the *SRE <mask>
common command to set the enable mask for the Status Byte Register to include the
Questionable Data bit (bit 3 ) in the Requ est for Service bit ( b it 6 ) . The reques t for
Service bit (bit 6) is used to generate the SRQ interrupt.
• The non-decimal numeric forms are the #H, #Q, or #B formats specified by
IEEE-488.2.
• *RST clears all conditions.
• *CLS and STATus:PRESet do not affect bits in the Questionable Status Condition