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
Application Programs 5
Example Program for C++ (GPIB IEEE 488)
E3632A User’s Guide 141
Example Program for C++ (GPIB IEEE 488)
This following C programming example shows sending and
receiving formatted I/O. Refer to the VISA User’s Guide for
non- formatted I/O. This example program is intended to
show the use of SCPI commands and VISA functionality and
does not include error trapping. Error trapping, however, is
good programming practice and is recommended in your
application. Refer to the VISA User’s Guide for more
information about error trapping.
The example program was written in Microsoft Visual C++
ver 1.52, project type “QuickWin application”, using the large
memory model. Be sure to move the “visa.lib” and “visa.h”
file to the lib and include development directory. These are
usually found at c:\vxipnp\win\lib\msc\ and
c:\vxipnp\win\include.
Diode.c
/*Diode.C
This example program steps the E3632A DC Power Supply through 10 voltages and measures the
current response. It prints the voltage step and the current response as a table. Note that
the GPIB address is the default address from the factory for the E3632A.*/
#include <visa.h>
#include <stdio.h>
#include <string.h>
#include <time.h>
/* Provides a delay of the specified time wait in milliseconds*/
void delay( clock_t wait );
void main ()
{
ViSession defaultRM; /* resource manager id */
ViSession power_supply; /* session id to an instrument */
char reply_string [256]; /* string returned from instrument */
char GPIB_address [3]; /* GPIB address of instrument */
char Visa_address[40]; /* Complete VISA address send to card */
double voltage; /* value of voltage sent to power supply */
double current; /* value of current output of power supply */