Agilent Technologies 668xA, 665xA DOS Drivers, Agilent BASIC Controllers, Sample Program Code

Page 19
DOS Drivers

DOS Drivers

Types of Drivers

The Agilent 82335A and National Instruments GP-IB are two popular DOS drivers. Each is briefly described here. See the software documentation 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 GP-IB 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).

Your application program will not include the power supply symbolic name and GPIB address. These must be specified during configuration (when you run IBCONF.EXE). Note that the primary address range is from 0 to 30 but any secondary address must be specified in the address range of 96 to 126. The power supply expects a message termination on EOI or line feed, so set EOI w/last byte of Write. It is also recommended that you set Disable Auto Serial Polling.

All function calls return the status word IBSTA%, which contains a bit (ERR) that is set if the call results in an error. When ERR is set, an appropriate code is placed in variable IBERR%. Be sure to check IBSTA% after every function call. If it is not equal to zero, branch to an error handler that reads IBERR% to extract the specific error.

Error Handling

If there is no error-handling code in your program, undetected errors can cause unpredictable results. This includes "hanging up" the controller and forcing you to reset the system. Both of the above DOS drivers have routines for detecting program execution errors.

Important Use error detection after every call to a subroutine.

Agilent BASIC Controllers

The Agilent BASIC Programming Language provides access to GPIB functions at the operating system level. This makes it unnecessary to have the header files required in front of DOS applications programs. Also, you do not have to be concerned about controller "hangups" as long as your program includes a timeout statement. Because the power supply can be programmed to generate SRQ on errors, your program can use an SRQ service routine for decoding detected errors. The detectable errors are listed in Table 5-1 of "Chapter 5 - Error Messages".

Sample Program Code

The following programs are intended only to show how some of the same power supply functions can be programmed to each of the three previously mentioned GPIB interfaces. The first two are for the DOS interfaces and the third for the Agilent BASIC interface.

20 Remote Programming

Image 19
Contents July PROGRAMMING GUIDE GPIB DC POWER SUPPLIESAgilent Part No Microfiche Part NoPrinting History Safety GuidelinesLANGUAGE DICTIONARY ContentsGENERAL INFORMATION REMOTE PROGRAMMINGDescription of Subsystem Commands COMPATIBILITY LANGUAGE ERROR MESSAGESSTATUS REPORTING SCPI CONFORMANCE INFORMATIONUser’s Guide General InformationAbout this Guide Documentation SummaryAccessing Online Help Prerequisites for Using this GuideVXIplug&play Power Product Instrument Drivers Downloading and Installing the DriverConventions GPIB Capabilities Of The Power SupplyRemote Programming Introduction To SCPICommon Commands Types of SCPI CommandsSCPI Messages Structure of a SCPI MessageVOLT LEV PROT CURR Parts of a SCPI MessageFigure 2-1.Command Message Structure Message ComponentRoot Specifier Traversing the Command TreeQuery Indicator Message Unit SeparatorMoving Among Subsystems Figure 2-2.Partial Command TreeActive Header Path The Effect of Optional HeadersSCPI Data Formats Including Common CommandsSCPI Queries Value CouplingClass ExamplesListening Formats Table 2-2.Suffixes and MultipliersProgramming Voltage and Current Controlling the OutputDisable the output Enable the outputWriting to the Display Saving and Recalling StatesProgramming Status Programming the Digital I/O Port System ConsiderationsThe GPIB Address A direct primary address and a secondary address Error Handling DOS DriversAgilent BASIC Controllers Sample Program CodeController Using Agilent 82335A Interface Programming Some Power Supply Functions22 Remote Programming Programming Some Power Supply Functions continued1130 24 Remote Programming Language Dictionary Related CommandsCommon Commands Subsystem CommandsFigure 3-1.Common Commands Syntax Diagram Description Of Common CommandsDescription Meaning and Type0 to Query Syntax ESR?IDN? Related CommandsPSC 0 *PSC OPC?OPT? Power-onStatus Clear Device InitializationDescription Meaning and TypeDescription Bit Configuration of Status Byte Register STB?TST? Figure 3-2.Subsystem Commands Tree Diagram Description of Subsystem CommandsCalibration Commands ABORCURRENT:LEVEL 200 MA Current SubsystemCURR CURR TRIG CURR PROT STATDigital I/O Port Programming Chart Display SubsystemDIG DATA DISPenclosed in either single ‘ or double quotes DISP MODEDISP TEXT DISP TEXT DEFAULT MODEMEAS CURR? MEAS VOLT? Initiate SubsystemMeasure Subsystem INIT INIT:CONT0 or Output SubsystemOUTP OUTP PROT CLE OUTP PROT DELOUTP REL POL NORM OUTP RELOUTP REL POL OUTP REL 1 OUTP REL OFFSTAT OPER? Status SubsystemSTAT PRES Status Operation RegistersSTAT OPER NTR STAT OPER PTR STAT OPER ENABSTATUS OPERATION ENABLE? STAT QUES ENAB Status Questionable RegistersSTAT QUES? STAT:QUES:COND?corresponding Questionable Event register System CommandsSTAT QUES NTR STAT QUES PTR SYST ERR?TRIG Trigger SubsystemSYST LANG SYST VERS?VOLTAGE LEVEL 200 MV Voltage SubsystemTRIG SOUR VOLT VOLT TRIGCommand Command SummaryVOLT:PROT Command SummaryCommand Parameters Agilent Model and Value Characteristics in the Operating GuideProgramming Parameters ParameterOperation Status Group Power Supply Status StructureRegister Commands Status ReportingMeaning Table 4-2.Bit Configurations of Status RegistersSignal Figure 4-1.Power Supply Status ModelCLS *ESR? Questionable Status GroupStandard Event Status Group Table 4-3.Status Questionable CommandsStatus Byte Register Service Request Enable RegisterInitial Conditions At Power On Determining the Cause of a Service InterruptCaused By The PON Power-OnBitServicing an Operation Status Mode Event Table 4-4.Default Power On Register StatesTable 4-5.Generating RQS from the CC Event Monitoring Both Phases of a Status TransitionAdding More Operation Events Servicing Questionable Status EventsTechniques in ANSI/IEEE Std SCPI Command CompletionDFI Discrete Fault Indicator RI Remote InhibitSystem Error Messages Error MessagesPower Supply Hardware Error Messages Calibration Error Messages60 Error Messages SCPI Version SCPI Confirmed Commands1SCPI Approved Commands SCPI Conformance InformationNON-SCPICommands1 Compatibility Language ARPS Command1 Table B-1.ARPS CommandsSimilar SCPI Table B-1.ARPS Commands continued Description Index 68 Index Page Canada Agilent Sales and Support OfficeUnited States Latin America
Related manuals
Manual 70 pages 51.66 Kb Manual 142 pages 24.05 Kb

668xA, 669xA, 667xA, 664xA, 665xA specifications

Agilent Technologies has long been a pioneer in the production of high-performance electronic test and measurement instruments, particularly in the field of power sources. Among its notable offerings are the Agilent 667xA, 669xA, 665xA, 664xA, and 668xA series of power supplies. These instruments are designed to provide stable, reliable power for a variety of applications, including electronic testing, industrial processes, and research laboratories.

The Agilent 667xA series is characterized by its programmability and advanced measurement functions. These power supplies support a wide range of output voltages and currents, allowing for flexible configurations that cater to different testing needs. The built-in measurement capabilities enable users to monitor the voltage, current, and power with high precision, which is essential for ensuring optimal performance in electronic applications.

The Agilent 669xA series stands out with its high-power outputs, making it suitable for demanding applications. These power supplies deliver high voltage and current levels, making them ideal for testing high-performance devices, such as power amplifiers and motor drives. Additionally, the 669xA series includes features such as overvoltage protection and complex output sequencing to enhance the safety and reliability of the testing process.

The Agilent 665xA and 664xA series focus on delivering high accuracy and excellent regulation. These models are particularly known for their low noise operation, which is critical for sensitive applications where precision is paramount. The integrated programming capabilities allow users to automate testing sequences, thus improving efficiency in research and development settings.

The 668xA series features advanced digital signal processing that enhances the precision and stability of the output. Users benefit from features like remote sensing and monitoring, allowing feedback adjustments that maintain output accuracy despite cable losses. Furthermore, the 668xA models can integrate seamlessly with various test environments thanks to their LAN, GPIB, and USB connectivity options.

Overall, the Agilent 667xA, 669xA, 665xA, 664xA, and 668xA power supplies provide a comprehensive range of solutions for diverse electronic testing needs. With their advanced features, superb measurement capabilities, and robust performance, these instruments empower engineers and researchers to conduct their work with confidence, precision, and efficiency.