Programming GuideDynamic Measurement DC SourceAgilent Models 66312A, 66332ASystem DC Power SupplyAgilent Models 6631B, 6632B, 6633B, 6634B6611C, 6612C
2 - Introduction to Programming106.To use the VXIplug&play instrument driver, follow the directions in the VXIplug&play online helpunder “Int
Index100—H—hanning, 54header, 15long form, 15short form, 15history, 2HP 8235A driver, 93HP BASIC controllers, 94HP-IBaddress, 10capabilities of the dc
Index101—R—rectangular, 54remote inhibit, 36returning voltage or current data, 24RI, 36rms measurements, 24root specifier, 15RQS bit, 35RS-232capabili
Index102—V—varying voltage or current sampling, 29voltage, 20maximum, 20measurements, 23—W—waiting for measurement results, 27—X—XON-XOFF, 11
Manual UpdatesThe following updates have been made to this manual since the December 1998 printingindicated on the Printing History page.11/9/99Inform
Introduction to Programming - 211 Baud Rate The front panel Address key lets you select one of the following baud rates, which is stored in non-volat
2 - Introduction to Programming12 FUNCTION gets$ ‘ Get a new line feed terminated string from device #1 C$ = “” ‘ Set C$ to null WHILE c$ <> C
Introduction to Programming - 213 Types of SCPI Commands SCPI has two types of commands, common and subsystem.♦ Common commands generally are not rel
2 - Introduction to Programming14 Moving Among Subsystems In order to combine commands from different subsystems, you need to be able to reset the he
Introduction to Programming - 215 DataKeywordsKeyword SeparatorMessage Unit SeparatorsMessage UnitQuery IndicatorMessage TerminatorRoot SpecifierVOLT
2 - Introduction to Programming16NOTE:All RS-232 response data sent by the dc source is terminated by the ASCII character pair<carriage return>
Introduction to Programming - 217 SCPI Command Completion SCPI commands sent to the dc source are processed either sequentially or in parallel. Seque
19 3 Programming the DC Source Introduction This chapter contains examples on how to program your dc source. Simple examples show you how toprogram:u
2Safety GuidelinesThe beginning of the Operating Guide has a Safety Summary page. Be sure you are familiar with theinformation on this page before pro
3 - Programming the DC Source20 Output Voltage The output voltage is controlled with the VOLTage command. For example, to set the output voltage to 2
Programming the DC Source - 321 Triggering Output Changes The dc source has two independent trigger systems. One is used for generating output change
3 - Programming the DC Source22 Initiating the Output Trigger System When the dc source is turned on, the trigger subsystem is in the idle state. In
Programming the DC Source - 323 Making Measurements The dc source has the ability to make several types of voltage or current measurements. Themeasur
3 - Programming the DC Source24 This results in a data acquisition time of 32 milliseconds. Adding a command processing overhead ofabout 20 milliseco
Programming the DC Source - 325 Internally Triggered Measurements You can use the data acquisition trigger system to synchronize the timing of the vo
3 - Programming the DC Source26INITiate:SEQuence2 orINITiate:NAME ACQuire After a trigger is received and the data acquisition completes, the trig
Programming the DC Source - 327 TRIG:ACQ:SLOP:CURRTRIG:ACQ:LEV:CURR <level>TRIG:ACQ:HYST:CURR <value>Trigger occurs on rising edgewhen si
3 - Programming the DC Source28 Measuring Output Pulses (Agilent 66312A, 66332A Only) Current Detector Check that the current detector is set to ACDC
Programming the DC Source - 329 Controlling Measurement Samples Varying the Voltage or Current Sampling Rate You can vary both the number of data poi
3Table of ContentsSafety Guidelines 2Printing History 2Table of Contents 31 - GENERAL INFORMATION 7About this Guide 7Documentation Summary 7External R
3 - Programming the DC Source30 Pre-event and Post-event Triggering (Agilent 66312A, 66332A Only) When a measurement is initiated, the dc source cont
Programming the DC Source - 331 10 !Rev A.00.00 20 OPTION BASE 1 30 DIM Curr_array(100) 40 ! 50 ASSIGN @Ps TO 705 60 ASSIGN @Ld TO
3 - Programming the DC Source32 Programming the Status Registers You can use status register programming to determine the operating condition of the
Programming the DC Source - 333 Table 3-1. Bit Configurations of Status Registers Bit Signal Meaning 0 5 8 10 11 CAL WTG CV CC+ CC- Operation St
3 - Programming the DC Source34 Questionable Status Group The Questionable Status registers record signals that indicate abnormal operation of the dc
Programming the DC Source - 335 The MSS Bit This is a real-time (unlatched) summary of all Status Byte register bits that are enabled by the ServiceR
3 - Programming the DC Source36event to be summed into the Questionable summary bit. Use: STATus:QUEStionable:PTR 19;ENABle 19
Programming the DC Source - 337 Using the Inhibit/Fault Port as a Digital I/O You can configure the inhibit/fault port to provide a digital input/out
39 4 Language Dictionary Introduction This section gives the syntax and parameters for all the IEEE 488.2 SCPI commands and the Commoncommands used b
4Output Trigger System Model 21Setting the Voltage or Current Trigger Levels 21Initiating the Output Trigger System 22Generating Triggers 22Making Mea
4 - Language Dictionary40 Table 4-1. Subsystem Commands Syntax ABORt Resets the trigger system to the Idle state CALibrate
Language Dictionary - 441 Table 4-1. Subsystem Commands Syntax (continued) OUTPut [:STATe] <bool> [,NORelay] Enables/disables the dc sou
4 - Language Dictionary42 Table 4-1. Subsystem Commands Syntax (continued) STATus :PRESet Presets all enable and transition registers to power
Language Dictionary - 443 Common Commands Common commands begin with an * and consist of three letters (command) or three letters and a ?(query). The
4 - Language Dictionary44 Calibration Commands Calibration commands let you:u Enable and disable the calibration modeu Change the calibration passwor
Language Dictionary - 445 CALibrate:DATA This command enters a calibration value that you obtain by reading an external meter. You must firstselect a
4 - Language Dictionary46 CALibrate:STATe This command enables and disables calibration mode. The calibration mode must be enabled before thewill acc
Language Dictionary - 447 Measurement Commands Measurement commands consist of measure and sense commands. Measure commands measure the output voltag
4 - Language Dictionary48 MEASure:CURRent?FETCh:CURRent? FETCh:CURRent? applies to Agilent 66312A, 66332A Only These queries return the dc output cur
Language Dictionary - 449 MEASure:CURRent:LOW?FETCh:CURRent:LOW? Agilent 66312A, 66332A Only These queries return the Low level current of a current
5MEASure:CURRent? FETCh:CURRent? 48MEASure:CURRent:ACDC? FETCh:CURRent:ACDC? 48MEASure:CURRent:HIGH? FETCh:CURRent:HIGH? 48MEASure:CURRent:LOW? FETCh:
4 - Language Dictionary50 MEASure:VOLTage?FETCh:VOLTage? FETCh:VOLTage? applies to Agilent 66312A, 66332A Only These queries return the dc output vol
Language Dictionary - 451 MEASure:VOLTage:LOW?FETCh:VOLTage:LOW? Agilent 66312A, 66332A Only These queries return the Low level voltage of a voltage
4 - Language Dictionary52 SENSe:CURRent:RANGe This command selects the dc current measurement range. All models have two current measurementranges: H
Language Dictionary - 453 SENSe:FUNCtion Agilent 66312A, 66332A Only This command configures the measurement sensor to measure either voltage or curr
4 - Language Dictionary54 SENSe:WINDow This command sets the window function that is used in output measurement calculations. The followingfunctions
Language Dictionary - 455 Output Commands Output commands consist of output and source commands. Output commands control the output and digital port
4 - Language Dictionary56 OUTPut:PON:STATe This command selects the power-on state of the dc source. This information is saved in non-volatilememory.
Language Dictionary - 457 OUTPut:RELay Agilent 66332A, 6632B, 6633B, 6634B, 6611C, 6612C, 6613C, 6614C Only This command is only valid for units with
4 - Language Dictionary58 [SOURce:]CURRent This command sets the immediate current level of the dc source . The immediate level is the currentprogram
Language Dictionary - 459 [SOURce:]DIGital:DATA This command sets and reads the dc source digital control port when that port is configured for Digit
6System Commands 68DISPlay 68DISPlay:MODE 68DISPlay:TEXT 68SYSTem:ERRor? 69SYSTem:LANGuage 69SYSTem:VERSion? 69SYSTem:LOCal 70SYSTem:REMote 70SYSTem:R
4 - Language Dictionary60 [SOURce:]VOLTage:ALC:BANDwidth?[SOURce:]VOLTage:ALC:BWIDth? Agilent 66332A, 6631B, 6632B, 6633B and 6634B Only These querie
Language Dictionary - 461 Status Commands Status commands program the dc source status registers. The dc source has three groups of statusregisters;
4 - Language Dictionary62 STATus:OPERation:ENABle This command and its query set and read the value of the Operational Enable register. This registe
Language Dictionary - 463 Table 4-5. Bit Configuration of Questionable Status Registers Bit Position 15 14 13-11 10 9 8-5 4 3 2 1 0 Bit Name n
4 - Language Dictionary64 STATus:QUEStionable:NTRSTATus:QUEStionable:PTR These commands allow you to set or read the value of the Questionable NTR (
Language Dictionary - 465 *ESE This command programs the Standard Event Status Enable register bits. The programming determineswhich events of the St
4 - Language Dictionary66 * OPC does not prevent processing of subsequent commands, but bit 0 will not be set until all pendingoperations are complet
Language Dictionary - 467 Command Syntax *SRE <NRf> Parameters 0 to 255 Power-on Value see *PSC Example *SRE 20 Query Syntax *SRE? Returned P
4 - Language Dictionary68 System Commands System commands consist of system, display, and common commands. System commands commands control system fu
Language Dictionary - 469 SYSTem:ERRor? This query returns the next error number followed by its corresponding error message string from theremote p
71General InformationAbout this GuideThis guide provides remote programming information for the following series of GPIB programmable dcpower supplies
4 - Language Dictionary70SYSTem:LOCalFor RS-232 Operation OnlyThis command places the dc source in local mode during RS-232 operation. The front pane
Language Dictionary - 471*OPT?This query requests the dc source to identify any options that are installed. Options are identified bynumber A 0 indi
4 - Language Dictionary72Table 4-8. *RST SettingsCAL:STAT OFF [SOUR:]CURR 10% of MAX*DIG:DATA
Language Dictionary - 473Trigger CommandsTrigger commands consist of trigger and initiate commands.Trigger commands control the remote triggering of
4 - Language Dictionary74TRIGgerWhen the transient trigger subsystem is initiated, this command generates a trigger signal. The trigger willthen:1.
Language Dictionary - 475TRIGger:SEQuence2:COUNt:CURRentTRIGger:ACQuire:COUNt:CURRentAgilent 66312A, 66332A OnlyThis command sets up a successive num
4 - Language Dictionary76TRIGger:SEQuence2:HYSTeresis:CURRentTRIGger:ACQuire:HYSTeresis:CURRentAgilent 66312A, 66332A OnlyThis command defines a band
Language Dictionary - 477TRIGger:SEQuence2:LEVel:CURRentTRIGger:ACQuire:LEVel:CURRentAgilent 66312A, 66332A OnlyThis command sets the trigger level f
4 - Language Dictionary78TRIGger:SEQuence2:SLOPe:CURRentTRIGger:ACQuire:SLOPe:CURRentAgilent 66312A, 66332A OnlyThis command sets the slope of an int
Language Dictionary - 479TRIGger:SEQuence2:SOURceTRIGger:ACQuire:SOURceAgilent 66312A, 66332A OnlyThese commands select the trigger source for measur
1 - General Information8 External References GPIB References The most important GPIB documents are your controller programming manuals - BASIC, GPIB C
81ASCPI Conformance InformationSCPI VersionThe Agilent Dynamic Measurement DC Source conforms to SCPI Version 1995.0.SCPI Confirmed Commands ABOR SEN
83BCompatibility LanguageIntroductionThe Agilent power supplies covered by this manual are programmatically compatible with the HP/Agilent6632A, 6633
B - Compatibility Language84Table B-2. COMPatibility CommandsCompatibilityCommandDescription Similar SCPICommandASTS? This command reads the contents
Compatibility Language - B85Table B-2. COMPatibility Commands (continued)CompatibilityCommandDescription Similar SCPICommandOVSET <n> This comma
B - Compatibility Language86Table B-2. COMPatibility Commands (continued)CompatibilityCommandDescription Similar SCPICommandUNMASK xxxThese commands d
Compatibility Language - B87STATUS121664128CV+CCUNROTnot usedOCERRINHOV4512-CCFAST83225610242048REGISTERNORMSTATUS121664128451283225610242048REGISTERA
89CError MessagesError Number ListThis appendix gives the error numbers and descriptions that are returned by the dc source. Errornumbers are return
9 2 Introduction to ProgrammingVXIplug&play Power Products Instrument DriversVXIplug&play instrument drivers for Microsoft Windows 95 and Win
C - Error Messages90Table C-1. Error Numbers (continued)ErrorNumberError String [Description/Explanation/Examples] –141 Invalid character data [bad ch
Error Messages - C91Table C-1. Error Numbers (continued)ErrorNumberError String [Description/Explanation/Examples]213 Ingrd receiver buffer overrun216
93DExample ProgramsIntroductionThe example programs in this section are intended to show how some of the same dc sourcefunctions can be programmed to
D - Example Programs94Your application program will not include the dc source’s symbolic name and GPIB address.These must be specified during configur
Example Programs - D951085 ’1090 ’Query dc source outputs CURRENT?" :GOSUB 2000 :GOSUB 30001100 VOUT = OUTPUTS(1)1105 IOUT = OUTPUTS(2)111
D - Example Programs96Example 2. IBM Controller Using National Interface990 ’---------------------- Merge DECL.BAS here ------------------------1000
Example Programs - D971225 ’1230 ’Clear status circuit1235 CODES$="*CLS" :GOSUB 20001240 FOR I=1 TO 50 :NEXT I
D - Example Programs98Example 3. Controller Using BASIC1000 !Dc source at stand-alone address = 7061005 OPTION BASE 11010 DIM Codes$[80],Response$[
99INDEX—A—AARD, 16ABORT, 73ACDC, 52—B—bus, 79—C—calibration commands, 44CAL CURR, 44CAL CURR MEAS AC, 44CAL CURR NEG, 44CAL DATA, 45CAL LEV, 45CAL PAS
Comentários a estes Manuais