D

Example Programs

Introduction

The example programs in this section are intended to show how some of the same dc source functions can be programmed to each of the following GPIB interfaces:

1.HP Vectra PC controller with Agilent 82335A GPIB Interface Command Library

2.IBM PC controller with National Instuments GPIB-PCII Interface/Handler

3.Agilent controller with BASIC Language System

Assigning the GPIB Address in Programs

The dc source address cannot be set remotely. It must be set using the front panel Address key. Once the address is set, you can assign it inside programs. The following examples assume that the GPIB select code is 7, and the dc source is assigned to the variable PS.

1070 PS=706

!Agilent 82335A Interface

1070 ASSIGN @PS TO 706

!BASIC Interface

For systems using the National Instruments DOS driver, the address is specified in the software configuration program (IBCONFIG.EXE) and assigned a symbolic name. The address then is referenced only by this name within the application program (see the National Instruments GPIB documentation).

Types of DOS Drivers

The Agilent 82335A and National Instruments GPIB are two popular DOS drivers. Each is briefly described here. See the software documention supplied with the driver for more details.

Agilent 82335A Driver

For GW-BASIC programming, the GPIB library is implemented as a series of subroutine calls. To access these subroutines, your application program must include the header file SETUP.BAS, which is part of the DOS driver software.

SETUP.BAS starts at program line 5 and can run up to line 999. Your application programs must begin at line 1000. SETUP.BAS has built-in error checking routines that provide a method to check for GPIB errors during program execution. You can use the error-trapping code in these routines or write your own code using the same variables as used by SETUP.BAS.

National Instruments GPIB Driver

Your program must include the National Instruments header file DECL.BAS. This contains the initialization code for the interface. Prior to running any applications programs, you must set up the interface with the configuration program (IBCONF.EXE).

93

Page 93
Image 93
Agilent Technologies 6632B, 6634B manual Assigning the Gpib Address in Programs, Types of DOS Drivers, Agilent 82335A Driver

6613C, 66312A, 6631B, 6611C, 6614C specifications

Agilent Technologies, a leader in electronic test and measurement solutions, offers a range of power supplies designed to meet various application needs. Notable models include the 6632B, 6634B, 66332A, 6633B, and 6612C. Each of these units provides unique features and technologies that cater to researchers, engineers, and technicians in the industry.

The Agilent 6632B is a single-output DC power supply that delivers up to 30V and 3A. It is known for its excellent load regulation and low noise, making it ideal for sensitive electronic testing. The model includes built-in voltage and current measurement capabilities, allowing users to monitor output conditions in real time. The 6632B is commonly used in laboratory environments, educational institutions, and manufacturing lines.

Moving to the 6634B, this model offers dual-output capabilities with a maximum output of 30V and 6A. This versatility enables simultaneous powering of two different devices or circuit sections. It also features parallel and series operation options, allowing users to create a custom power supply configuration for specific applications. With a programmable interface, the 6634B simplifies test automation, ensuring efficiency in extensive testing scenarios.

The Agilent 66332A stands out with its precision and high performance. This power supply provides three outputs—two programmable and one fixed—yielding flexible power configurations. Its intuitive user interface allows easy adjustment of voltage and current settings. The device is equipped with extensive protection features to safeguard both the power supply and the connected load against faults. It is an excellent choice for complex testing setups that require reliable power.

The 6633B model offers a high-performance power supply with dual outputs, similar to the 6634B but with enhanced specifications. It can provide up to 40V and 2A per channel, delivering precision for demanding applications. This model is particularly suited for industries focused on high-reliability applications, such as telecommunications and aerospace.

Lastly, the Agilent 6612C is a compact and lightweight power supply providing single-output up to 60V and 2A. This model is designed for simplicity and ease of use, making it an excellent choice for portable applications. The 6612C’s unique characteristics include a compact design and user-friendly controls, which facilitate operation in field settings.

In summary, Agilent Technologies’ power supply models—6632B, 6634B, 66332A, 6633B, and 6612C—offer an array of features that cater to a wide range of testing and research needs, ensuring reliable power delivery in various contexts.