User`s guide
Table Of Contents
- Agilent E3632A DC Power Supply
- Table of Contents
- List of Figures
- List of Tables
- 1 Getting Started
- 2 Operation and Features
- Overview
- Constant Voltage Operation
- Constant Current Operation
- Storing and Recalling Operating States
- Programming the Overvoltage Protection
- Programming the Overcurrent Protection
- Remote Voltage Sensing
- Disabling the Output
- System-Related Operations
- Remote Interface Configuration
- GPIB Interface Configuration
- RS-232 Interface Configuration
- Calibration
- 3 Remote Interface Reference
- SCPI Command Summary
- Introduction to the SCPI Language
- Simplified Programming Overview
- Using the APPLy Command
- Output Settings and Operation Commands
- Triggering Commands
- System-Related Commands
- Calibration Commands
- RS-232 Interface Commands
- SCPI Status Registers
- What is an event register?
- What is an enable register?
- SCPI status system
- The Questionable Status register
- The Standard Event register
- The Status Byte register
- Using Service Request (SRQ) and Serial POLL
- Using *STB? to read the Status Byte
- Using the Message Available Bit (MAV)
- To interrupt your bus controller using SRQ
- To determine when a command sequence is completed
- Using *OPC to signal when data is in the output buffer
- Status Reporting Commands
- Halting an Output in Progress
- SCPI Conformance Information
- IEEE-488 Conformance Information
- 4 Error Messages
- 5 Application Programs
- 6 Tutorial
- 7 Characteristics and Specifications
5 Application Programs
Example Program for Excel 5.0 (Windows 3.1 and GPIB)
144 E3632A User’s Guide
Example Program for Excel 5.0 (Windows 3.1 and GPIB)
Excel VB Macros may be used to control your Agilent
E3632A. With Excel you can take the value of a cell in a
spread sheet, send it to the power supply, and then record
the response on the worksheet. The example on the
following pages characterizes a component across the Agilent
E3632A terminals. This example reads 11 voltages from a
worksheet, programs the Agilent E3632A to that voltage, and
then reads the current. The value of current is recorded
next to the voltage on the spread sheet. The example is for
Excel 5.0 in Windows 3.1.
To write macros and control the power supply in Excel first
open a module in Excel. From the Insert menu choose Macro
and then Module. Name the module created this way Diode
bas (click the right mouse button on the tab). Create one
more module named GPIB bas. The module GPIB bas will
set up all the overhead needed to talk to the GPIB port. This
module will subroutines that allow the communication in a
simple form. The macro called Diode is an example that
tests a diode using the other module.
To try the example for characterizing a diode, type in both
modules. Once the modules are completed, go to a
worksheet. In cell A4 type Volts, in cell B4 type Current.
In cells A5 type 0.6. Fill in the cells A4 to A15 in 0.02
increments so that cell A15 contains 0.8.
Now while the cursor is still in the worksheet, select Tools,
Macro from the menu. Double click on the Diode macro in
the Macro dialog box. The power supply will reset to power
on condition and then step through the voltages in the
worksheet. After each step the current is measured, and
recorded in the worksheet.
Make any changes to suit your needs in the Diode bas
module. Change the GPIB address in the routine
OpenPort( ) contained in the GPIB bas module. If there is a
system error when trying to run the macro, you may have to
reboot the PC for the GPIB port to work.