Keithley Instruments, Inc. warrants this product to be free from defects in material and workmanship for a period of
1 year from date of shipment.
Keithley Instruments, Inc. warrants the following items for 90 days from the date of shipment: probes, cables,
rechargeable batteries, diskettes, and documentation.
During the warranty period, we will, at our option, either repair or replace any product that proves to be defective.
To exercise this warranty, write or call your local Keithley representative, or contact Keithley headquarters in
Cleveland, Ohio. You will be given prompt assistance and return instructions. Send the product, transportation prepaid, to the indicated service facility. Repairs will be made and the product returned, transportation prepaid.
Repaired or replaced products are warranted for the balance of the original warranty period, or at least 90 days.
LIMITATION OF WARRANTY
This warranty does not apply to defects resulting from product modification without Keithley’s express written
consent, or misuse of any product or part. This warranty also does not apply to fuses, software, non-rechargeable
batteries, damage from battery leakage, or problems arising from normal wear or failure to follow instructions.
THIS WARRANTY IS IN LIEU OF ALL OTHER WARRANTIES, EXPRESSED OR IMPLIED, INCLUDING
ANY IMPLIED WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR USE. THE
REMEDIES PROVIDED HEREIN ARE BUYER’S SOLE AND EXCLUSIVE REMEDIES.
NEITHER KEITHLEY INSTRUMENTS, INC. NOR ANY OF ITS EMPLOYEES SHALL BE LIABLE FOR
ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF
THE USE OF ITS INSTRUMENTS AND SOFTWARE EVEN IF KEITHLEY INSTRUMENTS, INC., HAS
BEEN ADVISED IN ADVANCE OF THE POSSIBILITY OF SUCH DAMAGES. SUCH EXCLUDED DAMAGES SHALL INCLUDE, BUT ARE NOT LIMITED TO: COSTS OF REMOVAL AND INSTALLATION,
LOSSES SUSTAINED AS THE RESULT OF INJURY TO ANY PERSON, OR DAMAGE TO PROPERTY.
Keithley Instruments, Inc.
CHINA:Keithley Instruments China
FRANCE:Keithley Instruments SARL
GERMANY:Keithley Instruments GmbH
GREAT BRITAIN:Keithley Instruments, Ltd.
ITALY:Keithley Instruments SRL
NETHERLANDS:Keithley Instruments BV
SWITZERLAND:Keithley Instruments SA
TAIWAN:Keithley Instruments Taiwan
The print history shown below lists the printing dates of all Revisions and Addenda created
for this manual. The Revision Level letter increases alphabetically as the manual undergoes subsequent updates. Addenda, which are released between Revisions, contain important change information that the user should incorporate immediately into the manual. Addenda are numbered
sequentially. When a new Revision is created, all Addenda associated with the previous Revision
of the manual are incorporated into the new Revision of the manual. Each new Revision includes
a revised copy of this print history page.
Revision A (Document Number 2304A-900-01) ......................................................... January 1998
Revision B (Document Number 2304A-900-01) ...........................................................March 1999
All Keithley product names are trademarks or registered trademarks of Keithley Instruments, Inc.
Other brand names are trademarks or registered trademarks of their respective holders.
Safety Precautions
The following safety precautions should be observed before using this product and any associated instrumentation. Although some instruments and accessories would normally be used with non-hazardous voltages, there
are situations where hazardous conditions may be present.
This product is intended for use by qualified personnel who recognize shock hazards and are familiar with the
safety precautions required to avoid possible injury. Read the operating information carefully before using the
product.
The types of product users are:
Responsible body
that the equipment is operated within its specifications and operating limits, and for ensuring that operators are
adequately trained.
Operators
proper use of the instrument. They must be protected from electric shock and contact with hazardous live circuits.
Maintenance personnel
the line voltage or replacing consumable materials. Maintenance procedures are described in the manual. The
procedures explicitly state if the operator may perform them. Otherwise, they should be performed only by service personnel.
Service personnel
Only properly trained service personnel may perform installation and service procedures.
Exercise extreme caution when a shock hazard is present. Lethal voltage may be present on cable connector
jacks or test fixtures. The American National Standards Institute (ANSI) states that a shock hazard exists when
voltage levels greater than 30V RMS, 42.4V peak, or 60VDC are present.
that hazardous voltage is present in any unknown circuit before measuring.
Users of this product must be protected from electric shock at all times. The responsible body must ensure that
users are prevented access and/or insulated from every connection point. In some cases, connections must be
exposed to potential human contact. Product users in these circumstances must be trained to protect themselves
from the risk of electric shock. If the circuit is capable of operating at or above 1000 volts,
of the circuit may be exposed.
As described in the International Electrotechnical Commission (IEC) Standard IEC 664, digital multimeter
measuring circuits (e.g., Keithley Models 175A, 199, 2000, 2001, 2002, and 2010) are Installation Category II.
All other instruments’ signal terminals are Installation Category I and must not be connected to mains.
Do not connect switching cards directly to unlimited power circuits. They are intended to be used with impedance limited sources. NEVER connect switching cards directly to AC mains. When connecting sources to
switching cards, install protective devices to limit fault current and voltage to the card.
Before operating an instrument, make sure the line cord is connected to a properly grounded power receptacle.
Inspect the connecting cables, test leads, and jumpers for possible wear, cracks, or breaks before each use.
For maximum safety, do not touch the product, test cables, or any other instruments while power is applied to
the circuit under test. ALWAYS remove power from the entire test system and discharge any capacitors before:
connecting or disconnecting cables or jumpers, installing or removing switching cards, or making internal
changes, such as installing or removing jumpers.
is the individual or group responsible for the use and maintenance of equipment, for ensuring
use the product for its intended function. They must be trained in electrical safety procedures and
are trained to work on live circuits, and perform safe installations and repairs of products.
perform routine procedures on the product to keep it operating, for example, setting
A good safety practice is to expect
no conductive part
Do not touch any object that could provide a current path to the common side of the circuit under test or power
line (earth) ground. Always make measurements with dry hands while standing on a dry, insulated surface capable of withstanding the voltage being measured.
The instrument and accessories must be used in accordance with its specifications and operating instructions or
the safety of the equipment may be impaired.
Do not exceed the maximum signal levels of the instruments and accessories, as defined in the specifications
and operating information, and as shown on the instrument or test fixture panels, or switching card.
When fuses are used in a product, replace with same type and rating for continued protection against fire hazard.
Chassis connections must only be used as shield connections for measuring circuits, NOT as safety earth ground
connections.
If you are using a test fixture, keep the lid closed while power is applied to the device under test. Safe operation
requires the use of a lid interlock.
If a screw is present, connect it to safety earth ground using the wire recommended in the user documentation.
!
The symbol on an instrument indicates that the user should refer to the operating instructions located in
the manual.
The symbol on an instrument shows that it can source or measure 1000 volts or more, including the combined effect of normal and common mode voltages. Use standard safety precautions to avoid personal contact
with these voltages.
The
WARNING
read the associated information very carefully before performing the indicated procedure.
The
CAUTION
invalidate the warranty.
heading in a manual explains dangers that might result in personal injury or death. Always
heading in a manual explains hazards that could damage the instrument. Such damage may
Instrumentation and accessories shall not be connected to humans.
Before performing any maintenance, disconnect the line cord and all test cables.
To maintain protection from electric shock and fire, replacement components in mains circuits, including the
power transformer, test leads, and input jacks, must be purchased from Keithley Instruments. Standard fuses,
with applicable national safety approvals, may be used if the rating and type are the same. Other components
that are not safety related may be purchased from other suppliers as long as they are equivalent to the original
component. (Note that selected parts should be purchased only through Keithley Instruments to maintain accuracy and functionality of the product.) If you are unsure about the applicability of a replacement component,
call a Keithley Instruments office for information.
To clean an instrument, use a damp cloth or mild, water based cleaner. Clean the exterior of the instrument only.
Do not apply cleaner directly to the instrument or allow liquids to enter or spill on the instrument. Products that
consist of a circuit board with no case or chassis (e.g., data acquisition board for installation into a computer)
should never require cleaning if handled according to instructions. If the board becomes contaminated and operation is affected, the board should be returned to the factory for proper cleaning/servicing.
This section contains general information about the Model 2304A High Speed Power
Supply. If you have any questions after reviewing this information, please contact your local
Keithley representative or call one of our Applications Engineers at 1-800-3735 (U.S. and
Canada only). Worldwide phone numbers are listed at the front of this manual.
Warranty information
Warranty information is located at the front of this manual. Should your Model 2304A
require warranty service, contact the Keithley representative or authorized repair facility in
your area for further information. When returning the instrument for repair, be sure to fill out
and include the service form at the back of this manual to provide the repair facility with the
necessary information.
Manual addenda
Any improvements or changes concerning the instrument or manual will be explained in an
addendum included with the manual. Be sure to note these changes and incorporate them into
the manual.
Safety symbols and terms
Keithley uses a standard set of safety symbols and terms that may be found on an instrument
or in its manual.
!
The symbol on an instrument indicates that the user should refer to the operating
instructions located in the manual.
The symbol on an instrument shows that high voltage may be present on the terminal(s). Use standard safety precautions to avoid personal contact with these voltages.
The
WARNING
injury or death. Always read the associated information very carefully before performing the
indicated procedure.
The
CAUTION
ment. Such damage may invalidate the warranty.
heading used in a manual explains dangers that might result in personal
heading used in a manual explains hazards that could damage the instru-
Specifications
Full Model 2304A specifications can be found in Appendix A of this manual.
Inspection
The Model 2304A was carefully inspected electrically and mechanically before shipment.
After unpacking all items from the shipping carton, check for any obvious signs of physical
damage that may have occurred during transit. (Note: There may be a protective film over the
display lens, which can be removed.) Report any damage to the shipping agent immediately.
Save the original packing carton for possible future shipment. The following items are included
with every Model 2304A order:
•Model 2304A High Speed Power Supply with line cord
•Quick Disconnect Output/DVM Input Connector
•Accessories as ordered
•Certificate of calibration
•Model 2304A User’s Manual (P/N 2304A-900-00)
•Model 2304 Calibration Manual (P/N 2304-902-00)
General Information1-3
If an additional manual is required, order the appropriate manual package. The manual package includes a manual and any pertinent addenda.
2
Front Panel Operation
2-2Front Panel Operation
WARNING:NO INTERNAL OPERATOR SERVICABLE PARTS,SERVICE BY QUALIFIED PERSONNEL ONLY.
WARNING:NO INTERNAL OPERATOR SERVICABLE PARTS,SERVICE BY QUALIFIED PERSONNEL ONLY.
CAUTION:FOR CONTINUED PROTECTION AGAINST FIRE HAZARD,REPLACE FUSE WITH SAME TYPE AND RATING.
CAUTION:FOR CONTINUED PROTECTION AGAINST FIRE HAZARD,REPLACE FUSE WITH SAME TYPE AND RATING.
Fi
1
M
Power supply overview
The Model 2304A High Speed Power Supply (shown in Figure 2-1) can output up to +20V
(1mV resolution) at up to 5A. Voltage can be set in 1mV steps, and current limit can be set in
100µA steps. Maximum power output is 100W. The power supply can also be used to sink current (up to 3A). As a sink (current polarity is negative), the power supply is dissipating power
rather than sourcing it. (See “Sink operation” for details.)
gure 2-
odel 2304A high
speed power supply
POWER
A) Front Panel
2304A HIGH SPEED POWER SUPPLY 0-20V/0-5A
DISPLAY
ISOLATION FROM EARTH:
22 VOLTS MAX.
+++
SOURCE SENSE
OUTPUT
0-20V, 0-5A
____
DVM IN
SOURCE
LOCAL
MENU
ENTER
LINE FUSE
SLOWBLOW
2.5A, 250V
LINE RATING
100-240VAC
50, 60 HZ
+
185VA MAX
OPERATE
SET
RELAY
CONTROL
15VDC MAX
MADE IN
U.S.A.
B) Rear Panel
IEEE-488
(CHANGE IEEE ADDRESS
WITH FRONT PANEL MENU)
REMOTE
DISPLAY
OPTION
Fi
gure 2-
2
Simplified power
supply diagram
Front Panel Operation2-3
A simplified diagram of the Model 2304A is shown in Figure 2-2. Note that it can read back
the output voltage (V
) and current (I
meter
). Display resolution for voltage readback is 1mV.
meter
There are two ranges for current readback: 5A and 5mA. On the 5A range, display resolution is
100
µ
A, and on the 5mA range, resolution is 0.1µA.
The Model 2304A also has a digital voltmeter (DVM) that is independent of the power sup-
ply circuit. The DVM can measure up to +20V (1mV resolution).
When used with a pulsed load, the Model 2304A can read back peak current, idle current,
and average current. See “Pulse-current measurements” for details. A long integration (up to 60
seconds) function is provided to measure average current of a low frequency pulse (long
period) or a series of pulses. See “Long integration current measurements” for details.
I meter
+
Source
V-Source
with I-Limit
V meter
_
+
DVM
Digital
Voltmeter
_
2-4Front Panel Operation
Power-up
Line power connection
The Model 2304A operates from a line voltage in the range of 100 to 240V at a frequency of
50 or 60Hz. Line voltage and frequency are automatically sensed, therefore there are no
switches to set. Check to see that the line power in your area is compatible.
Perform the following steps to connect the power supply to the line power and turn it on:
1.Before plugging in the power cord, make sure the front panel power switch is in the off
(0) position.
2.Connect the female end of the supplied power cord to the AC receptacle on the rear
panel.
WARNING
3.Turn on the power supply by pressing the front panel power switch to the on (1)
position.
The power cord supplied with the Model 2304A contains a separate
ground for use with grounded outlets. When proper connections are made,
instrument chassis is connected to power line ground through the ground
wire in the power cord. Failure to use a grounded outlet may result in personal injury or death due to electric shock.
Fuse replacement
A rear panel fuse protects the power line input of the power supply. If the line fuse needs to
be replaced, perform the following steps:
1.The fuse is located in a drawer below the AC receptacle (see Figure 2-1B). At the top of
the fuse drawer is a small tab. At this location, use a thin-bladed knife or screwdriver to
pry the fuse drawer open.
2.Slide the fuse drawer out to gain access to the fuse. Note that the fuse drawer does not
pull all the way out of the power module.
3.Snap the fuse out of the drawer and replace it with the same type (250V, 2.5A,
5
×
20mm slo-blo). The Keithley part number is FU-106-2.5.
Front Panel Operation2-5
CAUTION
4.Push the fuse drawer back into the power module.
For continued protection against fire or instrument damage, only replace
the fuse with the type and rating listed. If the instrument repeatedly blows
fuses, locate and correct the cause of the problem before replacing the fuse.
Power-up sequence
On power-up, the Model 2304A performs self-tests on its EPROM and RAM.
NOTE
output off.
If a problem develops while the instrument is under warranty, return it to Keithley
Instruments Inc., for repair.
If the instrument passes the self-tests, the following information is briefly displayed:
•
Top line
factory, the address is set to 16.
Bottom line
•
play board. Also displayed is the detected line frequency.
After the power-up sequence, the instrument goes to Actual V and I display type with the
— The model number (2304A) and the IEEE-488 address is displayed. At the
— Firmware revision levels are displayed for the main board and the dis-
2-6Front Panel Operation
Default settings
The power supply can be set to power-on to the factory default conditions (RST defaults) or
to user-saved setup conditions. The factory default conditions are listed in Table 2-1.
The user can save up to five setups in memory (SAV0, SAV1, SAV2, SAV3, and SAV4). A
setup can be saved in memory using the SAVE SETUP item of the MENU. The POWER ON
SETUP item of the MENU is used to specify the power-on setup (RST or one of the user-saved
setups).
The power supply can be returned to the RST or a user-saved default setup at any time by
using the RECALL SETUP item of the MENU.
Table 2-1
Factory defaults (RST)
SettingRST default
Output value settings:
Voltage (V)0.000V
Current (A)0.2500A
OperateOff
Display typeActual V and I
GPIB addressNo effect (factory set to 16)
Current range5 amps
Integration rate1.00 PLC
Average readings 1
Power on setupNo effect (factory set to 16)
Current limit modeLim
Output relay 1No effect (after power cycle, set to zero)
Output relay 2No effect (after power cycle, set to zero)
Output responseNormal
Pulse current:
High time33µsec
Low time33µsec
Average time33µsec
Average readings1
Trigger delay0.00000 sec
Trigger level0.000A
Long integration:
Integration time1 second
Pulse timeout16 seconds
Trigger edgeRising
Trigger level0.000A
Display types
For voltage and current readings, there are four display types. They are described as follows:
•
•
•
•
A display type is selected as follows:
Front Panel Operation2-7
ACTUAL V AND I
and current. The power supply goes to this display type on power-up.
DVM INPUT
of the power supply.
PULSE CURRENT
measurements.
LONG INTEGRATION
of a pulse or pulses using the long integration method.
— This display type is used to read back the actual output voltage
— This type is used to display the DC voltage applied to the DVM input
— This type is used to display high, low, or average pulse-current
— This type is used to display average current measurements
1.Press the DISPLAY key and use the
V AND I, DVM INPUT, PULSE CURRENT, or LONG INTEGRATION.
2.With the desired type displayed, press ENTER. Note that after selecting PULSE CURRENT, use the
low, or pulse average. Examples of the display types are shown as follows:
Actual V and I: 6.116VNLON
DVM input:DVM INPUTNLON
Pulse current:PULSE HI NLON
Long integration: LONG INTNLON
NOTES
“NL” indicates that the normal output response is selected. With the enhanced output response selected, “EN” is displayed. See “Enhanced output response” for
details.
“ON” indicates that the output is turned on. With the output turned off, “OFF” is
displayed.
For the pulse current and Long Integration display types, “NO PULSE” is displayed
if the output is off or pulses are not detected (output on). See “Pulse-current measurements” and “Long integration current measurements” for details.
When a change is made that effects the readings being taken, dashes are displayed
instead of readings. The dashes remain until a valid reading for the new condition is
taken.
or key to select the desired pulse measurement: pulse high, pulse
1.2058A
4.993V
2.1947A
PULSE LO NLON
0.2147A
PULSE AVGNLON
1.1495A
1.0236A
or key to display the desired type; ACTUAL
2-8Front Panel Operation
Fi
3
Remote display option
If the Model 2304A must be mounted in a location where the display is not readily visible or
the controls are not easily accessible, the optional Model 2304-DISP Display Module can be
used. This display module includes all instrument controls and has a nine foot cable so the
power supply can be operated remotely from a more convenient location.
The remote display module plugs into the rear panel connector labeled “REMOTE DISPLAY OPTION” (Figure 2-1B). When plugged in, the main display module is disabled with
the following message displayed:
R
EMOTE PANEL
When the remote display module is unplugged, control returns to the main display module.
ENABLED
Test connections
gure 2-
Typical connections
WARNING
Test connections to the power supply are made at the rear panel using a quick disconnect
OUTPUT/DVM IN connector. (Figure 2-1B shows where the connector plugs in.) Use up to
#14 AWG wire for the screw terminals of the connector. Once the connector is wired up, plug it
into the rear panel and tighten the captive retaining screws.
Figure 2-3 shows typical power supply connections to the DUT.
DVM
Input
Output
When installing a unit into a test system, make sure the external power
sources do not apply voltage to the Model 2304A in excess of its maximum
limits (see specifications). Failure to do so could result in personal injury or
death.
External
Quick
Disconnect
Connector
DVM +
DVM -
Source -
Source -
Sense -
Sense +
Source +
Source +
Test
Circuitry
+
_
DUT
Setting voltage and current values
Output voltage can be set from 0 to 20V, and there are three range selections for current (5
AMPS, 5 MILLIAMPS, and AUTO). The maximum current limit setting for the 5 AMPS and
AUTO ranges is 5A. The maximum limit for the 5 MILLIAMPS range is 1A.
The current limit setting for the 5 AMPS and AUTO ranges is “remembered” by that range.
For example, assume the current limit setting on the 5 AMPS range is 3A. Selecting the 5
MILLIAMPS range defaults the current limit setting to 1A since that is the maximum
allowable setting on that range. Toggling back to the 5 AMPS range reinstates the 3A limit. If
the current limit value on the 5 AMPS range is set to
range will be the same.
When the current limit is reached, the power supply can be set to either turn off (trip) or
remain on. If set to remain on, the power supply output current will not exceed the set current
limit value. See “Current limit” for details.
Procedure to edit voltage and current values
The following procedure assumes that the appropriate current range is already selected.
Remember, the maximum current limit setting on the 5 MILLIAMPS range is 1A.
Front Panel Operation2-9
≤
1A, the limit on the 5 MILLIAMPS
Editing keys
are used to set values. Cursor position (blinking digit) is controlled by the
the cursor positioned on a digit, increment or decrement the value using the
Perform the following steps to edit voltage and current values:
NOTE
1.Press the SET key to select the Output Settings Mode. A blinking cursor appears in the
voltage field of the display.
2.Use the
The blinking cursor moves to the current field of the display.
3.Use the
from the Output Settings Mode or front panel menu.
— Once in the Output Settings Mode, the four editing keys (, , ,
and
keys. With
and keys.
When in the enhanced output response mode, the maximum output voltage setting is
15V. See “Enhanced output response” for details.
, ,
, ,
,
and
keys to key in the desired output voltage value and press SET.
,
and
keys to key in the desired current limit and press SET to exit
and
)
2-10Front Panel Operation
Editing shortcuts
With the Output OFF, the following editing shortcuts can be used:
•Output voltage can be quickly set to the maximum value by incrementing the tens digit
(MSD). Note that if the tens digit is zero, it is not displayed. Place the cursor to the left
of the units digit.
•Output voltage can be quickly set to zero (0.000 V) by decrementing the first leading
zero of the reading. If there is no leading zero, decrement the tens digit.
•Current limit on the 5A range can be quickly set to its maximum value by incrementing
the units digit (MSD).
•Current limit on either range (5A or 5mA) can be quickly set to the minimum value
(0.0001A) by decrementing the first leading zero of the reading. If there is no leading
zero, decrement the units digit.
Editing restrictions
With the Output ON, the following editing restrictions are in effect:
•You cannot increment a digit that would display a value that exceeds the maximum. For
example, for the value 19.200V, you cannot increment the “1” or the “9” since the
resultant value would exceed 20.000V.
•When decrementing a digit, only that digit and digits to the left are affected. The digits
to the right of the cursor are not changed.
OPERATE
NOTES
• The SET key is active in any front panel menu or display mode. If not already in
the Output Settings Mode, the SET key will select it.
•The V and I DACs are updated in real time. Therefore, if the output is on, the
output is updated immediately when a value is altered.
•After pressing SET to exit the Output Settings Mode, the instrument returns to
the previous display mode or front panel menu.
The OPERATE key is used to control the output of the power supply. This key toggles the
output between on and off. While in one of the display modes, output ON or OFF is displayed
in the upper right corner of the display. The key is active in any front panel menu or display
mode. In menus, the state is not displayed.
Output readback
With the ACTUAL V AND I display type selected (see “Display types”) and in the Readback Mode, the actual output voltage and current are measured and displayed. The Readback
Mode is selected if there is no blinking cursor in the display. If in the Output Settings Mode
(blinking cursor), keep pressing SET until the display returns to the Readback Mode.
There are three range selections for current readback: 5A, 5mA, or AUTO. With AUTO
selected, the instrument automatically goes to the most sensitive range to perform the measurement. Range selection is performed from the CURRENT RANGE item of the MENU (see
“MENU”).
The voltage and current readings that are displayed are controlled by the integration rate and
the specified average readings count. In general, the integration rate defines the measurement
speed of the instrument, and the average readings count specifies how many measurements are
performed and averaged for each displayed reading. These aspects of operation are selected
from the INTEGRATION RATE and AVERAGE READINGS items of the MENU. (See
“MENU” for details.)
Current limit
Front Panel Operation2-11
If the current limit is reached, the output will either turn off (trip) or stay on. The current
limit mode (TRIP or LIM) is selected from the “CURRENT LIM MODE” item of the MENU.
(See “MENU” for details.)
LIM mode
is reached. The “LIM” message will appear on the lower line of the display, after the current
reading indicator (A or mA). The message will clear when the limit condition is cleared.
The power supply can be taken out of current limit by decreasing the output voltage or
increasing the current limit value. Note that increasing the current limit may compromise protection for the DUT.
While in current limit, the power supply is operating as a constant-current source. As long as
the limit condition exists, the power supply output current will remain constant. Note that the
output voltage is probably less than the programmed value when sourcing current, and probably greater than the programmed value when sinking current.
TRIP mode
is reached. The “TRIP” message will appear on the lower line of the display, after the current
reading indicator (A or mA). The message will clear when the output is turned back on, assuming it does not trip again due to a current limit condition.
— With the LIM mode selected, the output will remain on when the current limit
— With the TRIP mode selected, the output will turn off when the current limit
2-12Front Panel Operation
Enhanced output response
The power supply has an enhanced output response mode to improve transient response to
load changes. It improves transient recovery time and reduces the transient voltage drop. See
Appendix A, “Specifications, Transient response 1000% load change,” for details.
With enhanced output response selected, maximum output voltage is reduced to 15V. When
operating as a sink, maximum power with the enhanced output response mode selected is 15W.
The normal response mode is the RST default condition. Output response is checked or
changed from the OUTPUT RESPONSE item of the MENU. Note that the output response
mode cannot be changed while the output is on or the output voltage setting exceeds that
response type limitation.
NOTEWhen displaying readings, the output response mode is also displayed. For the nor-
mal response mode, “NL” is displayed. For the enhanced response mode, “EL” is
displayed.
Independent voltage measurements (DVM)
The Model 2304A has an independent digital voltmeter (DVM) that can measure up to
+20VDC. Connections for the DVM are shown in Figure 2-3. The DVM INPUT display type
must be selected to use the DVM. (See “Display types.”)
Pulse-current measurements
The Model 2304A can perform current measurements for pulsing loads. The built-in measurements include:
•Peak measured current — measures the peak (high) current of the pulse train.
•Idle measured current — measures the idle (low) current of the pulse train.
•Average transmit current — measures the average current of the pulse train.
The high, low, and average measurements of a pulse are illustrated in Figure 2-4. The high
measurement is triggered on the rising edge of the pulse, and an integration is performed while
the pulse is high for the time specified for the high measurement. The falling edge of the pulse
triggers the low measurement, and an integration is performed for the time specified for the low
measurement. An average measurement is triggered on the rising edge, and the integration covers both the high and low periods of the pulse as specified by the average measurement time
settings.
NOTEAnother measurement of pulse currents, digitization, is available over the bus. Refer
to the :SENS:PCUR:SYNC:STAT command in Section 4 for details.
Front Panel Operation2-13
Fi
4
P
Trigger level — To avoid false pulse detection, you can use a trigger level of up to 5A. All
pulses, noise, or other transients that are less than the set trigger level will be ignored.
Trigger delay — When a pulse is detected, there is a 25µsec code execution delay before the
integration period begins. An additional trigger delay can be used to allow leading edge pulse
overshoot to settle. The integration period will not start until the trigger delay period expires.
Note that a large trigger delay will slow down power supply operation.
Integration times — The three integration time periods for pulse measurements can be set
automatically or manually by the user. When the PULSE AUTO TIME operation is performed,
the instrument measures the high and low periods of the detected pulse and sets appropriate
integration times. The three integration times apply for all subsequent pulse measurements
until another PULSE AUTO TIME is performed or the times are changed manually. The
PULSE AUTO TIME feature can detect pulses in the 80µsec to 833msec range.
You can manually set the PULSE HIGH TIME, PULSE LOW TIME, and PULSE AVG
TIME. In general, the longer the integration period, the more accurate the measurement. However, you must make sure that an integration period does not extend into the wrong portion of
the pulse or into the next pulse. For example, if the pulse is high for 600µsec, the high integra-
tion time must be less than 600µsec. If not, you will integrate a low portion of the pulse, and
the high pulse measurement will therefore be erroneous. Be sure to factor in trigger delay when
determining integration times.
Average readings count — The average readings count specifies how many measurements
(integrations) are performed and averaged for each displayed reading. For example, assume
that the pulse average readings count is 10 and you are measuring PULSE HIGH. Each displayed reading will reflect the average of 10 peak pulse measurements.
gure 2-
ulse-current
measurement
HighLow
Average
High and average measurement triggered on leading edge of pulse
Low measurement triggered on falling edge of pulse
2-14Front Panel Operation
Pulse current digitization
The following discussion explains how to digitize a current waveform. A programming
example at the end of this section demonstrates proper command sequence for pulse current
digitization.
With pulse current digitization selected, readings are taken at a constant integration time of
33µsec across the pulse or pulse train. The message “DIGITIZE” is displayed instead of readings. Pulse current digitization is selected by disabling trigger synchronization:
SENS:PCUR:SYNC <b>
<b> = OFF Select pulse current digitization (trigger synchronization disabled).
The commands to set the trigger level and trigger delay for pulse current measurements also
apply for pulse current digitization. However, the trigger delay can be set for up to five seconds.
SENS:PCUR:SYNC:DEL <NRf>
<NRf> = 0 to 5Trigger digitization delay in seconds (10µsec steps).
Note that the “NO PULSE” message will be displayed if the pulse is not detected.
When the pulse is detected, the digitization process syncs up to the edge specified by the
following command:
= ON Select pulse current measurements (trigger synchronization enabled).
SENS:PCUR:MODE <name>
<name> = HIGH or AVERSync up to rising edge of pulse.
= LOWSync up to falling edge of pulse.
After any specified delay period expires, the instrument takes the number of readings
specified by the average count command:
SENS:PCUR:AVER <NRf>
<NRf> = 1 to 5000Digitize 1 to 5000 readings.
NOTEAlthough the integration time is 33µsec, some processing time is needed between
readings. The time between readings, including integration and processing time, is
about 278µsec.
Programming examples
Pulse current measurements
The following command sequence will return the average of 10 peak pulse current
measurements:
SENS:RANG 5' Select 5A range.
VOLT 15' Set output voltage to 15V.
CURR 0.75' Set current limit to 750mA.
OUTP ON' Turn output on.
SENS:PCUR:AVER 10' Set average count to 10.
SENS:PCUR:TIME:AUTO' Set integration times automatically.
SENS:PCUR:SYNC:TLEV 0.1' Set trigger level to 100mA.
SENS:PCUR:SYNC:DEL 50e-3' Set trigger delay to 50msec.
SENS:FUNC “PCUR”' Select pulse current function.
SENS:PCUR:SYNC ON' Enable trigger synchronization.
SENS:PCUR:MODE HIGH' Configure to measure peak pulse.
READ?' Trigger 10 measurement conversions and
Pulse current digitization
The following command sequence returns 3600 digitized readings. It will take approxi-
mately one second to perform the measurement process.
SENS:RANG 5' Select 5A range.
VOLT 15' Set output voltage to 15V.
CURR 0.75' Set current limit to 750mA.
OUTP ON' Turn output on.
SENS:PCUR:SYNC OFF' Disable trigger synchronization.
SENS:PCUR:AVER 3600' Set average count to 3600.
SENS:PCUR:SYNC:TLEV 0.1' Set trigger level to 100mA.
SENS:PCUR:SYNC:DEL 50e-3' Set trigger delay to 50msec.
SENS:FUNC “PCUR”' Select pulse current function.
READ:ARR?' Trigger and return 3600 readings.
Front Panel Operation2-15
' return the average of those 10 conversions.
2-16Front Panel Operation
Pulse-current measurement procedure
The following steps summarize the procedure to perform pulse measurements:
1.From the PULSE CURRENT item of the MENU (see “MENU” for details), set the trigger level and delay, integration times, and average readings count.
2.Set the output voltage and current limit, and press OPERATE.
3.Press the DISPLAY key and select the PULSE CURRENT display type.
4.Use the
LOW, or PULSE AVG.
NOTES If no pulses are detected, current will not be measured (i.e., -----A) and the “NO
PULSE” message will be displayed. The “NO PULSE” message is displayed with
dashes or the last valid pulse reading. Dashes are shown if the pulse-current measurement settings are not appropriate for detecting pulses. The last valid pulse reading is shown if the pulse disappears while taking background readings and no
change in pulse settings was made.
Pulses are not detected with the output off. With the output on, pulses will not be
detected if the trigger level is too low or too high. Perform the following procedure to
find an appropriate trigger level. Make sure the voltage and current settings are
appropriate for detecting pulses.
or key to display the desired pulse measurement: PULSE HIGH, PULSE
Determining correct trigger level
1.Turn on the output.
2.Select the PULSE CURRENT display type. If the trigger level is too low or too high,
the “NO PULSE” message will be displayed. If pulse-current measurements are instead
being displayed, the trigger level is valid. You can skip the rest of this procedure.
3.Go into the MENU, select PULSE CURRENT, and then TRIGGER LEVEL. (See
“MENU” for details.)
4.Change the PULSE TRIG LEVEL and press ENTER. If the trigger level is still too low
or too high, the “A/D PULSE TRIG NOT DETECTED” message will be displayed
briefly. Note that it may take a few seconds for the message to appear.
5.If the message appeared, repeat step 4 until a valid trigger level is found.
6.Use the MENU key to back out of the menu structure and display pulse-current
measurements.
Long integration current measurements
Long integration is an average measurement of one or more pulses. The integration time
period can be as long as 60 seconds. Since long integration is an average measurement, the
integration time period should be a complete period, or integral number of periods for a pulse
train.
A long integration measurement is accomplished by taking an integral number of integration
cycles during the total measurement time. An integration cycle is the line cycle period
(16.67ms for 60Hz) plus a small processing time.
The system calculates the number of integration cycles required based on the total time and
rounds down to the nearest integer. Therefore, the actual measurement time can be slightly less
than the requested measurement time by up to one line cycle time.
Long integration is a technique to extend the capabilities of the 2304A A/D circuit beyond
its maximum integration time period. The A/D can measure pulses up to 833ms. To extend this
time period for longer pulses, the long integration technique uses a filtered and sampled measurement of the waveform. This gives the 2304A the ability to measure signals with periods up
to 60 seconds.
The filtering of the waveform adds some restrictions to the types of pulses being measured.
If a pulse train has a high duty cycle, where the off time is less than 200ms, the first period of
the measured waveform will not have settled to steady state, therefore it will be an inaccurate
measurement. In all cases where the off or low time is less than 200ms, the filtered pulse will
have reached steady state in the second cycle of the waveform and, therefore, can be accurately
measured. In other words, to measure a periodic waveform with low times less than 200ms
(high duty cycle), start measurements after the first period occurs. This is not a problem for
one-shot pulses or for pulses with off times greater than 200ms.
Front Panel Operation2-17
The long integration measurement can be triggered to start on the rising or falling edge of a
detected pulse. A third option, neither edge, lets you start the long integration measurement as
soon as the Long Integration function is selected (assuming the output is on). This option does
not need a valid trigger level to generate a reading. It will perform a measurement and produce
a reading of the current even if a pulse is not present. Therefore, with NEITHER selected, the
NO PULSE message will not appear on the display.
Integration time — The integration time period can be set automatically or manually by the
user. The integration time can be as long as 60 seconds. For 60Hz power line frequency, the
minimum integration time setting is 850msec. For 50Hz power line frequency, the minimum
integration setting is 840msec.
Use AUTO TIME when you want to perform a long integration measurement of each pulse.
When the AUTO TIME operation is performed, the instrument measures the time between two
rising pulse edges and sets an appropriate integration time that will encompass the high and
low periods of the pulse. This integration time applies for all subsequent long integration measurements until another AUTO TIME is performed or the times are changed manually.
2-18Front Panel Operation
If you want the integration period to encompass two or more pulses, you will have to set the
integration time manually. However, you must make sure that the integration period does not
extend into a pulse that you do not want measured. For example, if you want a long integration
of two pulses, you must make sure that the set integration time does not extend into the third
pulse.
Trigger edge — A pulse edge can be used to trigger the start of the measurement. Either a
RISING pulse edge or a FALLING pulse edge can start the measurement. A third option is
available if you do not want measurements controlled by pulse edges. With NEITHER selected,
measurements start as soon as the Long Integration function is selected.
A pulse has to be detected before a RISING or FALLING pulse edge can trigger a long integration measurement. All pulses that are less than the specified trigger level are ignored (see
“Trigger level,” next entry). Note that pulse edges are ignored while a long integration is in process. The measurement will start immediately when the Long Integration function is selected.
No pulse detection is needed if NEITHER trigger edge is selected.
Trigger level — Before a rising or falling pulse edge can trigger the start of a long integration, the pulse must first be detected. Trigger level specifies the minimum pulse level that will
cause detection. For example, if the trigger level is set for 2A, pulses that are ≥2A will be
detected. Current pulses <2A are ignored.
Pulse timeout — PULSE TIMEOUT applies only to long integration measurements that are
configured to be triggered by rising or falling pulse edges. After the Long Integration function
is selected, the instrument searches for a pulse. If a pulse is not detected within the specified
time (pulse timeout), the “NO PULSE” message will be displayed. While the “NO PULSE”
message is displayed, the instrument continues to search for a pulse. PULSE TIMEOUT can be
set from 1.000 to 63.000 seconds.
With neither trigger edge selected, pulse timeout is not used and a pulse search is not conducted. Therefore, the “NO PULSE” message is never displayed. Measurements start as soon
as the Long Integration function is selected, even if no pulse is present. It is the responsibility
of the user to determine if a pulse was present when the measurement was made.
Long integration measurement procedure
The following steps summarize the procedure to perform long integration current
measurements:
1.From the LONG INTEGRATION item of the MENU, set integration time, pulse timeout, trigger edge, and trigger level (if appropriate).
NOTEIf you select AUTO TIME to set the integration time, a pulse timeout message
“LONG INT TRIG NOT DETECTED” may occur if step 2 is not performed. However, it will not affect the AUTO TIME operation since the instrument will continue to
search for a pulse to measure. If you prefer, you can perform the initial AUTO TIME
after step 2.
2.Set the output voltage and current limit, and press OPERATE.
3.Press the DISPLAY key and select the LONG INTEGRATION display type.
4.Observe the long integration readings on the display.
General notes
•Make sure the voltage and current settings are appropriate for detecting pulses.
•If a pulse timeout occurs (no pulses detected), current will not be measured (i.e., ----A)
and the “NO PULSE” message will be displayed. Pulses are not detected with the output off. With the output on, pulses will not be detected if the trigger level is too low or
too high. Perform the “Determining correct trigger level” procedure to find an appropriate trigger level.
•While the “NO PULSE” message is displayed, the instrument continues to search for a
pulse. The search can be terminated by pressing any front panel key. The “NOT TRIG”
message replaces the “NO PULSE” message. To restart the search, press any arrow key
while displaying long integration readings. The timeout or pulse detection will need to
elapse before the display changes.
•To stop taking long integration readings, press any front panel key. As long as the
instrument remains in the long integration display state, the measurement process can
be resumed by pressing an arrow key. While readings are not being taken, the bottom
line displays the last valid long integration reading, or dashes if no pulse was detected
before being stopped.
Front Panel Operation2-19
Determining correct trigger level
1.After selecting the appropriate voltage and current values, turn on the output.
2.Select the LONG INTEGRATION display type. If the trigger level is too low or too
high, the “NO PULSE” message will be displayed. If long integration measurements
are instead being displayed, the trigger level is valid. You can skip the rest of this
procedure.
3.Go into the MENU, select LONG INTEGRATION, and then TRIGGER LEVEL. (See
“MENU” for details.)
2-20Front Panel Operation
4.Adjust the trigger level and press ENTER. The unit starts looking for the pulse. If the
trigger level is still too low or too high, the “LONG INT TRIG NOT DETECTED”
message will be displayed briefly. Note that it may take as long as the timeout value for
the message to appear.
5.If the message appeared, repeat step 4 until a valid trigger level is found.
6.Use the MENU key to back out of the menu structure and display long integration
current measurements.
Sink operation
When operating as a sink, the power supply is dissipating power rather than sourcing it.
Figure 2-5 shows an example of how the power supply can be made to operate as a sink. An
external source, whose voltage is higher than the programmed power supply voltage, is
connected as shown. Current (I
rather than out of it. Current readback is negative.
Sink operation allows the Model 2304A to be used as a constant current load. To function as
a constant current load, the power supply must be in compliance (current limit). For example,
the Model 2304A could function as a constant current load for a charger circuit that is to be
tested. If a constant charging current of 1A is required, current limit for the Model 2304A
would be set to 1A, and voltage would be set to a level that would keep it in compliance. For
the test system shown in Figure 2-5, the Model 2304A will function as a constant current load
as long as V/R of the charger circuit equals 1A or more.
) flows into the positive (+) terminal of the power supply
sink
Figure 2-5
Sink operation
CAUTIONExceeding current sink capacity (3A maximum) could cause damage to the
power supply that is not covered by the warranty. With the enhanced output response mode selected, maximum sink current is 1A.
Charger Circuit
RV
+
_
4.2V
+
0V
1A
_
Model 2304A
I sink
Relay control
The Model 2304A can be used to control up to two external relays. Each control circuit is
made up of an open-collector transistor that functions as a switch for the external relay circuit.
Note that drive for each relay must be provided by an external DC voltage source.
Figure 2-6 shows the simplified control circuit in the Model 2304A and shows a typical configuration to control two external relays. As shown in the illustration, voltage applied to the
Model 2304A must not exceed 15VDC and current for each relay circuit must not exceed
150mADC.
Also note that a protection diode is required for each relay circuit. The protection diode provides a current dissipation path for fly-back voltage from the relay coil that occurs when the
control circuit is opened. Without the diode, the high fly-back voltage could damage the Model
2304A.
CAUTIONTo prevent damage to the Model 2304A that is not covered by the war-
Front Panel Operation2-21
ranty, adhere to the following precautions:
•ALWAYS use a protection diode for each relay circuit as shown in
Figure 2-6.
•Do not exceed the voltage and current limits of the RELAY CONTROL port of the Model 2304A (15VDC and 150mADC).
Figure 2-6
Relay control
2304A
Relay
Control
Relay 1
Chassis
Ground
Relay 2
Relay 1
Protection Diode
Protection Diode
Relay 2
External
Source
15VDC
Max
15VDC
Max
External
Source
2-22Front Panel Operation
Fi
7
M
p
Connections
An external relay circuit is connected to the Model 2304A via the miniature phono jack on
the rear panel (labeled RELAY CONTROL 15VDC MAX). The required three-conductor
phono plug that mates to the phono jack is shown in Figure 2-7. The illustration provides terminal identification for the three conductors of the plug. This phono plug is available from
Switchcraft, Inc. (See Table 2-2 for Switchcraft Connection Accessories.)
Also available from Switchcraft is a three-conductor patch cord that is terminated with a
phono plug on each end. The patch cord is available in various lengths from 0.5 ft to 6 ft. The
part numbers for the patch cords are listed in the table for Switchcraft Connection Accessories.
You can remove (cut) one of the phono plugs from the patch cord. One end of the modified
patch cord plugs into the phono jack on the Model 2304A, and the unterminated end is hardwired to the external relay circuit(s).
Another alternative is to wire the external relay circuit(s) to a second phono jack. You can
then use an unmodified patch cord to connect the relay circuit(s) to the Model 2304A. The part
number for the phono jack is listed in the table for Switchcraft Connection Accessories.
gure 2-
iniature phono
lug
Relay 1
Relay 2
Chassis Ground
Table 2-2
Switchcraft connection accessories
Part numberDescription
Front Panel Operation2-23
TT253
UJ2B
TT741
TT742
TT744
TT746
TT747
TT748
TT749
Switchcraft, Inc.
5555 N. Elston Ave.
Chicago, IL 60630
Phone: 312-631-1234
FAX: 312-792-2129
Controlling the relays
From the front panel, external relays are controlled from the OUTPUT RELAY ONE and
OUTPUT RELAY TWO items of the MENU. (See “MENU” for details.)
1.From the MENU, select the relay that you want to control: OUTPUT RELAY ONE or
OUTPUT RELAY TWO.
2.Select the desired relay control option: ONE or ZERO. Selecting ONE closes the relay
control circuit to energize the relay, while ZERO opens the circuit to de-energize the
relay.
Miniature Phono Plug (3-conductor)
Miniature Phono Jack (3-conductor)
Patch Cords (3-conductor):
0.5 ft patch cord
1 ft patch cord
2 ft patch cord
3 ft patch cord
4 ft patch cord
5 ft patch cord
6 ft patch cord
NOTEBoth external relays can be energized at the same time.
Over the bus, relay control is provided by the :OUTPut:RELay1 and :OUTPut:RELay2
commands. Similar to front panel operation, the parameter options for these commands are
ONE and ZERO. See OUTPut command summary in Section 4 for details.
2-24Front Panel Operation
MENU
Many aspects of operation are configured from the MENU that is summarized in Table 2-3.
Use the following rules to navigate through the menu structure. Details about the menu items
follow the navigation rules (see “MENU structure”).
NOTEThe MENU key is used to access the menu structure. However, if in remote for IEEE-
488 bus operation (“R” displayed below “ON/OFF”) the MENU key returns the
instrument to LOCAL operation.
Table 2-3
MENU structure
Menu itemDescription
GPIB address
Current range
Integration rate
Average readings
Save setup
Recall setup
Power on setup
Calibrate unit
Current lim mode
Output response
Output relay one
Output relay two
Revision number
Serial number
Pulse current
High time
Low time
Average time
Auto time
Average readings
Trigger delay
Trigger level
Long Integration
Integration time
Auto time
Pulse timeout
Trigger edge
Trigger level
Set primary address (0 to 30).
Select current range (5A, 5mA, or AUTO).
Set integration rate in NPLC (0.01 to 10).
Set average reading count (1 to 10).
Save present setup in memory (SAV0-SAV4).
Recall setup from memory (RST or SAV0-SAV4).
Select power-on setup (RST, SAV0 - SAV4).
Calibrate Model 2304A (see Calibration Manual).
Select current limit mode (Limit or Trip).
Select output response (Normal or Enhanced).
Close (ONE) or open (ZERO) relay control circuit 1.
Close (ONE) or open (ZERO) relay control circuit 2.
Display firmware revision levels.
Display serial number of the Model 2304A.
Pulse-current configuration:
Set high time integration rate (in µsec).
Set low time integration rate (in µsec).
Set average time integration rate (in µsec).
Set pulse integration rates automatically.
Set average reading count (1 to 100).
Set trigger delay in seconds (0 to 100msec).
Set trigger level (0 to 5A).
Long integration configuration:
Manually set integration time (up to 60sec).
Automatically set integration time.
Set the “NO PULSE” timeout period (1 to 63sec).
Select trigger edge (rising, falling, or neither).
Set trigger level (0 to 5A).
Rules to navigate MENU
•The MENU is accessed by pressing the MENU key.
•Use the
and edit keys to display the primary menu items. Primary menu items are
denoted by bullets (•) in the MENU structure.
•A displayed primary menu item is selected by pressing ENTER. With PULSE CURRENT or LONG INTEGRATION selected, use the
secondary items and press ENTER to select the displayed item.
•Settings and selections for a menu item are displayed using the edit keys (
):
–For a setting, use
and
to increment and decrement the value.
–For a selection, use
•With the desired setting or selection displayed, press ENTER. Pressing MENU will
cancel the edit operation.
•Use the MENU key to back out of the MENU structure.
MENU structure
•GPIB ADDRESS — Use to set the primary address for the IEEE-488 bus (0 to 30). At
the factory, the address is set to 16. Do not select an address that conflicts with the
address of the controller or any other instrument on the bus. The address is displayed on
power-up.
•CURRENT RANGE — Use to select the current readback measurement range
(5 AMPS, 5 MILLIAMPS, or AUTO). With AUTO selected, the instrument automatically goes to the most sensitive range to perform the measurement.
Front Panel Operation2-25
and edit keys to display the
, , , and
or to place the cursor on the appropriate digit, and use
or to display the desired option.
NOTETaking pulse current and long integration measurements sets the current range to 5A
and has no effects on the auto state.
•INTEGRATION RATE — Use to set the reading rate for voltage, current, and DVM
measurements (0.01 to 10). The reading rate is specified as a parameter based on the
number of power line cycles (NPLC), where 1 PLC for 60Hz is 16.67msec (1/60). In
general, the fastest integration time (0.01 PLC) results in increased reading noise. The
slowest integration time (10 PLC) provides the best common-mode and normal-mode
rejection. In-between settings are a compromise between speed and noise.
NOTEThe integration rates for pulse current and long integration measurements are set
from PULSE CURRENT and LONG INTEGRATION menu items.
•AVERAGE READINGS — Use to set the average reading count (1 to 10) for voltage,
current, and DVM measurements. This count specifies the number of measurement
conversions to average for each reading. For example, with a reading count of 5, each
displayed reading will be the average of five measurement conversions.
2-26Front Panel Operation
NOTEThe average reading count for pulse-current measurements is set from the PULSE
CURRENT item of the menu.
•SAVE SETUP — Saves the present power supply setup to a memory location (SAV0 to
SAV4). Note that OPERATE ON cannot be saved.
•RECALL SETUP — Returns the power supply to a setup saved in memory (RST or
SAV0 to SAV4). The Operate state is always recalled as OFF.
•POWER-ON SETUP — Select setup to use at power-up (RST or SAV0-SAV4).
•CALIBRATE UNIT — Use to calibrate the Model 2304A. Refer to the Calibration
Manual for details.
•CURRENT LIM MODE — Use to select the current limit mode (LIM or TRIP). With
LIM selected, output current will not exceed the set limit value. It will clamp at the
limit value. With TRIP selected, the output will turn off when the current limit is
reached. See “Current limit” for details.
•OUTPUT RESPONSE — Use to check or select the output response mode (NORMAL or ENHANCED). In the NORMAL mode, the standard output characteristics are
in effect. In general, the ENHANCED mode is used to improve transient response to
load changes. However, the maximum output voltage setting in this mode is 15V. The
output response mode cannot be changed when the output is on or when the output voltage setting exceeds the maximum voltage limitation. See “Enhanced output response”
for more information.
•OUTPUT RELAY ONE — Use to control the circuit for relay 1. Selecting ONE
closes the relay control circuit to energize the relay, while ZERO opens the circuit to
de-energize the relay.
•OUTPUT RELAY TWO — Use to control the circuit for relay 2. Selecting ONE
closes the relay control circuit to energize the relay, while ZERO opens the circuit to
de-energize the relay.
•REVISION NUMBER — Displays the firmware revision level for the microcontroller
and the display.
•SERIAL NUMBER — Displays the serial number of the Model 2304A.
•PULSE CURRENT — Use the following menu items to configure pulse-current measurements. See “Pulse-current measurements” for details on these measurements.
–HIGH TIME — Use to set the integration period (in µsec) for high pulse-current
–LOW TIME — Use to set the integration period (in µsec) for low pulse-current
–AVERAGE TIME — Use to set the integration period (in µsec) for average pulse-
–AUTO TIME — Use to automatically set the integration times for high, low, and
measurements.
measurements.
current measurements.
average pulse-current measurements. These times are based on detecting the pulse
and remain until another AUTO TIME is performed or the times are manually
changed.
Front Panel Operation2-27
–AVERAGE READINGS — Use to set the average reading count (1 to 100) for
pulse-current measurements. This count specifies the number of measurements
(integrations) to average for each reading. For example, with a reading count of 10,
each displayed reading will reflect the average of 10 pulse-current measurements.
–TRIGGER DELAY — Use to specify additional trigger delay (0 to 100msec in
10µsec steps). See “Pulse-current measurements, Trigger delay” for details.
–TRIGGER LEVEL — Use to set the trigger level (0 to 5A in 5mA steps). Pulses
less than the specified level are not detected. There are approximately 10mA of
trigger hysteresis built into the hardware. If a pulse does not exceed this level, trigger detection will not occur. See “Pulse-current measurements, Determining correct trigger level” to set a valid trigger level.
•LONG INTEGRATION — Use the following menu items to configure long integra-
tion current measurements. See “Long integration current measurements” for details on
these measurements.
–INTEGRATION TIME — Manually set the long integration time. For 60Hz
power line frequency, integration can be set from 850msec to 60sec. For 50Hz
power line frequency, integration can be set from 840msec to 60sec.
–AUTO TIME — Use to automatically set the integration time. When the AUTO
TIME operation is performed, the instrument measures the time between two rising pulse edges and sets an appropriate integration time that will encompass the
high and low periods of the pulse.
–PULSE TIMEOUT — Set pulse timeout (from 1 to 63 seconds) for long integra-
tion measurements that are configured to be triggered by rising or falling pulse
edges. If a pulse is not detected within the specified time (pulse timeout), the “NO
PULSE” message will be displayed. While the “NO PULSE” message is displayed, the instrument continues to search for a pulse.
–TRIGGER EDGE — A pulse edge can be used to trigger the start of the measure-
ment. Select RISING to use a rising pulse edge to start the measurement. Select
FALLING to use a falling pulse edge to start the measurement. A third option is
available if you do not want measurements controlled by pulse edges. With NEITHER selected, measurements will start as soon as the Long Integration function
is selected. Note that a pulse has to be detected before a rising or falling pulse edge
can trigger a long integration measurement (see “TRIGGER LEVEL” below).
–TRIGGER LEVEL — Before a rising or falling pulse edge can trigger the start of
a long integration, the pulse must first be detected. Trigger level specifies the minimum pulse level that will cause detection. The trigger level can be set from 0 to 5A
(in 5mA steps).
3
GPIB Operation
3-2GPIB Operation
WARNING:NO INTERNAL OPERATOR SERVICABLE PARTS,SERVICE BY QUALIFIED PERSONNEL ONLY.
WARNING:NO INTERNAL OPERATOR SERVICABLE PARTS,SERVICE BY QUALIFIED PERSONNEL ONLY.
CAUTION:FOR CONTINUED PROTECTION AGAINST FIRE HAZARD,REPLACE FUSE WITH SAME TYPE AND RATING.
CAUTION:FOR CONTINUED PROTECTION AGAINST FIRE HAZARD,REPLACE FUSE WITH SAME TYPE AND RATING.
Introduction
The GPIB bus is the IEEE-488 instrumentation data bus with hardware and programming
standards originally adopted by the IEEE (Institute of Electrical and Electronic Engineers) in
1975. The Model 2304A conforms to these standards:
•IEEE-488-1987.1
•IEEE-488-1987.2
These standards define a syntax for sending data to and from instruments, how the instrument interprets this data, what registers should exist to record the state of the instrument, and a
group of common commands.
•SCPI 1995.0 (Standard Commands for Programmable Instruments)
This standard defines a command language protocol. It goes one step further than IEEE-488-
1987.2 and defines a standard set of commands to control every programmable aspect of the
instrument.
GPIB bus connections
To connect the Model 2304A to the GPIB bus, use a cable equipped with standard IEEE-488
connectors. The IEEE connector on the Model 2304A is shown in Figure 3-1.
Figure 3-1
IEEE-488
connector
LINE FUSE
SLOWBLOW
2.5A, 250V
LINE RATING
100-240VAC
50, 60 HZ
185VA MAX
+
RELAY
CONTROL
15VDC MAX
REMOTE
DISPLAY
OPTION
MADE IN
U.S.A.
ISOLATION FROM EARTH:
22 VOLTS MAX.
____
+++
SOURCE SENSE
SOURCE
OUTPUT
0-20V, 0-5A
IEEE-488
(CHANGE IEEE ADDRESS
WITH FRONT PANEL MENU)
DVM IN
IEEE-488 Connector
NOTETo minimize interference caused by electromagnetic radiation, use only shielded
IEEE-488 cables. Available shielded cables from Keithley are Models 7007-1 and
7007-2.
For a multi-unit test system, you can daisy-chain the instruments to the controller by connecting an IEEE cable from one unit to another.
Most controllers are equipped with an IEEE-488 style connector, but a few may require a
different type of connecting cable. See the controller’s instruction manual if it is not equipped
with an IEEE-488 style connector.
Primary address
The Model 2304A ships from the factory with a GPIB address of 16. You can set the address
to a value of 0 to 30. Do not assign the same address to another device or to a controller that is
on the same GPIB bus.
The primary address can be checked and/or changed from the front panel MENU as follows:
1.Press the MENU key on the front panel.
2.Use the
3.To change the address use the
ENTER. Otherwise, use the MENU key to back out of the menu structure.
4.Use the MENU key to back out of the menu structure.
NOTEThe present address is displayed on power-up.
or to display GPIB ADDRESS, and press ENTER.
, , , and keys to set the address value and press
QuickBASIC 4.5 programming
Programming examples are written in Microsoft QuickBASIC 4.5 using the Keithley
KPC-488.2 (or Capital Equipment Corporation) IEEE interface and the HP-style Universal
Language Driver (CECHP).
GPIB Operation3-3
Universal language driver installation
Before any programming example can be run, the Universal Language Driver must first be
installed. To install the driver, enter the CECHP command at the DOS prompt.
If you include the CECHP command in your AUTOEXEC.BAT file, the driver will automatically be installed every time you turn on your computer.
Using program fragments
Program fragments are used to demonstrate proper programming syntax. Only a fragment of
the whole program is used to avoid redundancy.
At the beginning of each program, driver files must be opened. The input terminator should
be set for CRLF. For example:
OPEN "ieee" FOR OUTPUT AS #1
OPEN "ieee" FOR INPUT AS #2
PRINT #1, "interm crlf"
A typical program fragment includes an OUTPUT command and an ENTER command. The
OUTPUT command sends a program message (command string) to the Model 2304A. If the
program message includes a query command, then the ENTER command is required to get the
response message from the Model 2304A. The ENTER command addresses the Model 2304A
3-4GPIB Operation
to talk. The following example program fragment demonstrates how OUTPUT and ENTER
commands are used. Note that the commands assume address 16, which is the factory-set
address of the Model 2304A.
If you wish to display the response message on the CRT, the computer will have to read the
message and then “print” it to the CRT display as follows:
The following programming example shows how the above statements are used together.
General commands are those commands, such as DCL, that have the same general meaning
regardless of the instrument. Table 3-1 lists the general bus commands along with the programming statement for each command, which uses the Keithley KPC-488.2 IEEE interface and the
HP-style Universal Language Driver. Note that the commands requiring that the primary
address be specified assume that the address is the factory-set address of 16.
Table 3-1
General bus commands and associated statements
Programming
Command
REN
IFC
LLO
GTL
DCL
SDC
GET
SPE, SPD
statementEffect on Model 2304A
REMOTE 16
ABORT
LOCAL LOCKOUT
LOCAL 16
LOCAL
CLEAR
CLEAR 16
TRIGGER 16
SPOLL 16
Goes into effect when next addressed to listen.
Goes into talker and listener idle states.
LOCAL key locked out.
Cancel remote; restore front panel operation for the 2304A.
Cancel remote; restore front panel operation for all devices.
Returns all devices to known conditions.
Returns Model 2304A to known conditions.
Trigger a single reading.
Serial polls the Model 2304A.
REN (remote enable)
The remote enable command is sent to the Model 2304A by the controller to set up the
instrument for remote operation. Generally, the instrument should be placed in the remote
mode before attempting to program it over the bus. Setting REN true does not place the instrument in the remote state. The instrument must be addressed to listen after setting REN true
before it goes into remote.
NOTEWhen in remote, the “R” character is displayed on the lower right corner of the dis-
play. It blinks as a solid block character.
Note that the instrument need not be in remote to be a talker.
Program fragment
PRINT #1, "remote 16"' Place the Model 2304A in remote; display “R” (for remote)
Note that all front panel controls except for LOCAL are inoperative while the instrument is
in remote. You can restore normal front panel operation by pressing the LOCAL key.
IFC (interface clear)
The IFC command is sent by the controller to place the Model 2304A in the local, talker, listener idle states. Note that this command does not affect the status of the instrument; settings,
data, and event registers are not changed.
GPIB Operation3-5
To send the IFC command, the controller need only set the IFC line true for a minimum of
100µs.
Use the LLO command to prevent local operation of the instrument. After the unit receives
LLO, all of its front panel controls except the POWER are inoperative. In this state, pressing
LOCAL will not restore control to the front panel. The GTL command restores control to the
front panel. Cycling power will also cancel local lockout.
Program fragment
PRINT #1, "remote 16"' Place 2304A in remote
PRINT #1, "local lockout"' Lock out front panel (including LOCAL key)
SLEEP 6' Wait 6 seconds
PRINT #1, "local 16"' Restore front panel operation
3-6GPIB Operation
GTL (go to local)
Use the GTL command to put a remote-mode instrument into local mode. The GTL com-
mand also restores front panel key operation.
Program fragment
PRINT #1, "remote 16"' Place 2304A in remote
SLEEP 3' Wait 3 seconds
PRINT #1, "local 16"' Place 2304A in local mode
DCL (device clear)
Use the DCL command to clear the GPIB interface and return it to a known state. Note that
the DCL command is not an addressed command, so all instruments equipped to implement
DCL will do so simultaneously.
When the Model 2304A receives a DCL command, it clears the Input Buffer and Output
Queue, cancels deferred commands, and clears any command that prevents the processing of
any other device command. A DCL does not affect instrument settings and stored data.
Program fragment
PRINT #1, "clear"' Clear all devices
SDC (selective device clear)
The SDC command is an addressed command that performs essentially the same function as
the DCL command. However, since each device must be individually addressed, the SDC command provides a method to clear only selected instruments instead of clearing all instruments
simultaneously, as is the case with DCL.
Program fragment
PRINT #1, "clear 16"' Clear 2304A
GET (group execute trigger)
GET is a GPIB trigger that is used to trigger and display a single reading.
Program fragment
PRINT #1, "trigger 16"' Trigger and display one reading 2304A
This sends IEEE-488 commands UNT UNL LISTEN 16 GET. When the command is executed, the trigger event occurs. (The command TRIGGER just sends GET. Any other listeners
are triggered when the command is executed.)
from over the bus
SPE, SPD (serial polling)
Use the serial polling sequence to obtain the Model 2304A serial poll byte. The serial poll
byte contains information about internal functions (see “Status structure”). Generally, the serial
polling sequence is used by the controller to determine which of several instruments has
requested service with the SRQ line. However, the serial polling sequence may be performed at
any time to obtain the status byte from the Model 2304A.
Program fragment
PRINT #1, "spoll 16"' Serial poll the 2304A
INPUT #2, S' Read serial poll byte
PRINT S' Display the decimal value of the serial poll byte
Front panel aspects of GPIB operation
The following paragraphs describe aspects of the front panel that are part of GPIB operation,
including the remote operation indicator, LOCAL key, and messages.
Remote indicator and LOCAL key
GPIB Operation3-7
When the Model 2304A is in the remote state, the “R” character is displayed in the bottom
right corner of the display. It blinks as a solid block character. “R” does not necessarily indicate
the state of the REM line, as the instrument must be addressed to listen with REM true before
the “R” indicator turns on.
When the instrument is in remote, all front panel keys, except for the LOCAL key, are
locked out. The LOCAL key cancels the remote state and restores local operation of the instrument. Pressing the LOCAL key also turns off the “R” indicator and returns the display to normal if a user-defined message was displayed.
If the LLO (Local Lockout) command is in effect, the LOCAL key is also inoperative.
Error and status messages
See Table 3-2 for a list of error and status messages associated with IEEE-488 programming.
The instrument can be programmed to generate an SRQ, and command queries can be performed to check for specific error conditions.
3-8GPIB Operation
Table 3-2
Status and error messages
NumberDescriptionEvent
-440
-430
-420
-410
-363
-350
-330
-314
-315
-260
-241
-230
-225
-224
-223
-222
-221
-220
-200
-178
-171
-170
-161
-160
-158
-154
-151
-150
Query unterminated after indefinite response
Query deadlocked
Query unterminated
Query interrupted
Input buffer overrun
Queue overflow
Self-test failed
Save/recall memory lost
Configuration memory lost
Expression error
Hardware missing
Data corrupt or stale
Out of memory
Illegal parameter value
Too much data
Parameter data out of range
Settings conflict
Parameter error
Execution error
Expression data not allowed
Invalid expression
Expression error
Invalid block data
Block data error
String data not allowed
String too long
Invalid string data
String data error
EE
EE
EE
EE
SYS
SYS
EE
EE
EE
EE
EE
EE
EE
EE
EE
EE
EE
EE
EE
EE
EE
EE
EE
EE
EE
EE
EE
EE
EE = error event
SYS = system error event
Table 3-2 (cont.)
Status and error messages
NumberDescriptionEvent
GPIB Operation3-9
-148
-144
-141
-140
-124
-123
-121
-120
-114
-113
-112
-111
-110
-109
-108
-105
-104
-103
-102
-101
-100
Character data not allowed
Character data too long
Invalid character data
Character data error
Too many digits
Exponent too large
Invalid character in number
Numeric data error
Header suffix out of range
Undefined header
Program mnemonic too long
Header separator error
Command header error
Missing parameter
Parameter not allowed
GET not allowed
Data type error
Invalid separator
Syntax error
Invalid character
Command error
EE
EE
EE
EE
EE
EE
EE
EE
EE
EE
EE
EE
EE
EE
EE
EE
EE
EE
EE
EE
EE
+000No errorSE
+101
+301
+302
+306
+310
Operation complete
Reading overflow
Pulse trigger detection timeout
Reading available
Buffer full
Current Limit event
Current Limit tripped event
Heat sink shutdown event
Power supply shutdown event
Calibration messages:
Volt full scale cal prepare error
Volt full scale cal output error
Volt full scale cal meas error
DVM full scale cal meas error
5 Amp source cal prepare error
5 Amp source cal output error
5 Amp source cal measure error
5 mA source cal prepare error
5 mA source cal measure error
Date of Calibration not set
Gain-aperture correction error
Calibration data invalid
Reading buffer data lost
GPIB address lost
Power-on state lost
DC Calibration data lost
Calibration dates lost
GPIB communication data lost
Questionable calibration
Internal system error
SE
SE
SE
SE
EE
EE
EE
EE
EE
EE
EE
EE
EE
EE
EE
EE
EE
EE
EE
EE
EE
EE
SE
EE
EE = error event
SE = status event
Status structure
Figure 3-2 shows the status structure for the Model 2304A. Instrument events such as errors
are monitored and manipulated by four status register sets. Notice that these status register sets
feed directly into the Status Byte Register. More detailed illustrations of these register sets are
provided by Figures 3-3 through 3-6.
Figure 3-2
Model 2304A
status register
structure
Calibration Summary
(Always Zero)
Questionable
Condition
Register
0
1
2
3
4
5
6
7
Cal
9
10
11
12
13
14
15
Questionable
Event
Register
0
1
2
3
4
5
6
7
CalCal
9
10
11
12
13
14
15
Output Queue
Questionable
Event
Enable
Register
&
&
&
2
&
3
&
&
5
&
6
&
7
&
&
9
&
10
&
11
&
12
&
13
&
14
&
15
GPIB Operation3-11
0
1
4
Logical
OR
Error Queue
Operation Complete
Device Specific Error
Reading Overflow
Pulse Trigger Timeout
(Always Zero)
Standard
Standard
Event
Status
Register
OPC
Query Error
Execution Error
Command Error
User Request
Power On
(Always Zero)
Measurement
Condition
Register
ROFROFROF
PTTPTTPTT
RAVRAVRAVReading Available
11
QYE
DDE
EXE
CME
URQ
PON
8
9
10
11
12
13
1414
15
*ESR?*ESE
Measurement
Register
000
1
2
6
7
8
BFBFBFBuffer Full
10
111111
12
13
14
15
Event
Status
Enable
Register
&
OPC
&
&
QYE
&
DDE
&
EXE
&
CME
&
URQ
&
PON
&
&
&
10
&
11
&
12
&
13
&
&
15
*ESE?
Measurement
Event
&
&
1
&
2
&
&
&
&
66
&
7
&
8
&
&
1010
&
&
12
&
13
&
14
&
15
8
9
Event
Enable
Register
1
2
7
8
12
13
14
15
Logical
OR
Logical
OR
Status
Byte
Register
&
MSBMSB
&
1
&
EAV
&
QSB
&
MAV
&
ESB
RQS/MSS
OSB
*STB?
&
Master Summary Status (MSS)
MSB = Measurement Summary Bit
EAV = Error Available
QSB = Questionable Summary Bit
MAV = Message Available
ESB = Event Summary Bit
RQS/MSS = Request for Service/Master Summary Status
OSB = Operation Summary Bit
Note : RQS bit is in serial poll byte,
MSS bit is in *STB? response.
Operation
Condition
Register
Current Limit CLCLCL
Current Limit Tripped CLTCLTCLT
Heat Sink Shutdown
Power Supply Shutdown
(Always Zero)
Operation
Event
Register
0
1
222
HSSHSSHSS
PSSPSSPSS
7
8
999
10
11
12
13
14
15
&
0
&
1
&
&
&
&
&
&
7
&
8
&
&
10
&
11
&
12
&
13
&
14
&
15
Service
Request
Enable
Register
1
EAV
QSB
MAV
ESB
6
OSB
*SRE
*SRE?
Operation
Event
Enable
Register
Logical
OR
0
1
Logical
7
8
10
11
12
13
14
15
OR
3-12GPIB Operation
Condition registers
As Figure 3-2 shows, all status register sets have a condition register. A condition register is
a real-time, read-only register that constantly updates to reflect the present operating conditions
of the instrument. For example, if the power supply is in current limit, bit B3 (Lim) of the
Operation Condition Register is set. When the current limit condition clears, bit B3 clears.
Use the :CONDition? query commands in the STATus Subsystem to read the condition registers. See Section 4 for more information.
Event registers
As Figure 3-2 shows, each status register set has an event register. An event register is a
latched, read-only register whose bits are set by the corresponding condition register. Once a
bit in an event register is set, it remains set (latched) until the register is cleared by a specific
clearing operation. The bits of an event register are logically ANDed with the bits of the corresponding enable register and applied to an OR gate. The output of the OR gate is applied to the
Status Byte Register.
Use the *ESR? Common Command to read the Standard Event Register. All other event registers are read using the :EVENt? query commands in the STATus Subsystem. See Section 5 for
more information.
An event register is cleared when it is read. The following operations clear all event
registers:
•Cycling power
•Sending *CLS
Enable registers
As Figure 3-2 shows, each status register set has an enable register. An enable register is user
programmed and serves as a mask for the corresponding event register. An event bit is masked
when the corresponding bit in the enable register is cleared (0). When masked, a set bit in an
event register cannot set a bit in the Status Byte Register (1 AND 0 = 0).
To use the Status Byte Register to detect events (i.e., serial poll), you must unmask the
events by setting the appropriate bits of the enable registers.
To program and query the Standard Event Status Register, use the *ESE and *ESE?
Common Commands, respectively. All other enable registers are programmed and queried
using the :ENABle and :ENABle? commands in the STATus Subsystem. See Section 4 for
more information.
An enable register is not cleared when it is read. The following operations affect the enable
registers:
•Cycling power — Clears all enable registers
•:STATus:PRESet — Clears the following enable registers:
–Operation Event Enable Register
–Questionable Event Enable Register
–Measurement Event Enable Register
•*ESE 0 — Clears the Standard Event Status Enable Register.
Queues
GPIB Operation3-13
The Model 2304A uses two queues, which are first-in, first-out (FIFO) registers:
•Output Queue — used to hold reading and response messages.
•Error Queue — used to hold error and status messages.
The Model 2304A status model (Figure 3-2) shows how the two queues are structured with
the other registers.
Output Queue
The output queue holds data that pertains to the normal operation of the instrument. For
example, when a query command is sent, the response message is placed in the Output Queue.
When data is placed in the Output Queue, the Message Available (MAV) bit in the Status
Byte Register sets. A data message is cleared from the Output Queue when it is read. The Output Queue is considered cleared when it is empty. An empty Output Queue clears the MAV bit
in the Status Byte Register.
Read a message from the Output Queue by addressing the Model 2304A to talk after the
appropriate query is sent.
Error Queue
The Error Queue holds error and status messages. When an error or status event occurs, a
message that defines the error/status is placed in the Error Queue. This queue will hold up to
ten messages.
When a message is placed in the Error Queue, the Error Available (EAV) bit in the Status
Byte Register is set. An error message is cleared from the Error/Status Queue when it is read.
The Error Queue is considered cleared when it is empty. An empty Error Queue clears the EAV
bit in the Status Byte Register. Read an error message from the Error Queue by sending either
of the following SCPI query commands and then addressing the Model 2304A to talk:
•:SYSTem:ERRor?
•:STATus:QUEue?
Messages in the Error Queue are stored in a first-in, first-out (FIFO) manner. See Section 4
for complete information about reading error messages.
3-14GPIB Operation
Figure 3-3
Standard event status
Figure 3-4
Operation event
status
To Event
Summary
Bit (ESB) of
Status Byte
Register (See
Figure 3-7).
* ESR ?
(B15 - B8)
OR
* ESE
(B15 - B8)
* ESE ?
PON = Power On
URQ = User Request
CME = Command Error
EXE = Execution Error
DDE = Device-Dependent Error
QYE = Query Error
OPC = Operation Complete
& = Logical AND
OR = Logical OR
(B15 - B7)(B2) (B1) (B0)
PON
(B7)
&
PON
(B7)
URQ
(B6)
URQ
PSS
(B6)
&
(B6)
HSS
(B5)
CME
(B5)
&
CME
(B5)
EXE
(B4)
&
EXE
(B4)
CLT
(B4)CL(B3)
DDE
QYE
(B3)
(B2) (B1) (B0)
&
DDE
QYE
(B3)
(B2) (B1) (B0)
Standard Event
OPC
Status Register
&
&
Standard Event
OPC
Status Enable
Register
Operation
Condition Register
To Operation
Summary Bit
(OSB) of Status
Byte Register.
(See Figure 3-7).
OR
(B15 - B11) (B10) (B9) (B8) (B7)
PSS = Power Supply Shutdown
HSS = Heat Sink Shutdown
CLT = Current Limit Tripped
CL = Current Limit
(B15 - B7)
PSS
HSS
(B6)
&
PSS
(B6)
& = Logical AND
OR = Logical OR
CLT
(B5)
(B4)CL(B3)
&
&
HSS
CLT
(B5)
(B4)CL(B3) (B2) (B1) (B0)
(B2) (B1) (B0)
&
Operation Event
Register
Operation Event
Enable Register
GPIB Operation3-15
Figure 3-5
Measurement
event status
To Measurement
Summary Bit
(MSB) of Status
Byte Register.
(See Figure 3-7).
Figure 3-6
Questionable
event status
(B15 - B12)(B10)BF(B9) (B8) (B7) (B6)
(B15 - B12)(B10)BF(B9) (B8) (B7) (B6)
OR
(B15 - B12)
BF = Buffer Full
RAV = Reading Available
PTT = Pulse Trigger Timeout
ROF = Reading Overflow
& = Logical AND
OR = Logical OR
To Questionable
Summary Bit (QSB)
of Status
Byte Register
(See Figure 3-7).
(B11)
(B11)
(B11)
(B15)
0
0
&
OR
0
Cal = Calibration Summary
& = Logical AND
OR = Logical OR
&
(B10)BF(B9) (B8) (B7) (B6)
Cal
(B13 - B9)(B14)
(B13 - B9)(B14)(B8)(B15)
(B13 - B9)(B14)(B8)(B15)
(B8)
Cal
Cal
(B7 - B5)
(B7 - B5)
&
(B7 - B5)
RAV
(B5)
RAV
(B5)
RAV
(B5)
&
PTT
ROF
(B4)
(B3)
PTT
ROF
(B4)
(B3) (B2) (B1) (B0)
&
&
PTT
ROF
(B4)
(B3) (B2) (B1) (B0)
(B3)
(B4)
(B4) (B3)
(B3)(B4)
(B2) (B1) (B0)
(B2)
(B1)
(B2) (B1)
(B1)(B2)
Measurement
Condition Register
Measurement Event
Register
Measurement Event
Enable
Register
Questionable
(B0)
Condition Register
Questionable Event
Register
(B0)
Questionable Event
Enable Register
(B0)
3-16GPIB Operation
Status Byte and Service Request (SRQ)
Service request is controlled by two 8-bit registers: the Status Byte Register and the Service
Request Enable Register. Figure 3-7 shows the structure of these registers.
Figure 3-7
Status byte and service
request (SRQ)
Service
Request
Generation
* STB?
Serial Poll
OR
* SRE
* SRE?
Status Summary Messages
RQS
ESB
MAV
QSB
OSB
(B6)
(B5)
ESB
(B5)
(B4)
&
MAV
(B4)
(B7)
MSS
&
OSB
(B7) (B6)
OSB = Operation Summary Bit
MSS = Master Summary Status
RQS = Request for Service
ESB = Event Summary Bit
MAV = Message Available
QSB = Questionable Summary Bit
EAV = Error Available
MSB = Measurement Summary Bit
& = Logical AND
OR = Logical OR
EAV
(B3)
(B2)
&
&
&
QSB
EAV
(B3)
(B2)
MSB
(B1) (B0)
&
MSB
(B1) (B0)
Read by Serial Poll
Status Byte
Register
Read by *STB?
Service
Request
Enable
Register
Status Byte Register
The summary messages from the status registers and queues are used to set or clear the
appropriate bits (B0, B2, B3, B4, B5, and B7) of the Status Byte Register. These bits do not
latch, and their states (0 or 1) are dependent on the summary messages (0 or 1). For example, if
the Standard Event Status Register is read, its register will clear. As a result, its summary message will reset to 0, which will clear the ESB bit in the Status Byte Register.
Bit B6 in the Status Byte Register is either:
•The Master Summary Status (MSS) bit, sent in response to the *STB? command, indicates the status of any set bits with corresponding enable bits set.
•The Request for Service (RQS) bit, sent in response to a serial poll, indicates which
device was requesting service by pulling on the SRQ line.
For a description of the other bits in the Status Byte Register, see “Common commands,
*STB?.”
GPIB Operation3-17
The IEEE-488.2 standard uses the *STB? common query command to read the Status Byte
Register.
When reading the Status Byte Register using the *STB? command, bit B6 is called the MSS
bit. None of the bits in the Status Byte Register are cleared when using the *STB? command to
read it.
The IEEE-488.1 standard has a serial poll sequence that also reads the Status Byte Register
and is better for detecting a service request (SRQ). When using the serial poll, bit B6 is called
the RQS bit. Serial polling causes bit B6 (RQS) to reset. Serial polling is discussed in more
detail in “Serial poll and SRQ.”
Either of the following operations clear all bits of the Status Byte Register:
•Cycling power.
•Sending the *CLS common command.
NOTEThe MAV bit may or may not be cleared.
Service Request Enable Register
This register is user programmed and serves as a mask for the Status Summary Message bits
(B0, B2, B3, B4, B5, and B7) of the Status Byte Register. When masked, a set summary bit in
the Status Byte Register cannot set bit B6 (MSS/RQS) of the Status Byte Register. Conversely,
when unmasked, a set summary bit in the Status Byte Register sets bit B6.
A Status Summary Message bit in the Status Byte Register is masked when the corresponding bit in the Service Request Enable Register is cleared (0). When the masked summary bit in
the Status Byte Register sets, it is ANDed with the corresponding cleared bit in the Service
Request Enable Register. The logic “1” output of the AND gate is applied to the input of the
OR gate and, therefore, sets the MSS/RQS bit in the Status Byte Register.
The individual bits of the Service Request Enable Register can be set or cleared by using the
*SRE <NRf> common command.
To read the Service Request Enable Register, use the *SRE? query command. The Service
Request Enable Register clears when power is cycled or a parameter (n) value of zero is sent
with the *SRE command (*SRE 0).
Serial poll and SRQ
Any enabled event summary bit that goes from 0 to 1 will set RQS and generate a service
request (SRQ). In your test program, you can periodically read the Status Byte Register to
check if a service request (SRQ) has occurred and what caused it. If an SRQ occurs, the program can, for example, branch to an appropriate subroutine that will service the request. Typically, service requests (SRQs) are managed by the serial poll sequence of the Model 2304A. If
an SRQ does not occur, bit B6 (RQS) of the Status Byte Register will remain cleared, and the
program will proceed normally after the serial poll is performed. If an SRQ does occur, bit B6
of the Status Byte Register will set, and the program can branch to a service subroutine when
the SRQ is detected by the serial poll.
3-18GPIB Operation
The serial poll automatically resets RQS of the Status Byte Register. This allows subsequent
serial polls to monitor bit B6 for an SRQ occurrence generated by other event types. After a
serial poll, the same event can cause another SRQ, even if the event register that caused the first
SRQ has not been cleared.
A serial poll clears RQS but does not clear MSS. The MSS bit stays set until all Status Byte
event summary bits are cleared.
The following QuickBASIC 4.5 program (using the KPC-488.2 interface and the CECHP
driver) demonstrates how serial poll can be used to detect an SRQ:
CLS
OPEN "ieee" FOR OUTPUT AS #1
OPEN "ieee" FOR INPUT AS #2
PRINT #1, "output 16; *cls"' Clear Status Byte Register
PRINT #1, "output 16; *ese 32' Unmask command errors
PRINT #1, "output 16; *sre 32' Unmask event summary message
PRINT #1, "output 16; *ese"' Error - missing parameter
SLEEP 1
PRINT #1, "SPOLL 16"' Serial poll 2304A
INPUT #2, S' Read Status Byte Register
S=S OR 191' OR register with a mask
IF S= 255 THEN
OSUB srq' Go to subroutine to acknowledge
' SRQ
END IF
PRINT
END
srq:
PRINT "SRQ Has Occurred--RQS (bit B6) is set (1)"
RETURN
Programming syntax
The information in the following paragraphs covers syntax for both common commands and
SCPI commands. For information not covered here, see the IEEE-488.2 and SCPI standards.
Command words
Program messages are made up of one or more command words and parameters.
Commands and command parameters
Common commands and SCPI commands may or may not use a parameter. The following
Put at least one space between the command word and the parameter.
Brackets [ ] — Some command words are enclosed in brackets ([ ]). These brackets are used
to denote an optional command word that does not need to be included in the program message. For example:
GPIB Operation3-19
:FORMat[:DATA]?
These brackets indicate that :DATA is implied (optional) and does not have to be used. Thus,
the above command can be sent as :FORMat? or :FORMat:DATA?.
Notice that the optional command is used without the brackets. When using optional command words in your program, do not include the brackets.
Parameter types — The following are some of the more common parameter types:
• <b>Boolean — Used to enable or disable an instrument operation. 0 or OFF disables
the operation, and 1 or ON enables the operation. Example:
:DISPlay:TEXT:STATe ON Enable text messages mode of display.
• <name> Name parameter — Select a parameter name from a listed group. Example:
<name> = LIMit
= TRIP
:CURRent:LIMit:TYPE TRIP Turn output off when current limit is reached.
3-20GPIB Operation
• <NRf>Numeric representation format — This parameter is a number that can be ex-
• <n>Numeric value — A numeric value parameter can consist of an NRf number or one
• <numlist> Numlist — Specify one or more numbers for a list. Example:
Angle Brackets < > — Angle brackets (< >) are used to denote a parameter type. Do not
include the brackets in the program message. For example:
pressed as an integer (e.g., 8), a real number (e.g., 23.6), or an exponent (2.3E6).
Example:
SENSe:AVERage 5Set average current value to 5
of the following name parameters: DEFault, MINimum, MAXimum. When the
DEFault parameter is used, the instrument is programmed to the *RST default value. When the MINimum parameter is used, the instrument is programmed to the
lowest allowable value. When the MAXimum parameter is used, the instrument is
programmed to the largest allowable value. Examples:
:SENSe:CURRent:RANGe 0.001Selects 5mA range
:SENSe:CURRent:RANGe DEFaultSelects 5A range
:SENSe:CURRent:RANGe MINimum Selects 5mA range
:SENSe:CURRent:RANGe MAXimum Selects 5A range
:STATus:QUEue:ENABle (-110:-222) Enable errors -110 through -222
:OUTPut <b>
The <b> indicates that a Boolean-type parameter is required. Therefore, to turn on the out-
put, the command with the ON or 1 parameter must be sent as follows.
:OUTPut ON
:OUTPut 1
Query commands
This type of command requests (queries) the presently programmed status. It is identified by
the question mark (?) at the end of the fundamental form of the command. Most commands
have a query form. Example:
:SENSe:CURRent:RANGe? Queries the present current range
Most commands that require a numeric parameter (<n>) can also use the DEFault,
MINimum, and MAXimum parameters for the query form. These query forms are used to
determine the *RST default value and the upper and lower limits for the fundamental
command. Examples:
:SENSe:CURRent:RANGe? DEFaultQueries the *RST default value
:SENSe:CURRent:RANGe? MINimumQueries the lowest allowable value
:SENSe:CURRent:RANGe? MAXimum Queries the largest allowable value
GPIB Operation3-21
Case sensitivity
Common commands and SCPI commands are not case sensitive. You can use upper or lower
A SCPI command word can be sent in its long-form or short-form version. The command
subsystem tables in Section 4 provide the long-form version. However, the short-form version
is indicated by upper case characters. Examples:
:STATus:PRESetlong-form
:STAT:PRESshort-form
:STATus:PRESlong-form and short-form combination
Note that each command word must be in either long-form or short-form. For example,
:STATu:PRESe is illegal and will generate an error. The command will not be executed.
Short-form rules
Use the following rules to determine the short-form version of any SCPI command or
parameter:
•If the length of the word is four letters or less, no short form version exists. Example:
:auto = :auto
These rules apply to words that exceed four letters:
•If the fourth letter of the word is a vowel, delete it and all the letters after it. Example:
:dvmeter = :dvm
•If the fourth letter of the command word is a consonant, retain it but drop all the letters
after it. Example:
:format = :form
•If the command contains a question mark (?; query) or a non-optional number included
in the command word, you must include it in the short-form version. Example:
:function? = :func?
•Command words or characters that are enclosed in brackets ([ ]) are optional and need
not be included in the program message.
3-22GPIB Operation
Program messages
A program message is made up of one or more command words sent by the computer to the
instrument. Each common command is a three letter acronym preceded by an asterisk (*). SCPI
commands are categorized in the :STATus subsystem and are used to help explain how command words are structured to formulate program messages.
:STATusPath (Root)
:OPERation Path
:ENABle <NRf> Command and parameter
:ENABle? Query command
:PRESet Command
Single command messages
The previous command structure has three levels. The first level is made up of the root
command (:STATus) and serves as a path. The second level is made up of another path
(:OPERation) and a command (:PRESet). The third path is made up of one command for the
:OPERation path. The three commands in this structure can be executed by sending three
separate program messages as follows:
:stat:oper:enab <NRf>
:stat:oper:enab?
:stat:pres
In each of the above program messages, the path pointer starts at the root command (:stat)
and moves down the command levels until the command is executed.
Multiple command messages
You can send multiple command messages in the same program message as long as they are
separated by semicolons (;). Here is an example showing two commands in one program
message:
:stat:pres; :stat:oper:enab <NRf>
When this command is sent, the first command word is recognized as the root command
(:stat). When the next colon is detected, the path pointer moves down to the next command
level and executes the command. When the path pointer sees the colon after the semicolon (;),
it resets back to the root level and starts over.
Commands that are on the same command level can be executed without having to retype
the entire command path. Example:
:stat:oper:enab <NRf>; enab?
After the first command (:enab) is executed, the path pointer is at the third command level in
the structure. Since :enab? is also on the third level, it can be typed in without repeating the
entire path name. Notice that the leading colon for :enab? is not included in the program message. If a colon were included, the path pointer would reset to the root level and expect a root
command. Since :enab? is not a root command, an error would occur.
GPIB Operation3-23
Command path rules
•Each new program message must begin with the root command, unless it is optional
(e.g., [:SENSe]). If the root is optional, treat a command word on the next level as the
root.
•The colon (:) at the beginning of a program message is optional and need not be used.
Example:
:stat:pres = stat:pres
•When the path pointer detects a colon (:), it moves down to the next command level. An
exception is when the path pointer detects a semicolon (;), which is used to separate
commands within the program message (see next rule).
•When the path pointer detects a colon (:) that immediately follows a semicolon (;), it
resets back to the root level.
•The path pointer can only move down; it cannot be moved up a level. Executing a command at a higher level requires that you start over at the root command.
Using common and SCPI commands in the same message
Both common commands and SCPI commands can be used in the same message as long as
they are separated by semicolons (;). A common command can be executed at any command
level and will not affect the path pointer. Example:
:stat:oper:enab <NRf>; *ESE <NRf>
Program message terminator (PMT)
Each program message must be terminated with an LF (line feed), EOI (end or identify), or
an LF+EOI. The bus will hang if your computer does not provide this termination. The following example shows how a multiple command program message must be terminated:
:outp on <PMT>
Command execution rules
•Commands execute in the order that they are presented in the program message.
•An invalid command generates an error and is not executed.
•Valid commands that precede an invalid command in a multiple command program
message are executed.
•Valid commands that follow an invalid command in a multiple command program message are ignored.
3-24GPIB Operation
Response messages
A response message is the message sent by the instrument to the computer in response to a
query command program message.
Sending a response message
After sending a query command, the response message is placed in the Output Queue. When
the Model 2304A is then addressed to talk, the response message is sent from the Output
Queue to the computer.
Multiple response messages
If you send more than one query command in the same program message (see “Multiple
command messages”), the multiple response messages for all the queries are sent to the computer when the Model 2304A is addressed to talk. The responses are sent in the order the query
commands were sent and are separated by semicolons (;). Items within the same query are separated by commas (,). The following example shows the response message for a program message that contains four single item query commands:
0; 1; 1; 0
Response message terminator (RMT)
Each response is terminated with an LF (line feed) and EOI (end or identify). The following
example shows how a multiple response message is terminated:
0; 1; 1; 0; <RMT>
Message exchange protocol
Two rules summarize the message exchange protocol:
Rule 1: You must always tell the Model 2304A what to send to the computer.
The following two steps must always be performed to send information from the instrument
to the computer:
1.Send the appropriate query command(s) in a program message.
2.Address the Model 2304A to talk.
Rule 2: The complete response message must be received by the computer before another
program message can be sent to the Model 2304A.
Common commands
Common commands (summarized in Table 3-3) are device commands that are common to
all devices on the bus. These commands are designated and defined by the IEEE-488.2
standard.
Table 3-3
Common commands
MnemonicNameDescription
GPIB Operation3-25
*CLS
*ESE <NRf>
*ESE?
*ESR?
*IDN?
*OPC
*OPC?
*RCL <NRf>
*RST
*SAV <NRf>
*SRE <NRf>
*SRE?
*STB?
*TRG
*TST?
*WAI
Clear status
Event enable command
Event enable query
Event status register query
Identification query
Reset command
Save setup command
Service request enable
command
Service request enable query
Status byte query
Trigger command
Self-test query
Wait-to-continue command
Clears all event registers and Error Queue.
Programs the Standard Event Enable Register.
Reads the Standard Event Enable Register.
Reads the Standard Event Enable Register and clears it.
Returns the manufacturer, model number, serial number, and
firmware revision levels of the unit.
Sets OPC bit after all pending commands are done.
Puts an ASCII “1” in the output queue after all pending operations are done.
Returns the instrument to the setup stored at the specified
memory location.
Returns the Model 2304A to the *RST default conditions.
Saves the present setup at the specified memory location.
Programs the Service Request Enable Register.
Reads the Service Request Enable Register.
Reads the Status Byte Register.
Trigger and display a single reading.
Performs a ROM checksum test and returns the result.
Wait until all previous commands are executed.
*CLS — Clear StatusClear status registers and error queue
DescriptionUse the *CLS command to clear (reset to 0) the bits of the following regis-
ters in the Model 2304A:
•Standard Event Register
•Operation Event Register
•Error Queue
•Measurement Event Register
•Questionable Event Register
This command also forces the instrument into the operation complete command idle state and operation complete query idle state.
3-26GPIB Operation
*ESE <NRf> — Event EnableProgram the standard event enable register
*ESE? — Event Enable QueryRead the standard event register
Parameters<NRf> =0Clear register
DescriptionUse the *ESE command to program the Standard Event Enable Register.
This command is sent with the decimal equivalent of the binary value that
determines the desired state (0 or 1) of the bits in the register. This register is
cleared on power-up.
This register is used as a mask for the Standard Event Register. When a standard event is masked, the occurrence of that event will not set the Event
Summary Bit (ESB) in the Status Byte Register. Conversely, when a standard event is unmasked (enabled), the occurrence of that event sets the ESB
bit. For information on the Standard Event Register and descriptions of the
standard event bits see the *ESR? command.
A cleared bit (0) in the enabled register prevents (masks) the ESB bit in the
Status Byte Register from setting when the corresponding standard event
occurs. A set bit (1) in the enable register allows (enables) the ESB bit to set
when the corresponding standard event occurs.
The Standard Event Enable Register is shown in Figure 3-8 and includes the
decimal weight of each bit. The sum of the decimal weights of the bits that
you wish to be set is the parameter value that is sent with the *ESE command. For example, to set the CME and QYE bits of the Standard Event
Enable Register, send the following command:
*ESE 36
where: CME (bit B5)= 32
QYE (bit B2) = 4
<NRf> = 36
If a command error (CME) occurs, bit B5 of the Standard Event Status Register sets. If a query error (QYE) occurs, bit B2 of the Standard Event Status
Register sets. Since both of these events are unmasked (enabled) the occurrence of any one of them causes the ESB bit in the Status Byte Register to
set.
Read the Standard Event Status Register using the *ESE? query command.
Figure 3-8
Standard event
enable register
Bit Position
Event
GPIB Operation3-27
B7B6B5B4B3B2B1B0
PON URQ CMEDDEEXEQYEOPC
Decimal Weighting
Value
Note : Bits B8 through B15 are not shown since they are not used.
Value : 1 = Enable Standard Event
0 = Disable (Mask) Standard Event
643211281684
(2 )7(2 )6(2 )5(2 )4(2 )3(2 )
0/1 0/10/1
0/10/10/1 0/1
Events : PON = Power On
URQ = User Request
CME = Command Error
EXE = Execution Error
DDE = Device-dependent Error
QYE = Query Error
OPC = Operation Complete
2
(2 )
0
*ESR? — Event Status Register Query Read the standard event status register and clear it
DescriptionUse this command to acquire the value (in decimal) of the Standard Event
Register (see Figure 3-9). The binary equivalent of the returned decimal
value determines which bits in the register are set. The register is cleared on
power-up or when *CLS is sent.
A set bit in this register indicates that a particular event has occurred. For
example, for an acquired decimal value of 48, the binary equivalent is
00110000. From this binary value, bits B4 and B5 of the Standard Event
Status Register are set. These bits indicate that a device-dependent error and
command error have occurred.
3-28GPIB Operation
Figure 3-9
Standard event
status register
Bit Position
Event
B7B6B5B4B3B2B1B0
PON URQ CME EXE DDE QYEOPC
Decimal Weighting
Value
Note : Bits B8 through B15 are not shown since they are not used.
Value : 1 = Event Bit Set
0 = Event Bit Cleared
643211281684
(2 )7(2 )6(2 )5(2 )4(2 )3(2 )
0/10/10/10/1
0/10/10/1
Events : PON = Power On
URQ = User Request
CME = Command Error
EXE = Execution Error
DDE = Device-dependent Error
QYE = Query Error
OPC = Operation Complete
2
(2 )
0
The bits of the Standard Event Status Register are described as follows:
•Bit B0, Operation Complete — A set bit indicates that all pending
selected device operations are completed and the Model 2304A is
ready to accept new commands. This bit only sets in response to the
*OPC command. It is not affected by the *OPC? query command.
•Bit B1 — Not used.
•Bit B2, Query Error (QYE) — A set bit indicates that you attempted
to read data from an empty Output Queue.
•Bit B3, Device-Dependent Error (DDE) — A set bit indicates that an
instrument operation did not execute properly due to some internal
condition.
•Bit B4, Execution Error (EXE) — A set bit indicates that the Model
2304A detected an error while trying to execute a command.
•Bit B5, Command Error (CME) — A set bit indicates that a command error has occurred. Command errors include:
– IEEE-488.2 syntax error — Model 2304A received a message that
does not follow the defined syntax of the IEEE-488.2 standard.
– Semantic error — Model 2304A received a command that was mis-
spelled, or received an optional IEEE-488.2 command that is not
implemented.
– The instrument received a Group Execute Trigger (GET) inside a
program message.
•Bit B6, User Request (URQ) — A set bit indicates that the LOCAL
key on the Model 2304A front panel was pressed.
•Bit B7, Power ON (PON) — A set bit indicates that the Model 2304A
has been turned off and turned back on since the last time this register
has been read.
GPIB Operation3-29
*IDN? — Identification QueryRead the identification code
DescriptionThe identification code includes the manufacturer, model number, serial
number, and firmware revision levels and is sent in the following format:
KEITHLEY INSTRUMENTS INC., MODEL 2304A, xxxxxxx, yyyyy/
zzzzz
where:xxxxxxx is the serial number
yyyyy/zzzzz is the firmware revision levels of the digital board
ROM and display board ROM.
*OPC — Operation CompleteSet the OPC bit in the standard event status
register after all pending commands are
DescriptionWhen this command is sent, the OPC bit in the standard event status register
will set after all pending commands are complete.
Typically, this command is sent after a reading or reading array is requested.
While the instrument is acquiring readings, all commands (except DCL,
SDC, IFC, *TRG, and GET) that are sent are not executed.
After all readings are acquired, the instrument returns to the idle state at
which time all pending commands (including the *OPC command) are executed. After the last pending command is executed, the OPC bit will set.
complete
NOTESend an *OPC command, separated by a semicolon, on the same line as a command
or query. If sent on separate lines, an error message is displayed.
*OPC? — Operation Complete Query Place a “1” in the output queue after all pending
operations are completed
DescriptionWhen this command is sent, an ASCII “1” is placed in the output queue
after all pending operations are completed.
Typically, this command is sent after a reading or reading array is requested.
While the instrument is acquiring readings, all commands (except DCL,
SDC, IFC, *TRG, and GET) that are sent are not executed.
After all readings are acquired, the instrument returns to the idle state at
which time all pending commands (including the *OPC command) are
executed. After the last pending command is executed, “1” is placed in the
output queue.
NOTESend an *OPC? query, separated by a semicolon, on the same line as another query.
If sent on separate lines, an error message is displayed. The *OPC? query can be
sent on the same line or a separate line as a command (not a query).
3-30GPIB Operation
*RCL — RecallReturn to setup stored in memory
Parameters<NRf> = 0 Return to saved setup configuration at memory location 0
DescriptionUse this command to return the Model 2304A to the configuration stored at
NOTEThe output is always saved and recalled in an OFF state.
*RST — ResetReturn Model 2304A to *RST defaults
DescriptionWhen the *RST command is sent, the Model 2304A performs the following
1Return to saved setup configuration at memory location 1
2Return to saved setup configuration at memory location 2
3Return to saved setup configuration at memory location 3
4Return to saved setup configuration at memory location 4
the specified memory location (0 to 4). The *SAV command is used to store
the setup configuration in memory.
operations:
•Returns the Model 2304A to the *RST default conditions (see SCPI
tables).
•Cancels all pending commands.
•Cancels response to any previously received *OPC and *OPC?
commands.
*SAV — SaveSave present setup in memory
Parameters <NRf> =0 Save setup at memory location 0
1Save setup at memory location 1
2Save setup at memory location 2
3Save setup at memory location 3
4Save setup at memory location 4
DescriptionUse the *SAV command to save the present instrument setup configuration
in memory for later recall. Up to five setup configurations can be saved.
Any control affected by *RST can be saved by the *SAV command. The
*RCL command is used to restore the instrument to the saved setup
configuration.
NOTEThe output is always saved and recalled in an OFF state.
GPIB Operation3-31
*SRE <NRf> — Service Request EnableProgram register
*SRE? — Service Request Enable QueryRead register
Parameters<NRf> =0Clears enable register
1Set MSB bit (Bit 0)
4Set EAV bit (Bit 2)
8Set QSB bit (Bit 3)
16Set MAV bit (Bit 4)
32Set ESB (Bit 5)
128Set OSB (Bit 7)
255Set all bits
DescriptionUse the *SRE command to program the Service Request Enable Register.
Send this command with the decimal equivalent of the binary value that
determines the desired state (0 or 1) of each bit in the register. This register
is cleared on power-up.
This enable register is used along with the Status Byte Register to generate
service requests (SRQ). With a bit in the Service Request Enable Register
set, an SRQ occurs when the corresponding bit in the Status Byte Register is
set by an appropriate event. For more information on register structure, see
the information presented earlier in this section.
The Service Request Enable Register is shown in Figure 3-10. Notice that
the decimal weight of each bit is included in the illustration. The sum of the
decimal weights of the bits that you wish to set is the value that is sent with
the *SRE command. For example, to set the ESB and MAV bits of the Service Request Enable Register, send the following command:
*SRE 48
where: ESB (bit B5) = 32
MAV (bit B4) = 16
<NRf>= 48
The contents of the Service Request Enable Register can be read using the
*SRE? query command.
3-32GPIB Operation
Figure 3-10
Service request
enable register
Bit Position
Decimal Weighting
Value : 1 = Enable Service Request
Event
0 = Disable (Mask) Service
Request Event
B7B6B5B4B3B2B1B0
Event
OSBESB MAV QSB EAV
1281684
7
(2 )
Value
0/10/10/10/1
32
(2 )5(2 )4(2 )3(2 )
0/1
Events : OSB = Operation Summary Bit
ESB = Event Summary Bit
MAV = Message Available
QSB = Questionable Summary Bit
EAV = Error Available
MSB = Measurement Summary Bit
MSB
2
(2 )
0/1
1
0
*STB? — Status Byte QueryRead status byte register
Description Use the *STB? query command to acquire the value (in decimal) of the Sta-
tus Byte Register. The Status Byte Register is shown in Figure 3-11. The
binary equivalent of the decimal value determines which bits in the register
are set.
All bits, except Bit B6, in this register are set by other event registers and
queues. Bit 6 sets when one or more enabled conditions occur.
The *STB? query command does not clear the status byte register. This register can only be cleared by clearing the related registers and queues.
For example, for an acquired decimal value of 48, the binary equivalent is
00110000. This binary value indicates that bits 4 and 5 of the Status Byte
Register are set.
The bits of the Status Byte Register are described as follows:
•Bit 0, Measurement Status (MSB) — A set bit indicates that a
measurement event has occurred. The event can be identified by
reading the Measurement Event Status Register using the
:STATus:MEASurement? command.
•Bit 1 — Not used.
•Bit 2, Error Available (EAV) — A set bit indicates that an error or sta-
tus message is present in the Error Queue. The message can be read
using one of the following SCPI commands:
– :SYSTem:ERRor?
– :STATus:QUEue?
•Bit 3, Questionable Summary Bit (QSB) — A set bit indicates that a
calibration error has occurred.
GPIB Operation3-33
•Bit 4, Message Available (MAV) — A set bit indicates that a message
is present in the Output Queue. The message is sent to the computer
when the Model 2304A is addressed to talk.
•Bit 5, Event Summary Bit (ESB) — A set bit indicates that an enabled
standard event has occurred. The event can be identified by reading the
Standard Event Status Register using the *ESE? query command.
•Bit 6, Master Summary Status (MSS)/Request Service (RQS) — A
set bit indicates that one or more enabled Status Byte conditions have
occurred. Read the MSS bit by using the STB? query command, or perform a serial poll to detect the occurrence of a service request (RQS bit
set).
•Bit 7, Operation Summary (OSB) — A set bit indicates that an
enabled operation event has occurred. The event can be identified by
reading the Operation Event Status Register using the
:STATus:OPERation? query command.
Figure 3-11
Status byte register
Bit Position
Decimal Weighting
Value : 1 = Event Bit Set
0 = Event Bit Cleared
B7B6B5B4B3B2B1B0
Event
OSBESB MAV QSB EAV
1281684
7
(2 )(2 )6(2 )5(2 )4(2 )3(2 )
Value
0/10/10/10/1
MSS,
RQS
64
32
0/1
0/1
Events : OSB = Operation Summary Bit
MSS = Master Summary Status
RQS = Request Service
ESB = Event Summary Bit
MAV = Message Available
QSB = Questionable Summary Bit
EAV = Error Available
MSB = Measurement Summary Bit
2
MSB
1
(2 )
0/1
0
3-34GPIB Operation
*TRG — TriggerSend bus trigger to 2304A
DescriptionUse the *TRG command to trigger and display a single reading for the func-
*TST? — Self-Test QueryRun self-test and read result
DescriptionUse this query command to perform a checksum test on ROM. The com-
*WAI — Wait-to-ContinueWait until previous commands are completed
DescriptionEffectively, the *WAI command is a No Op (no operation) for the Model
tion presently selected. If the average count is >1, then the single reading
will be the average reading. It has the same effect as a group execute trigger
(GET).
mand places the coded result (0 or 1) in the Output Queue. When the Model
2304A is addressed to talk, the coded result is sent from the Output Queue
to the computer.
A returned value of zero (0) indicates that the test passed, and a value of one
(1) indicates that the test has failed.
2304A and therefore, does not need to be used.
There are two types of device commands:
•Sequential commands — A command whose operations are allowed
to finish before the next command is executed.
•Overlapped commands — A command that allows the execution of
subsequent commands while device operations of the Overlapped command are still in progress.
The *WAI command is used to suspend the execution of subsequent commands until the device operations of all previous Overlapped commands are
finished. The *WAI command is not needed for Sequential commands.
4
SCPI Command Reference
4-2SCPI Command Reference
Introduction
This section contains reference information on programming the Model 2304A with the
SCPI commands. It is organized as follows:
•SCPI signal oriented measurement commands — Covers the signal oriented measurement commands. These commands are used to acquire measurement readings.
•SCPI command subsystems reference tables — Includes a summary table for each
SCPI subsystem.
•SCPI command subsystems — Provides additional information on each SCPI subsystem command.
Signal oriented measurement commands
The signal oriented measurement commands are used to acquire readings. You can use these
high-level instructions to control the measurement process. These commands are summarized
in Table 4-1.
NOTE: For all array queries, make sure the computer’s buffer is large enough to accommodate all array
readings.
Returns the last reading.
Returns the last array of readings.
Triggers a new reading and returns it.
Triggers a new array of readings and returns them.
Perform a READ? on the specified function.
Perform a READ:ARRay? on the specified function.
:FETCh?Return last reading
:FETCh:ARRay?Return last array of readings
DescriptionThe :FETCh? command is used to return the last averaged reading, and the
:FETCh:ARRay? command is used to return the last array of readings. After
sending either one of these commands and addressing the Model 2304A to
talk, the averaged reading or reading array is sent to the computer. These
commands do not affect the instrument setup.
These commands do not trigger measurements. They return the last available averaged reading or reading array. Note that they can repeatedly return
the same reading or reading array. Until there is a new reading(s), these
commands continue to return the old reading(s).
SCPI Command Reference4-3
The number of readings to average or put in an array is set using the
:SENSe:AVERage (for voltage, current and DVM readings) or
:SENSe:PCURrent:AVERage (for pulse-current readings) command. See
“Sense subsystem” for details.
NOTEThere are no AVERage commands for long integration measurements. The array size
for long integration measurements is fixed at one. Therefore, both FETCh? and
FETCh:ARRay? will return the last reading.
:READ?Trigger and return reading
:READ:ARRay?Trigger and return array of readings
DescriptionThe :READ? command is used to trigger and return a single averaged read-
ing, and the :READ:ARRay? command is used to trigger and return an array
of readings. The averaged reading or reading array is sent to the computer
and displayed when the Model 2304A is addressed to talk.
The number of readings to average or put in an array is set using the
:SENSe:AVERage (for voltage, current and DVM readings) or
:SENSe:PCURrent:AVERage (for pulse-current readings) command. See
“Sense subsystem” for details.
NOTEThere are no AVERage commands for long integration measurements. The array size
for long integration measurements is fixed at one. Therefore, both READ? and
READ:ARRay? will trigger and return a single reading.
:MEASure[:<function>]?Execute :READ? on specified function
:MEASure:ARRay[:<function>]?Execute :READ:ARRay? on specified function
Parameters<function> = CURRent[:DC]Measure current
VOLTage[:DC]Measure voltage
PCURrentMeasure pulse-current
DVMeterMeasure DVM input
LINTegrationPerform long integration current
measurements.
DescriptionWhen the MEASure? command is sent, the specified function is selected
and then the READ? is executed. When the MEASure:ARRay? command is
sent, the specified function is selected and the READ:ARRay? command is
executed. See READ? and READ:ARRay? for details.
If a function is not specified, the measurements(s) will be performed on the
function presently selected.
NOTEThere are no AVERage commands for long integration measurements. The array size
for long integration measurements is fixed at one. Therefore, MEASure:LINTegration
and MEASure:ARRay:LINTegration? are basically the same.
4-4SCPI Command Reference
SCPI command subsystems reference tables
Tables 4-2 to 4-8 summarize the commands for each SCPI subsystem. The following list
includes the SCPI subsystem commands and the table number where each command is
summarized.
•Table 4-2 DISPlay command summary
•Table 4-3 FORMat command summary
•Table 4-4 OUTPut command summary
•Table 4-5 SENSe command summary
•Table 4-6 SOURce command summary
•Table 4-7 STATus command summary
•Table 4-8 SYSTem command summary
General notes
•Brackets ([ ]) are used to denote optional character sets. These optional characters do
not have to be included in the program message. Do not use brackets in the program
message.
•Angle brackets (<>) are used to indicate parameter type. Do not use angle brackets in
the program message.
•The Boolean parameter (<b>) is used to enable or disable an instrument operation. ON
or 1 enables the operation, and 0 or OFF disables it.
•Upper case characters include the short-form version for each command word.
•Default Parameter — Listed parameters are the *RST default. Parameter notes are
located at the end of each table.
•SCPI — A checkmark (✓) indicates that the command and its parameters are SCPI
confirmed. An unmarked command indicates that it is a SCPI command but does not
conform to the SCPI standard set of commands. It is not a recognized command by the
SCPI consortium. SCPI confirmed commands that use one or more non-SCPI
parameters are explained by notes.
SCPI Command Reference4-5
Table 4-2
DISPlay command summary
CommandDescription
:DISPLay
:ENABle <b>
:ENABle?
[:WINDow[1]]
:TEXT
:DATA <a>
:DATA?
:STATe <b>
:STATe?
Notes
1. *RST has no effect on display circuitry. Cycling power enables (ON) the display circuit.
2. *RST has no effect on a user-defined message. Cycling power cancels all user-defined messages.
3. *RST has no effect on the state of the message mode. Cycling power disables (OFF) the message mode.
Enable or disable front panel display.
Query state of display.
Path to locate message display:
Control user text message:
Define ASCII message “a” (up to 32 characters).
Query text message.
Enable or disable message mode.
Query state of message mode.
Turn output on or off.
Query state of output.
Select output response mode (NORMal or ENHanced).
Query output response mode.
Close (ONE) or open (ZERO) control circuit for relay 1.
Query state of relay circuit 1.
Close (ONE) or open (ZERO) control circuit for relay 2.
Query state of relay circuit 2.
Default
parameter SCPI
ASCii
✓
✓
SWAPped
✓
✓
Default
parameter SCPI
✓
OFF
✓
✓
NORMal
✓
✓
ZERO
ZERO
4-6SCPI Command Reference
Table 4-5
SENSe command summary
CommandDescription
:SENSe[1]
:FUNCtion <name>
Select measurement function (“VOLTage,” “CURRent,”
“PCURrent,” “DVMeter,” or “LINTegration”).
:FUNCtion?
:NPLCycles <n>
Query measurement function.
Specify integration rate (in line cycles) for voltage, current,
and DVM measurements (0.01 to 10).
:NPLCycles?
:AVERage <NRf>
Query integration rate.
Specify the average count for voltage, current, and DVM
measurements (1 to 10).
AVERage?
:CURRent [:DC]
:RANGe
[:UPPer] <n>
Query average count.
Path to configure the current measurement function:
Current measurement range:
Measurement range — specify expected current (0 to
5 amps).
[:UPPer]?
:AUTO <b>
:AUTO
:PCURrent
:AVERage <NRf>
Query current measurement range.
Enable or disable auto range.
Query state of auto range.
Path to configure the pulse-current measurement function:
Specify the average count for pulse-current measurements
(1 to 100).
:AVERage?
:MODE <name>
Query average count.
Select pulse-current measurement mode (HIGH, LOW, or
AVERage).
:MODE?
:TIME
:AUTO
:HIGH <NRf>
Query pulse-current measurement mode.
Path to set pulse-current integration times:
Model 2304A sets the integration times.
Specify integration time (in sec) for high pulse
measurements (33.33E-06 to 0.8333).
:HIGH?
:LOW <NRf>
Query high integration time.
Specify integration time (in sec) for low pulse
measurements (33.33E-06 to 0.8333).
:LOW?
:AVERage <NRf>
Query low integration time.
Specify integration time (in sec) for average pulse
Query trigger edge.
Specify length of timeout; 1 to 63 (seconds).
Query timeout.
Enable or disable pulse search.
Query state of pulse search.
Table 4-6
SOURce command summary
SCPI Command Reference4-7
Default
parameterSCPI
0
1
0
RISING
16
ON
CommandDescription
[:SOURce]
:VOLTage
Path to set output voltage:
[:LEVel]
[:IMMediate]
[AMPLitude] <n>
[AMPLitude]?
:CURRent
:LIMit
Specify voltage amplitude (0 to 20 volts).
Query voltage amplitude.
Path to configure current:
Path to configure current limit:
[:VALue] <NRf>
[:VALue]?
:TYPE <name>
:TYPE?
:STATe?
Specify current limit value (0 to 5 amps).
Query current limit value.
Select current limit type (LIMit or TRIP).
Query current limit type.
Query state of current limit: 1 = in current
limit (for LIMit type) or output tripped (for
TRIP type), 0=not in LIMit/TRIP.
Default
parameter SCPI
✓
✓
0
✓
✓
✓
0.25
LIM
4-8SCPI Command Reference
Table 4-7
STATus command summary
CommandDescription
Default
parameterSCPI
:STATus
:MEASurement
[:EVENt]?
:ENABle <NRf>
:ENABle?
:CONDition?
:OPERation
[:EVENt]?
:ENABle <NRf>
:ENABle?
:CONDition?
:QUEStionable
[:EVENt]?
:ENABle <NRf>
:ENABle?
:CONDition?
:PRESet
:QUEue
[:NEXT]?
:ENABle <list>
:ENABle?
:DISable <list>
:DISable?
:CLEar
Notes:
1. Commands in this subsystem are not affected by *RST. The effects of cycling power, *CLS, and :STATus:PRESet are explained
by the following notes.
2. Event RegistersPower-up and *CLS — Clears all bits of the registers
3. Enable RegistersPower-up and :STATus:PRESet — Clears all bits of the registers
4. Error Queue Power-up and *CLS — Clears the Error Queue
5. Enable/DisablePower-up — Clears list of messages
Error Queue Messages*CLS and :STATus:PRESet — No effect
Path to control the measurement event registers:
Read the event register.
Program the enable register.
Read the enable register.
Read the condition register.
Path to control the operation status registers:
Read the event register.
Program the enable register.
Read the enable register.
Read the condition register.
Path to control the questionable status registers:
Read the event register.
Program the enable register.
Read the enable register.
Read the condition register.
Return status registers to default states.
Path to access Error Queue.
Query SCPI version level.
Read Error Queue.
Clears Error Queue.
Query power line frequency setting.
Select power-on setup: RST or SAVX (where X = 0 to 4).
Query power-on setup.
:DISPlay subsystem
The display subsystem controls the display of the Model 2304A and is summarized in
Table 4-2.
:ENABle <b>
:DISPlay:ENABle <b>Control display circuitry
Parameters<b> =0 or OFFDisable display circuitry
SCPI Command Reference4-9
Default
parameter SCPI
✓
1 or ONEnable display circuitry
Query:ENABle?Query state of display
DescriptionThis command is used to enable and disable the front panel display cir-
cuitry. When disabled, the instrument operates at a higher speed. While disabled, the display is blank.
All front panel controls (except LOCAL) are disabled. Normal display operation can be resumed by using the :ENABle command to enable the display
or by putting the Model 2304A into local.
4-10SCPI Command Reference
:DATA <a>
:DISPlay[:WINDow[1]]:TEXT:DATA <a> Define message up to 32 ASCII characters
Parameters<a> = ASCII characters for message
Indefinite Block#0aa...a
Query :DATA?Query the defined text message
DescriptionThis command defines a text message for the display. A message is made up
Types: String‘aa...a’ or “aa...a”
of 32 characters and starts on the top line of the display and wraps down to
the bottom line. Spaces are counted as characters and can be used to properly position the message on the display. If your message is less than 32
characters, the appropriate number of spaces are added at the end. If your
message is greater than 32 characters, it will not be displayed. On power-up,
the message is a string of 32 spaces.
An indefinite block message must be the only command in the program
message or the last command in the program message. If you include a command after an indefinite block message (on the same line), it will be treated
as part of the message and is displayed instead of executed.
Use the next command to enable the text message mode.
DescriptionThis command enables or disables the text message mode. When enabled,
the text message is displayed. If no message is defined, a string of 32 spaces
is displayed. When disabled, the message is removed from display. The display returns to the normal display state.
A text message remains displayed only as long as the instrument is in
remote. Taking the instrument out of remote (by pressing the LOCAL key or
sending LOCAL 16) cancels the message and disables the text message
mode.
FORMat subsystem
The commands for this subsystem are used to select the data format for transferring instru-
ment readings over the bus. These commands are summarized in Table 4-3.
[:DATA] <type>
:FORMat[:DATA] <type>Select data format
Parameters<type> =ASCiiASCII format
Query[:DATA]? Query data format
DescriptionThis command is used to select the data format for transferring readings
NOTERegardless of which data format for output strings is selected, the SourceMeter will
only respond to input commands using the ASCII format.
SCPI Command Reference4-11
SREalIEEE754 single precision format
DREalIEEE754 double precision format
over the bus. The reading(s) that is sent (voltage, current, pulse-current,
DVM or long integration) depends on the presently selected function. See
the :FUNCtion command (SENSe subsystem) and Signal Oriented Measurement Commands for more information.
ASCII format
The ASCII data format is in a direct readable form for the operator. Most
BASIC languages easily convert ASCII mantissa and exponent to other formats. However, some speed is compromised to accommodate the conversion. The following shows the ASCII format for a reading of 10.058 volts.
+1.00580000 E+01
IEEE754 formats
SREal will select the binary IEEE754 single precision data format. Figure
4-1 shows the normal byte order format for each data element (voltage, current, etc.). Note that the data string for each reading conversion is preceded
by a 2-byte header that is the binary equivalent of an ASCII # sign and 0.
Not shown in Figure 4-1 is a byte for the terminator that is attached to the
end of each data string.
4-12SCPI Command Reference
Fi
1
I
p
gure 4-
EEE754 single
recision data format
Header
Byte 1
Byte 2
Byte 3
Byte 4
# 0
70
70
70
70
sef
s = sign bit (0 = positive, 1 = negative)
e = exponent bits (8)
f = fraction bits (23)
Normal byte order shown. For swapped byte order,
bytes sent in reverse order: Header, Byte 4, Byte 3,
Byte 2, Byte 1.
The Header is only sent once for each measurement conversion.
DREal selects the binary IEEE754 double precision data format and is
shown in Figure 4-2 (normal byte order shown). This format is similar to the
single precision format except that it is 64 bits long.
During binary transfers, never un-talk the Model 2304A until after the data
is read (input) to the computer. Also, to avoid erratic operation, the readings
of the data string (and terminator) should be acquired in one piece. The
header (#0) can be read separately before the rest of the string.
The number of bytes to be transferred can be calculated as follows:
where: 2 is the number of bytes for the header (#0).
Rdgs is the number of readings to be transferred.
4 or 8 is the number of bytes for each reading.
1 is the byte for the terminator.
For example, assume that the power supply is configured to trigger 10 voltage readings and send the 10 voltage measurements to the computer using
the binary format.
s = sign bit (0 = positive, 1 = negative)
e = exponent bits (11)
f = fraction bits (52)
Normal byte order shown. For swapped byte order,
bytes sent in reverse order: Header, Byte 8,
Byte 7 .... Byte 1.
The Header is only sent once for each measurement conversion.
The following programming example shows how to properly send this
binary string to the computer and display the binary readings.
Program fragment of binary data transfer
PRINT #1, "output 16; *rst; *cls" ' line 1
PRINT #1, "output 16; :source:voltage 15"' line 2
PRINT #1, "output 16; :sense:average 10"' line 3
PRINT #1, "output 16; :format sreal" ' line 4
PRINT #1, "output 16; :output on" ' line 5
PRINT #1, "output 16; :read:array?" ' line 6
PRINT #1, "enter 16 #43" ' line 7
r$ = INPUT$(2, #2) ' line 8
r$ = INPUT$(41, #2)' line 9
PRINT #1, "abort"' line 10
FOR I = 1 TO 40 STEP 4' line 11
Char$ = MID$(r$, I, 4)' line 12
PRINT Char$' line 13
NEXT' line 14
END
4-14SCPI Command Reference
:BORDer <name>
:FORMat:BORDer <name>Specify binary byte order
Parameters<name> =NORMalNormal byte order for binary formats
Comments
Line 1 — Return to default configuration.
Line 2 — Set output voltage to 15V.
Line 3 — Set average count to 10.
Line 4 — Select binary data format.
Line 5 — Turn output on.
Line 6 — Trigger 10 readings.
Line 7 — Address Model 2304A to talk: 43 bytes (two for the #0 header, 40
for the 10 readings, and one for the terminator).
Line 8 — Read first two bytes (#0) of the binary string.
Line 9 — Read the rest of the binary string (40 data bytes and one
terminator byte).
Line 10 — Un-talk the Model 2304A.
Lines 11 through 14 — Retrieve the ten 4-byte readings from the string and
display them on the computer CRT.
SWAPpedReverse byte order for binary formats
Query:BORDer?Query byte order
DescriptionThis command is used to control the byte order for the IEEE754 binary for-
mats. For normal byte order, the data format for each element is sent as follows:
Byte 1Byte 2Byte 3Byte 4(Single precision)
Byte 1Byte 2• • •Byte 8(Double precision)
For reverse byte order, the data format for each element is sent as follows:
DVM measurements can be performed with the output off.
ENHancedEnhanced response mode
Query:RESPonse?Query output response mode
DescriptionThis command is used to check or change output response mode. In the
NORMal mode, the standard output characteristics are in effect. In general,
the ENHanced mode is used to improve transient response to load changes.
However, maximum output voltage in this mode is 15V. The output
response mode cannot be changed when the output is on or the output voltage setting is set outside the maximum constraints.
See Section 2, “Enhanced output response” for more information.
:RELay1 <name>
:OUTPut:RELay1 <name>Close or open relay control circuit 1
Parameters<name> =ONEClose relay control circuit 1
ZEROOpen relay control circuit 1
Query:RELay1?Query state of relay circuit 1
DescriptionThis command is used to control the circuit for relay 1. The ONE parameter
closes the control circuit allowing the relay to energize. The ZERO parameter opens the control circuit allowing the relay to de-energize. See Section 2,
“Relay control” for details on using external relays.
4-16SCPI Command Reference
:RELay2 <name>
:OUTPut:RELay2 <name>Close or open relay control circuit 2
Parameters<name> =ONEClose relay control circuit 2
Query:RELay2?Query state of relay circuit 2
DescriptionThis command is used to control the circuit for relay 2. The ONE parameter
SENSe subsystem
:FUNCtion <name>
:SENSe[1]:FUNCtion <name>Select measurement function
Parameters<name> =“VOLTage”Volts readback
ZEROOpen relay control circuit 2
closes the control circuit allowing the relay to energize. The ZERO parameter opens the control circuit allowing the relay to de-energize. See Section 2,
“Relay control” for details on using external relays.
DescriptionThis command is used to select the function that is to be measured and dis-
played. The “VOLTage,” “CURRent,” “PCURrent,” and “LINTegration”
functions read back what is being output by the power supply. “VOLTage”
and “CURRent” displays ACTUAL V AND I measurements, “PCURrent”
displays PULSE CURRENT measurements, and “LINTegration” displays
long integration current measurements. The pulse-current measurement type
(high, low, or average) is selected using the MODE command.
With “DVMeter” selected, the instrument displays and measures voltage
applied to the input of the digital voltmeter (DVM).
Voltage, current, and DVM commands
:NPLCycles <n>
:SENSe[1]:NPLCycles <n>Set speed (PLC)
Parameters<n> =0.01 to 10 Power-line cycles per integration
DescriptionThis command is used to set the integration period (speed) for voltage, cur-
rent, and DVM measurements. NPLC (number of power line cycles)
expresses the integration period by basing it on the power line frequency.
For example, for a PLC of 1, the integration period would be 1/60 (for 60Hz
line power) which is 16.67 msec.
The integration period for pulse-current measurements is set using the
:PCURrent:TIME commands. For long integration measurements, use
:LINTegration:TIME.
SCPI Command Reference4-17
:AVERage <NRf>
:SENSe[1]:AVERage <NRf>Specify average count
Parameters<NRf> =1 to 10Specify average count
Query:AVERage?Query filter count
DescriptionThis command is used to specify the average count for voltage, current, and
DVM measurements.
When requesting a single reading (:FETCh?, :READ?, or :MEASure?),
average count specifies the number of measurement conversions to average
for the reading. For example, with the average count set to 10, :READ? will
trigger 10 measurement conversions and return (and display) the average of
those 10 conversions.
When requesting an array of readings (:FETCh:ARRay?, :READ:ARRay?,
or :MEASure:ARRay?), average count specifies the number of measurement conversions to place in the array. For example, with the average count
set to 10, :READ:ARRay? will trigger 10 measurements and return all 10
readings.
NOTEFor pulse-current measurements, use the :PCURrent:AVERage command to specify
the average count (see “Pulse-current commands”).
4-18SCPI Command Reference
Current range commands
[:UPPer] <n>
:SENSe[1]:CURRent[:DC]:RANGe[:UPPer] <n>Select current measurement range
Parameters<n> =0 to 5Expected reading in amps
Query:RANGe?Query measurement range
DescriptionThis command is used to manually select the measurement range for current
DEFault5A range
MINimum5mA range
MAXimum5A range
:RANGe? DEFaultQuery *RST default range
:RANGe? MINimumQuery lowest range
:RANGe? MAXimumQuery highest range
measurements. The range is selected by specifying the expected current
reading. The instrument will then go to the most sensitive range (5ma or 5A)
that will accommodate that reading. For example, if you expect a reading of
approximately 100ma, then let <n> = 0.1 (or 100e-3) in order to select the
5A range.
NOTEAll pulse-current and long integration measurements are done on the 5A range.
:AUTO <b>
:SENSe[1]:CURRent[:DC]:RANGe:AUTO <b>
Parameters<b> =1 or ONEnable auto range
0 or OFFDisable auto range
Query:AUTO?Query auto range (on or off)
DescriptionThis command is used to control auto ranging. When enabled, the instru-
ment automatically goes to the most sensitive range (5mA or 5A) to perform
the current measurement.
The auto range command (:RANGe:AUTO <b>) is coupled to the command
that manually selects the current measurement range (:RANGe <n>). When
auto range is enabled, the parameter value for :RANGe <n> changes to the
automatically selected range value. If you then disable auto range, the
instrument will remain at the automatically selected range. When a valid
:RANGe <n> command is sent, auto range disables.
DescriptionThis command is used to select the pulse-current measurement mode. With
HIGH selected, the measurement conversion is performed at the peak of
each pulse. With LOW selected, the measurement conversion is performed
at pulse low. With AVERage mode selected, the measurement conversion
encompasses both the high and low periods of the pulse to determine the
average current.
The :PCURrent:AVERage command is used to specify the average count for
the measurements.
The :PCURrent:TIME commands are used to set the integration times for
the pulse-current measurement modes.
SCPI Command Reference4-19
LOWMeasure idle current
AVERageMeasure average transmit current
Parameters<NRf> =1 to 100Specify number of pulse readings to
average. (sens:pcur:sync:stat ON)
<NRf> =1 to 5000Specify number of readings to take to
digitize the pulse.
(sens:pcur:sync:stat OFF)
Query:AVERage?Query pulse count
DescriptionThis command is used to specify the average count for pulse-current mea-
surements.
When requesting a single reading (:FETCh?, :READ?, or :MEASure?),
average count specifies the number of pulse-current measurement conversions to average for the reading. For example, with the average count set to
10, :READ? will trigger 10 pulse-current measurement conversions and
return (and display) the average of those 10 conversions.
When requesting an array of readings (:FETCh:ARRay?, :READ:ARRay?,
or :MEASure:ARRay?), average count specifies the number of pulsecurrent measurement conversions to place in the array. For example, with
the average count set to 10, :READ:ARRay? will trigger 10 measurements
and return all 10 readings.
4-20SCPI Command Reference
:TIMe commands
:HIGH <NRf> :LOW <NRf> :AVERage <NRf>
:SENSe[1]:PCURrent:TIMe:HIGH <NRf>Set integration time for High mode
:SENSe[1]:PCURrent:TIMe:LOW <NRf>Set integration time for Low mode
:SENSe[1]:PCURrent:TIMe:AVERage <NRf>Set integration time for Average mode
Parameters<NRf> = 33.33E-06 to 0.8333Integration time in seconds
QueryHIGH?Query integration time for High mode
DescriptionThese commands are used to manually set the integration time (speed) for
LOW?Query integration time for Low mode
AVERage?Query integration time for Average mode
the three pulse-current measurement modes: High mode, Low mode, and
Average mode.
In general, the longer the integration period, the more accurate the measurement. However, you must make sure that an integration period does not
extend into the wrong portion of the pulse or into the next pulse. Be sure to
factor in trigger delay when determining integration times.
Integration times can instead be set automatically by the Model 2304A (see
:AUTO).
The integration period for voltage, current, and DVM measurements is set
using the :NPLCycles command.
:AUTO
:SENSe[1]:PCURrent:TIMe:AUTOSet integration period automatically
DescriptionUse this command to automatically set the integration times for pulse-
current measurements. When this action command is sent, the instrument
measures the high and low periods of the detected pulse and sets appropriate
high, low, and average integration times. This feature can detect pulses from
80µsec to 833msec.
These three integration times apply for all subsequent pulse measurements
until this command is again sent or the times are changed manually.
Parameters<b> =1 or ONEnable trigger synchronization
Query:SYNChronize?Query state of trigger synchronization
DescriptionThis command is used to enable or disable trigger synchronization for
pulse-current measurements. When enabled, a pulse-current reading will not
be triggered until the specified trigger level is detected and the specified
trigger delay period expires. See :TLEVel and :DELay to set the trigger
level and trigger delay.
When disabled (OFF), pulse current digitization is selected, where readings
are taken at a constant integration time of 33µsec across the pulse or pulse
train. The bottom line of the front panel display will show “DIGITIZE”
instead of readings. The top line will indicate the mode or “NO PULSE,” if
the pulse is not detected due to no pulse being present or an invalid
:PCUR:SYNC:TLEVel setting. The digitization process syncs up to the
edge specified by :PCUR:MODE (rising edge for High or Average mode,
falling edge for Low mode), waits for any delay specified by
:PCUR:SYNC:DELay, and takes all of the specified readings. The number
of readings is determined by the :PCUR:AVER command and can range
from 1 to 5000 when queried over the bus and :PCUR:SYNC is OFF.
SCPI Command Reference4-21
(for pulse current)
0 or OFFDisable trigger synchronization
(for digitization)
NOTEAlthough the integration time is 33µsec, some processing time is needed between
readings. The time between readings including integration and processing time is
about 278µsec.
:TLEVel <NRf>
:SENSe[1]:PCURrent:SYNChronize:TLEVel <NRf> Set trigger level
Parameters<NRf> = 0 to 5 Specify trigger level in amps
(1mA resolution)
Query:TLEVel?Query trigger level
DescriptionThis command is used to set the trigger level for pulse-current measure-
ments. This level defines the minimum current pulse level that is needed to
trigger a reading conversion. For example, if the trigger level is set for 2A,
then current pulses less than 2A will not be detected and therefore not measured. A valid trigger level for detecting the pulse is needed whether trigger
synchronization is enabled or disabled.
When the trigger level is detected, the reading conversion will not occur
until after the trigger delay period expires (see next command).
Parameters<NRf> = 0 to 0.1 Trigger delay in seconds
Query:DELay?Query trigger delay
DescriptionThis command is used to set the trigger delay for pulse-current measure-
ments. After detecting the pulse based on the trigger level setting, the reading conversion occurs after the delay period expires.
The smallest step size for trigger delay is 10µsec. If you specify a smaller
step size, it is adjusted up to the next 10µsec step value. For example,
43µsec is adjusted up to 50µsec.
Long integration commands
The following commands are used to configure long integration current measurements. The
long integration current measurement function is selected using the :SENSe:FUNCtion command. For more information on these measurements, see Section 2, “Long integration current
measurements.” When triggering long integration readings with high long integration times,
wait enough time for readings to complete before addressing the power supply to talk.
:TIME <NRf>
:SENSe[1]:LINTegration:TIME <NRf>Set integration time manually
Parameters<NRf> =0.850000 to 60Specify integration time (in seconds) for
60Hz power line frequency.
0.840000 to 60Specify integration time (in seconds) for
50Hz power line frequency.
Query:TIME?Query integration time period
DescriptionThis command is used to manually set the long integration time period.
Make sure that the integration period does not extend into a pulse that you
do not want measured, or an erroneous reading will result.
As shown in “Parameters” the minimum time value depends on the frequency of the power line (60Hz or 50Hz). The time value sent is rounded
down to the nearest step value, which is also based on power line frequency.
For 60Hz, the step value is 16.667msec. For 50Hz, the step value is 20msec.
For example, for 50Hz, a time of value of 10.025 seconds is between steps.
Therefore, the integration time period will round down to 10.020 seconds.
When there is uncertainty about the actual integration time period, use the
TIME? query command to read it.
NOTEThe integration time for long integration measurements can instead be set automati-
cally by the Model 2304A using the TIME:AUTO command.
SCPI Command Reference4-23
:TIME:AUTO
:SENSe[1]:LINTegration:TIME:AUTOSet integration time period automatically
DescriptionThis command automatically sets the integration time period for long inte-
gration current measurements. When this action command is sent, the
instrument measures the time between the two rising pulse edges and sets an
appropriate integration time that will encompass the high and low periods of
the pulse.
This integration time applies for all subsequent long integration current
measurements until this command is again sent or the time is changed
manually.
Parameters<NRf> = 0 to 5Specify trigger level in amps
(5mA resolution)
Query:TLEVel?Query trigger level
DescriptionThis command is used to set the trigger level for long integration measure-
ments. This level defines the minimum current pulse level that is needed to
trigger the start of the long integration. For example, if the trigger level is set
for 2A, current pulses less than 2A will be ignored.
Parameters<name> =RISINGTrigger on rising pulse edge
FALLINGTrigger falling pulse edge
NEITHERPulse edges not used to start
measurements
Query:TEDGe? Query trigger edge selection
DescriptionWith this command, you can use the pulse edge to trigger the start of the
measurement. With RISING selected, the rising edge of a pulse will trigger
the start of a measurement. With FALLING selected, the falling edge of a
pulse will trigger the start of a measurement. With NEITHER selected, a
pulse edge is not used to start the trigger.
Keep in mind that a pulse has to be detected before a rising or falling pulse
edge can start a long integration measurement. All pulses that are less than
the specified trigger level are ignored. With NEITHER selected, the measurement will start as soon as the 2304A is ready to trigger the reading,
since the reading does not sync up to a pulse edge. The previous command
(TLEVel) is used to set the pulse detection trigger level.
4-24SCPI Command Reference
:TimeOUT <NRf>
:SENSe[1]:LINTegration:TimeOUT <NRf>Specify time for timeout message
Parameters<NRf> =1 to 63Set timeout in seconds
Query:TimeOUT?Query length of timeout
DescriptionThis command is used to specify how long the instrument will search for a
DescriptionThis command is used to enable or disable pulse search. With the search
pulse before timing out and displaying the “NO PULSE” message. The
instrument will continue to search for a pulse, unless SEARch is disabled
(see next command). Timeout is used when TEDGe is set to RISING or
FALLING. No search for a pulse is done when NEITHER trigger edge is
selected.
0 or OFFDisable pulse search
enabled, the instrument will continue to search for a pulse after the timeout
period expires (see previous command). Therefore, with a high timeout setting and search enabled, the power supply may appear locked up when it is
searching for the pulse to start long integration. In addition, the time needed
to execute code after timing out, and to start searching for the pulse, is fast
compared to timeout settings. Hence, with NO PULSE detection and search
enabled, the power supply is particularly searching for the pulse.
With the search disabled, the search will stop after the first timeout period
expires. The search can be restarted by enabling the search, or by sending a
trigger reading command (such as :READ?).
SOURce subsystem
This subsystem is used to set the voltage value and configure current limit for the power sup-
ply. These commands are summarized in Table 4-6.
Set voltage value
VOLTage <n>
[:SOURce]:VOLTage[:LEVel][:IMMediate][:AMPLitude] <n>Set output voltage value
Parameters<n> =0 to 20 Set output voltage (in volts)
Query:VOLTage?Query programmed output voltage
:VOLTage? DEFaultQuery *RST default voltage
:VOLTage? MINimumQuery lowest allowable voltage
:VOLTage? MAXimumQuery highest allowable voltage
DescriptionThis command is used to program the output voltage of the power supply.
Voltage can be set from 0 to +20V with 1mV resolution.
SCPI Command Reference4-25
MINimum0V
MAXimum-20V
DEFault0V
NOTEIf in enhanced output response mode, 15V is the MAXimum setting.
Configure current limit
:LIMit <n>
[:SOURce]:CURRent:LIMit[:VALue] <n>Set current limit value
DescriptionThis command is used to set the current limit for the power supply. On the
5A measurement range or with auto range enabled, the maximum current
limit setting is 5A. On the 5mA range (auto range disabled), the maximum
current limit setting is 1A. Programming resolution is 1.25mA. Output current will not exceed the programmed limit.
MINimum0A
MAXimum+5A
DEFault0V
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.