Programming GuideAgilent TechnologiesSeries 66lxxAMPS Power Modules Agilent Part No. 5959-3362
10 Introduction To ProgrammingTypes of SCPI MessagesThere are two types of SCPI messages, program and response.• A program message consists of one
Application Programs 1011940 L = LEN( CMD$ )1950 CALL IOOUTPUTS( SLOTO, CMDS, L )1960 IF PCIB.ERR<>0 THEN ERROR PCIB.BASERR1970 ‘1980 ‘
102 Application Programs1 ‘ MERGE "DECL.BAS" AS INSTRUCTED IN YOUR NATIONAL INSTRUMENTS GPIB-PC MANUAL2‘1000 ‘ APPLICATION #3: CONTROLL
Application Programs 1031580 CALL IBWRT( SLOTO%, CMD$ ) ‘ CONVERSION TO SEND REAL NUMBERS OVER THE BUS1590 IF IBSTA% < 0 THEN GOTO 1960 ‘
104 Application Programs/* APPLICATION #3: CONTROLLING VOLTAGE RAMP UP AT TURN ONFOR MICROSOFT C AND THE Agilent 61062/82990/82335A GPIB COMMAND LI
Application Programs 105error = iooutputs(SLOTO, cmd, strlen(cmd)); error_handler(error, cmd);cmd = "VOLT:MODE LIST”; /* Set to get volt
106 Application Programs} while (((int)condition_data && WTG) == 0) ; /* Loop until bit 5 (value 32) is true. *//* Send trigger command t
Application Programs 107/* APPLICATION #3: CONTROLLING VOLTAGE RAMP UP AT TURN ON, FOR MICROSOFT C AND THE NATIONAL INSTRUMENTS GPIB-PC INTERFAC
108 Application Programscmd = "VOLT:MODE LIST”; /* Set to get voltage from List */ibwrt(sloto, cmd, strten(cmd));if (ibsta & ERR) err
Application Programs 109}firiderr( ) /* Indicates that ibfind failed */{printf(“lbfind error: Does device name given match configuration name?\n
Index 111IndexA<AARD> ...
Introduction To Programming 11Figure 2-1. Command Message StructureThe basic parts of the above message are:Message ComponentExampleHeaders VOLT L
112 IndexG<GET>, ...
Index 113message unit separator, ...
114 Indexreset, parameters, ...
115Agilent Sales and Support OfficesFor more information about Agilent Technologies test and measurement products, applications, services,and for a cu
Manual UpdatesThe following updates have been made to this manual since the print revision indicated on the title page.4/15/00All references to HP hav
12 Introduction To ProgrammingThe SCPI interface is not sensitive to case. It will recognize any case mixture, such as TRIGGER, Trigger, TRIGger,
Introduction To Programming 13Traversing the Command TreeFigure 2-2 shows a portion of the subsystem command tree (you can see the complete tree in
14 Introduction To ProgrammingThe optional header SOURCE precedes the current, list, and voltage subsystems (see Figure 3-2). This effectively mak
Introduction To Programming 15Table 2-1. Numerical Data FormatsSymbol Data FormTalking Formats<NR1> Digits with an implied decimal point ass
16 Introduction To ProgrammingSystem ConsiderationsThe remainder of this chapter addresses some system issues concerning programming. These are po
Introduction To Programming 17Your application program will not include the power module symbolic name and GPIB address. These must be specifieddu
18 Introduction To ProgrammingUsing the National Instruments GPIB Interface• When CALLs are made to the GPIB driver, all parameters are passed as v
Introduction To Programming 19Sending Commands to and Receiving Data from the ModuleSending the Command “VOLT 5”***********************************
2Safety GuidelinesThe beginning of the Users Guide for GPIB Power Modules Series 66lxxA has a Safety Summary page. Be sure you arefamiliar with the i
20 Introduction To ProgrammingReceiving Data from the ModuleThe following screens show how to enter data from the module with various interfaces.**
Introduction To Programming 21***************** Microsoft C (Agilent 82335A/82990A/61062B GPIB Command Library) *********************/* Assumes tha
Language Dictionary 233Language DictionaryIntroductionThis section gives the syntax and parameters for all the IEEE 488.2 SCPI commands and the Com
24 Language DictionaryDescription Of Common CommandsFigure 3-1 shows the common commands and queries. These commands are listed alphabetically in
Language Dictionary 25• If *CLS immediately follows a program message terminator (<NL>), then the output queue and the MAV bitare also cleare
26 Language Dictionary*IDN?Identification QueryMeaning and TypeIdentification System InterfaceDescriptionThis query requests the power module to
Language Dictionary 27Do not follow *OPC? with *TRG or GPIB bus triggers. Such triggers sent after *OPC? will beprevented from executing and will
28 Language Dictionary*RCLMeaning and TypeRecall Device StateRecalling a previously stored state may place hazardous voltage at the power module
Language Dictionary 29Command Syntax *RSTParameters (None)Query Syntax (None)Related Commands *PSC *SAV*SAVMeaning and TypeSave Device StateDe
30 Language DictionaryIf *PSC is programmed to 0, then the *SRE command causes a write cycle to nonvolatile memory.The nonvolatile memory has a fin
3Contents1. Introduction About this Guide...
Language Dictionary 31*TST?Meaning and TypeTest Device TestDescriptionThis query causes the power module to do a self-test and report any errors
32 Language DictionaryFigure 3-2. Subsystem Tree DiagramCalibration SubsystemThe commands in this subsystem allow you to do the following:• Contr
Language Dictionary 33Whenever CAL:AUTO ONCE is sent, the power module performs an immediate readback temperature compensation.CAL:AUTO ONCE is a s
34 Language DictionaryCAL:SAVEThis command can only be used in the calibration mode. It saves any new calibration constants (after a current or vo
Language Dictionary 35CAL:VOLT:PROTThis command can only be used in the calibration mode. It calibrates the power module overvoltage protection (O
36 Language DictionaryCURR:PROT:STATThis command enables or disables the power module overcurrent (OC) protection function. If the overcurrent pro
Language Dictionary 37Command Syntax INITiate[:IMMediate]INITiate:CONTinuous <bool>Parameters For INIT[:IMM] (None)For INIT:CONT 0 | 1 | OFF
38 Language DictionaryLIST:CURR:POIN?This query returns the number of points specified in LIST:CURR. Note that it returns only the total number of
Language Dictionary 39LIST:VOLTThis command specifies the output voltage points in a list. The voltage points are given in the command parameters,
40 Language DictionaryCommand Syntax OUTPut[:STATe] <bool>[,NORelay]Parameters 0 | OFF[,NORelay] | 1 | ON[,NORelay]*RST Value 0Examples OUTP
4 Related Commands...
Language Dictionary 41OUTP:PROT:DEL Sets the delay time between the programming of an output change that produces a CV, CC, orUNREG condition and t
42 Language DictionaryOUTP:TTLTThis command enables or disables the power module Trigger Out signal, which is available at a BNC connector on the r
Language Dictionary 43Status Operation RegistersThe bit configuration of all Status Operation registers is shown in the following table:Bit Configu
44 Language DictionarySTAT:OPER:NTR|PTR CommandsThese commands set or read the value of the Operation NTR (Negative-Transition) and PTR (Positive-T
Language Dictionary 45STAT:QUES?This command returns the value of the Questionable Event register. The Event register is a read-only register whic
46 Language DictionaryCommand Syntax STATus:QUEStionable:NTRansition <NRf> STATus:QUEStionable:PTRansition <NRf>Parameters 0 to 32727S
Language Dictionary 47Command Syntax TRIGger[:STARt][:IMMediate]Parameters (None)Examples TRIG TRIG: IMMQuery Syntax (None)Related Commands ABOR
48 Language DictionaryVoltage SubsystemThis subsystem programs the output voltage of the power module.VOLTThis command directly programs the immedi
Language Dictionary 49Query Syntax [SOURce]:VOLTage:PROTection [:LEVel]?[SOURce]:VOLTage:PROTection [:LEVel]? MIN[SOURce]:VOLTage:PROTection [:LEV
50 Language DictionaryTable 3-1. Link Parameter ListParameter True Event Condition Valid forCC Constant current event bit1OUTP:DFI:LINK OUTP:TTLT:
5 OUTP:DFI:LINK ...
Status Reporting 514Status ReportingPower Module Status StructureFigure 4-1 shows the status register structure of the power module. The Standard
52 Status ReportingTable 4-2. Bit Configurations of Status RegistersBit Signal Meaning Bit Signal MeaningOperation Status Group Standard Event Sta
Status Reporting 53Figure 4-1. Power Module Status ModelStandard Event Status GroupRegister FunctionsThis group consists of an Event register and a
54 Status ReportingStatus Byte RegisterThis register summarizes the information from all other status groups as defined in the IEEE 488.2 Standard
Status Reporting 55Initial Conditions At Power OnStatus RegistersWhen the power module is turned on, a sequence of commands initializes the status
56 Status ReportingTable 4-5. Generating RQS from the CC EventRegister Command CommentOperation PTRSTAT:OPER:PTR 1024Allows a positive transition
Synchronizing Power Module Output Changes 575Synchronizing Power Module Output ChangesIntroductionIf you use only the VOLT [: LEV] : TRIG and/or CU
58 Synchronizing Power Module Output ChangesIdle StateWhen the power module is turned on, the trigger subsystem is in the idle state. In this stat
Synchronizing Power Module Output Changes 59Output Change StateWhen the trigger subsystem enters the Output Change state, the output voltage and cu
60 Synchronizing Power Module Output ChangesTable 5-1. Trigger Subsystem Status and Event SignalsSignal Type DescriptionDWE Status Bit Dwelling. Tr
6 Location of Event Handles...
Synchronizing Power Module Output Changes 61List SubsystemThe List Subsystem commands allow you to program a sequence of voltage and/or current val
62 Synchronizing Power Module Output ChangesThe number of dwell points must equal the number of output points:LIST:VOLT 3.0,3.25,3.5,3.75LIST:DWEL
Synchronizing Power Module Output Changes 63Figure 5-3. Timing diagrams of LIST:STEP Operation
64 Synchronizing Power Module Output ChangesDFI (Discrete Fault Indicator) SubsystemWhenever a fault is detected in the power module, it is capable
Error Messages 656Error MessagesPower Module Hardware Error MessagesFront panel error messages resulting from selftest errors or runtime failures a
66 Error MessagesTable 6-1. Summary of System Error Messages (continued)ErrorNumberError String [Description/Explanation/Examples]-222 Data out of
SCPI Conformance Information 67ASCPI Conformance InformationNote See Chapter 3 - Language Dictionary for command syntax.SCPI VersionThis power modu
68 SCPI Conformance InformationNon-SCPI CommandsCAL:CURR OUTP:DFI:SOUR?CAL:PASS OUTP:REL[:STAT]CAL:SAVE OUTP:REL[:STAT]?CAL:VOLT OUTP:REL:POLOUTP:D
Application Programs 69BApplication ProgramsThis section contains seven example applications. For each application, there is:• An overview of the
70 Application ProgramsApplication 1. Sequencing Multiple Modules During Power UpOverview of ApplicationWhen testing mixed signal devices, ± bias
Introduction 71IntroductionAbout This GuideYou will find the following information in the rest of this guide:Chapter 2 Introduction to SCPI message
Application Programs 71Module in slot 2:The module is connected to + 5 V on the DUT.The initial voltage setting is 0 V.The module listens for a bac
72 Application ProgramsFigure B1-2. Timing Diagram of Application #1
Application Programs 7310 ! APPLICATION #1: SEQUENCING MULTIPLE MODULES DURING POWER UP20 ! PROGRAM: APP_130 !40 ASSIGN @Slot0 TO 70500 ! SELECT CO
74 Application ProgramsApplication 2. Sequencing Multiple Modules to Power Down on EventOverview Of ApplicationWhen testing devices, such as some G
Application Programs 75MPS Set UpModule in slot 0:The module is connected to + 15 V on the DUT.The initial voltage setting is 15 V.The module monit
76 Application ProgramsFigure B2-1. Block Diagram of Application #2Figure B2-2. Timing Diagram of Application #2
Application Programs 7710 ! APPLICATION #2: SEQUENCING MULTIPLE MODULES TO POWER DOWN ON EVENT20 ! PROGRAM: APP_230 !40 ASSIGN @Slot0 TO 70500 ! S
78 Application ProgramsApplication 3. Controlling Output Voltage Ramp Up at Turn OnOverview Of ApplicationWhen control over the rate of voltage ram
Application Programs 79Figure B3-1. Simulating a Slow Voltage RampFigure B3-2. Simulating a Fast Voltage RampVariations On This Implementation1.
80 Application Programs3. The module could be set to generate an external trigger when it has finished its transition. This trigger could be route
8 IntroductionVXIplug&play Power Products Instrument DriversVXIplug&play instrument drivers for Microsoft Windows 95 and Windows NT are now
Application Programs 8110 ! APPLICATION #3: CONTROLLING VOLTAGE RAMP UP AT TURN ON20 ! PROGRAM: APP_330 !40 ASSIGN @Slot0 To 70500 ! SELECT CODE
82 Application ProgramsApplication 4. Providing Time-Varying VoltagesOverview of ApplicationTo burn-in devices using thermal or mechanical cycling/
Application Programs 83MPS Features Used• 20-point voltage List.• Repetitive Lists.• Dwell time.• Dwell-paced Lists.• Generate an SRQ on a change i
84 Application ProgramsVariations On This Implementation1. The module could be set to begin generating the waveform in response to an external or b
Application Programs 8510 ! APPLICATION #4: PROVIDING TIME-VARYING VOLTAGES20 ! PROGRAM: APP_430 !40 ASSIGN Slot0 TO 70500 ! SELECT CODE 7, MAINFRA
86 Application ProgramsApplication 5. Providing Time-Varying Current LimitingOverview Of ApplicationTo provide current limit protection which varie
Application Programs 87Figure B5-1. Typical DUT Current vs. TimeFigure B5-2. Desired Current vs. Time
88 Application ProgramsImplementation DetailsHow The MPS Implements The Sequence.The module is programmed to current List mode.The module will exec
Application Programs 8910 ! APPLICATION #5: PROVIDING TIME-VARYING CURRENT LIMITING20 ! PROGRAM: APP_530 !40 DIM C_limit$[50],Dwell[50]50 !60 C_lim
90 Application ProgramsApplication 6. Output Sequencing Paced by the ComputerOverview Of ApplicationWhen performing bias supply margin testing, thr
Introduction To Programming 92Introduction To ProgrammingGPIB Capabilities Of The Power ModuleAll power module functions except for setting the GPI
Application Programs 91MPS Set UpModule in slot 0:The module is connected to + 5 V on the DUT.The initial voltage setting is 0 V.Set the voltage mo
92 Application ProgramsFigure B6-1. Block Diagram of Application #6Figure B6-2. Timing Diagram of Application #6
Application Programs 9310 ! APPLICATION #6: OUTPUT SEQUENCING PACED BY THE COMPUTER20 ! PROGRAM: APP-630 !40 DIM Plus_5v$[50],Plus_12v$[50],Minus_1
94 Application Programs600 ! CHECKING THE INSTRUMENT STATUS, YOU CAN AVOID TIMING PROBLEMS. ALSO, ANY OTHER OPERATIONS610 ! THAT TAKE TIME WILL
Application Programs 95Application 7. Output Sequencing Without Computer InterventionOverview Of ApplicationWhen characterizing devices, the DUT’s
96 Application ProgramsAdvantages/Benefits Of The MPS SolutionThe entire test executes without computer involvement, the command processing time is
Application Programs 97Figure B7-1. Block Diagram of Application #7Figure B7-2. Timing Diagram of Application #7
98 Application Programs10 ! APPLICATION #7: OIJTPUT SEQUENCING WITHOUT COMPUTER INTERVENTION20 ! PROGRAM: APP_730 !40 ASSIGN @Slot0 TO 70500 ! SEL
Application Programs 99Supplemental InformationThis appendix contains program listings translated into the following DOS-compatible languages and G
100 Application Programs1340 CMD$ = "VOLT+ STR$( VSTART ) ‘ START RAMP AT VSTART. USE NUMBER TO STRING1350 L = LEN( CMD$ ) ‘ CONVERSION TO S
Comments to this Manuals