Agilent Technologies 667xA, 665xA, 664xA System Considerations, Programming the Digital I/O Port

Page 17
Programming the Digital I/O Port

Note

The last query string can be handled without difficulty. However, should you request too many

 

queries, the system may return a "Query DEADLOCKED” error (-430). In that case, break the

 

long string into smaller parts.

 

 

Programming the Digital I/O Port

Digital control ports 1 and 2 are TTL outputs that can be programmed either high or low. Control port 3 can be programmed to be either a TTL input or a TTL output. Send a decimal parameter that translates into the desired straight binary code for these ports. (See DIG:DATA[:VAL] in "Chapter 3 - Language Dictionary" for the port bit configurations.)

DIG:DATA 3

Set ports 1 and 2 high and make 3 another output port.

DIG:DATA 7

Set ports 1 and 2 high and make 3 an input port.

DIG:DATA?

Read back the present port configuration.

System Considerations

The remainder of this chapter addresses some system issues concerning programming. These are power supply addressing and the use of the following types of GPIB system interfaces:

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

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

3.Agilent controller with Agilent BASIC Language System.

The GPIB Address

The power supply address cannot be set remotely; it must be set from the front panel. Once the address is set, you can assign it inside programs.

Setting the GPIB Address

Figure 4-6 in the power supply Operating Guide shows the ways the power supply can be connected to the GPIB bus. You can set up the GPIB address in one of three ways:

1.As a stand-alone supply (the only supply at the address). It has a primary address in the range of 0 to 30. For example:

5 or 7

2.As the direct supply in a serial link. It is the only supply connected directly to the GPIB bus. The primary address is unique and can be from 0 to 30. It is entered as an integer followed by a decimal separator. The secondary address always is 0, which may be added after the primary address. If the secondary address is omitted, it is assumed to be 0. For example:

5.0or 7.

3.As a linked supply in serial link. It gets its primary address from the direct supply. It has a unique secondary address that can be from 1 to 15. It is entered as an integer preceded by a decimal separator. For example:

.1 or .12

When you enter a secondary address, leading zeros between the decimal separator and the first digit are ignored. For example, .1, .01, and .001 are accepted as secondary address 1 and displayed as 0.01. Zeros following a digit are not ignored. Thus, .10 and .010 are both accepted as secondary address 10 and displayed as 0. 10.

Changing the Power Supply GPIB Address

Use the System Considerationskey and numerical keypad for entering addresses. The power supply is shipped with a 5 stand-alone address as the default. The general procedure for setting an address is:

18 Remote Programming

Image 17
Contents Agilent Part No PROGRAMMING GUIDE GPIB DC POWER SUPPLIESMicrofiche Part No JulyPrinting History Safety GuidelinesGENERAL INFORMATION ContentsREMOTE PROGRAMMING LANGUAGE DICTIONARYDescription of Subsystem Commands STATUS REPORTING ERROR MESSAGESSCPI CONFORMANCE INFORMATION COMPATIBILITY LANGUAGEAbout this Guide General InformationDocumentation Summary User’s GuideVXIplug&play Power Product Instrument Drivers Prerequisites for Using this GuideDownloading and Installing the Driver Accessing Online HelpRemote Programming GPIB Capabilities Of The Power SupplyIntroduction To SCPI ConventionsSCPI Messages Types of SCPI CommandsStructure of a SCPI Message Common CommandsFigure 2-1.Command Message Structure Parts of a SCPI MessageMessage Component VOLT LEV PROT CURRQuery Indicator Traversing the Command TreeMessage Unit Separator Root SpecifierActive Header Path Figure 2-2.Partial Command TreeThe Effect of Optional Headers Moving Among SubsystemsSCPI Queries Including Common CommandsValue Coupling SCPI Data FormatsListening Formats ExamplesTable 2-2.Suffixes and Multipliers ClassDisable the output Controlling the OutputEnable the output Programming Voltage and CurrentProgramming Status Saving and Recalling StatesWriting to the Display The GPIB Address System ConsiderationsProgramming the Digital I/O Port A direct primary address and a secondary address Agilent BASIC Controllers DOS DriversSample Program Code Error HandlingController Using Agilent 82335A Interface Programming Some Power Supply Functions22 Remote Programming Programming Some Power Supply Functions continued1130 24 Remote Programming Common Commands Related CommandsSubsystem Commands Language DictionaryFigure 3-1.Common Commands Syntax Diagram Description Of Common Commands0 to Meaning and TypeDescription IDN? ESR?Related Commands Query SyntaxOPT? OPC?Power-onStatus Clear Device Initialization PSC 0 *PSCDescription Meaning and TypeDescription Bit Configuration of Status Byte Register STB?TST? Calibration Commands Description of Subsystem CommandsABOR Figure 3-2.Subsystem Commands Tree DiagramCURR CURR TRIG Current SubsystemCURR PROT STAT CURRENT:LEVEL 200 MADIG DATA Display SubsystemDISP Digital I/O Port Programming ChartDISP TEXT DISP MODEDISP TEXT DEFAULT MODE enclosed in either single ‘ or double quotesMeasure Subsystem Initiate SubsystemINIT INIT:CONT MEAS CURR? MEAS VOLT?OUTP Output SubsystemOUTP PROT CLE OUTP PROT DEL 0 orOUTP REL POL OUTP RELOUTP REL 1 OUTP REL OFF OUTP REL POL NORMSTAT PRES Status SubsystemStatus Operation Registers STAT OPER?STATUS OPERATION ENABLE? STAT OPER ENABSTAT OPER NTR STAT OPER PTR STAT QUES? Status Questionable RegistersSTAT:QUES:COND? STAT QUES ENABSTAT QUES NTR STAT QUES PTR System CommandsSYST ERR? corresponding Questionable Event registerSYST LANG Trigger SubsystemSYST VERS? TRIGTRIG SOUR Voltage SubsystemVOLT VOLT TRIG VOLTAGE LEVEL 200 MVVOLT:PROT Command SummaryCommand Summary CommandCommand Parameters Programming Parameters Characteristics in the Operating GuideParameter Agilent Model and ValueRegister Commands Power Supply Status StructureStatus Reporting Operation Status GroupSignal Table 4-2.Bit Configurations of Status RegistersFigure 4-1.Power Supply Status Model MeaningStandard Event Status Group Questionable Status GroupTable 4-3.Status Questionable Commands CLS *ESR?Initial Conditions At Power On Service Request Enable RegisterDetermining the Cause of a Service Interrupt Status Byte RegisterServicing an Operation Status Mode Event The PON Power-OnBitTable 4-4.Default Power On Register States Caused ByAdding More Operation Events Monitoring Both Phases of a Status TransitionServicing Questionable Status Events Table 4-5.Generating RQS from the CC EventDFI Discrete Fault Indicator SCPI Command CompletionRI Remote Inhibit Techniques in ANSI/IEEE StdPower Supply Hardware Error Messages Error MessagesCalibration Error Messages System Error Messages60 Error Messages SCPI Approved Commands SCPI Confirmed Commands1SCPI Conformance Information SCPI VersionNON-SCPICommands1 Compatibility Language Similar SCPI Table B-1.ARPS CommandsARPS Command1 Table B-1.ARPS Commands continued ARPS Command1 Index 68 Index Page United States Agilent Sales and Support OfficeLatin America Canada
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.