background image

 Programming the DC Source - 3

37

 Using the Inhibit/Fault Port as a Digital I/O

 You can configure the inhibit/fault port to provide a digital input/output to be used with custom digital
interface circuits or relay circuits. As shipped from the factory, the port is shipped for inhibit/fault operation.
You can change the configuration of the port to operate as  a general purpose digital input output port with
the following command:

[SOURce:]DIGital:FUNCtion RIDFi | DIGio

 The following table shows the bin assignments of the mating plug when used in RI/DFImode as well as
Digital I/O mode. Refer to Table 1-2 for the electrical characteristics of the port.
 

 Pin

 FAULT/INHIBIT

 DIGITAL I/O

 Bit Weight

 1

 FLT Output

 OUT 0

 0

 2

 FLT Output

 OUT 1

 1

 3

 INH Input

 IN/OUT 2

 2

 4

 INH Common

 Common

 not programmable

 To program the digital I/O port use:

[SOURce:]DIGital:DATA <data>

 where the data is an integer from 0 to 7 that sets pins 1 to 3 according to their binary weight. Refer to the
DIGital:DATA command for more information.

 DFI Programming Example

 The following program illustrates how to program the DFI port so that it goes low when an OCP condition
turns off the output of the unit. To clear an overcurrent condition, the cause of the condition must first be
removed and then an OUTput:PROTection:CLEar command must be sent. Note that the status event
register will not clear the DFI port until the register is read.
 

 

10    !Rev A.00.00
 

20    ASSIGN @Ps TO 705
 

30    OUTPUT @Ps;"*RST"                    ! Sets supply to default values
 

40    OUTPUT @Ps;"OUTP ON"                 ! Turn on power supply output
 

50    OUTPUT @Ps;"VOLT 10;CURR .1"         ! Program power supply voltage and current
 

60    !
 

70    OUTPUT @Ld;"CURR:PROT:STAT ON"       ! Turn on overcurrent protection
 

80    OUTPUT @Ld;"OUTP:DFI:STAT ON"        ! Turn on DFI port
 

90    OUTPUT @Ld;"OUTP:DFI:SOUR QUES"      ! Select DFI bit from Questionable status register
 

100   OUTPUT @Ld;"STAT:QUES:ENAB 2;PTR 2"  ! Unmask bit 2 (OCP) on positive transition
 

110   !
 

120   OUTPUT @Ld;"OUTP:PROT:CLE"           ! Clears the protection circuit
 

130   OUTPUT @Ld;"STAT:QUES:EVENT?"        ! Clears the Event register and DFI
 

140   ENTER @Ld;EVENT                     ! Reads the event and clears the buffer
 

190   !

 

Summary of Contents for 6611C

Page 1: ...namic Measurement DC Source Agilent Models 66312A 66332A System DC Power Supply Agilent Models 6631B 6632B 6633B 6634B 6611C 6612C 6613C 6614C Agilent Part No 5962 8198 Printed in U S A Microfiche No 5962 8199 January 2000 ...

Page 2: ... printing date A revised edition incorporates all new or corrected material since the previous printing date Changes to the manual occurring between revisions are covered by change sheets shipped with the guide This document contains proprietary information protected by copyright All rights are reserved No part of this document may be photocopied reproduced or translated into another language with...

Page 3: ...ogramming Example 11 RS 232 Troubleshooting 12 Introduction to SCPI 12 Conventions Used in This Guide 12 Types of SCPI Commands 13 Multiple Commands in a Message 13 Moving Among Subsystems 14 Including Common Commands 14 Using Queries 14 Types of SCPI Messages 14 The Message Unit 15 Headers 15 Query Indicator 15 Message Unit Separator 15 Root Specifier 15 Message Terminator 15 SCPI Data Formats 16...

Page 4: ... Example Agilent 66312A 66332A only 30 Programming the Status Registers 32 Power On Conditions 32 Operation Status Group 33 Questionable Status Group 34 Standard Event Status Group 34 Status Byte Register 34 Determining the Cause of a Service Interrupt 35 Servicing Operation Status and Questionable Status Events 35 Monitoring Both Phases of a Status Transition 36 Inhibit Fault Indicator 36 Remote ...

Page 5: ... 53 SENSe SWEep TINTerval 53 SENSe WINDow 54 Output Commands 55 OUTPut 55 OUTPut DFI 55 OUTPut DFI SOURce 55 OUTPut PON STATe 56 OUTPut PROTection CLEar 56 OUTPut PROTection DELay 56 OUTPut RELay 57 OUTPut RELay POLarity 57 OUTPut RI MODE 57 SOURce CURRent 58 SOURce CURRent TRIGger 58 SOURce CURRent PROTection STATe 58 SOURce DIGital DATA 59 SOURce DIGital FUNCtion 59 SOURce VOLTage ALC BANDwidth ...

Page 6: ...LTage 76 TRIGger SEQuence2 LEVel CURRent TRIGger ACQuire LEVel CURRent 77 TRIGger SEQuence2 LEVel VOLTage TRIGger ACQuire LEVel VOLTage 77 TRIGger SEQuence2 SLOPe CURRent TRIGger ACQuire SLOPe CURRent 78 TRIGger SEQuence2 SLOPe VOLTage TRIGger ACQuire SLOPe VOLTage 78 TRIGger SEQuence2 SOURce TRIGger ACQuire SOURce 79 TRIGger SEQuence1 DEFine TRIGger SEQuence2 DEFine 79 TRG 79 A SCPI CONFORMANCE I...

Page 7: ... Dictionary of SCPI commands Appendix A SCPI conformance information Appendix B Use of the alternate Comptibility programming language Appendix C Error messages Documentation Summary The following documents that are related to this Programming Guide have additional helpful information for using the dc source User s Guide for Agilent 66312A and Agilent 6611C 6612C 6613C 3314C Includes specification...

Page 8: ...ed as a reference only if you intend to do fairly sophisticated programming Helpful for finding precise definitions of certain types of SCPI message formats data types or common commands The above two documents are available from the IEEE Institute of Electrical and Electronics Engineers 345 East 47th Street New York NY 10017 USA The WEB address is www ieee org SCPI References The following docume...

Page 9: ...the following ñ Microsoft Windows 95 ñ Microsoft Windows NT 4 0 ñ HP VISA revision F 01 02 ñ National Instruments VISA 1 1 Downloading and Installing the Driver NOTE Before installing the VXIplug play instrument driver make sure that you have one of the supported applications installed and running on your computer 1 Access Agilent Technologies Web site at http www agilent com find drivers 2 Select...

Page 10: ... GPIB address is stored in non volatile memory RS 232 Capabilities of the DC Source The dc source provides an RS 232 programming interface which is activated by commands located under the front panel Address key All SCPI and COMPatibility commands are available through RS 232 programming When the RS 232 interface is selected the GPIB interface is disabled The EIA RS 232 Standard defines the interc...

Page 11: ...ntrol Flow control options are stored in non volatile memory RS 232 Programming Example The following program illustrates how to program the power supply using RS 232 to set the output voltage and current and to readback the model number and output voltage The program was written to run on any controller using Microsoft QBasic NOTE The power supply must be configured for RS232 and the same baud ra...

Page 12: ...ing instrument functions over the GPIB SCPI is layered on top of the hardware portion of IEEE 488 2 The same SCPI commands and parameters control the same functions in different classes of instruments For example you would use the same DISPlay command to control the dc source display and the display of a SCPI compatible multimeter Conventions Used in This Guide Angle brackets Items within angle br...

Page 13: ...ending several commands within a single message Use a semicolon to separate commands within a message There is an implied header path that affects how commands are interpreted by the dc source The header path can be thought of as a string that gets inserted before each command within a message For the first command in a message the header path is a null string For each subsequent command the heade...

Page 14: ...em commands in the same message Treat the common command as a message unit by separating it with a semicolon the message unit separator Common commands do not affect the header path you may insert them anywhere in the message VOLTage TRIGgered 17 5 INITialize TRG OUTPut OFF RCL 2 OUTPut ON Using Queries Observe the following precautions with queries Set up the proper number of variables for the re...

Page 15: ... has only the first three or four letters such as VOLT STAT and DEL Query Indicator Following a header with a question mark turns it into a query VOLTage VOLTage PROTection If a query contains a parameter place the query indicator at the end of the last header VOLTage PROTection MAX Message Unit Separator When two or more message units are combined into a compound message separate the units with a...

Page 16: ...es NR1 NR2 and NR3 Examples 273 273 2 73E2 Nrf Expanded decimal format that includes NRf and MIN MAX Examples 273 273 2 73E2 MAX MIN and MAX are the minimum and maximum limit values that are implicit in the range specification for the parameter Bool Boolean Data Example 0 1 or ON OFF Suffixes and Multipliers Class Suffix Unit Unit with Multiplier Current A ampere MA milliampere Amplitude V volt MV...

Page 17: ...ommands to complete before proceeding with its program OPC This sets the OPC status bit when all pending operations have completed Since your program can read this status bit on an interrupt basis OPC allows subsequent commands to be executed NOTE The trigger subsystem must be in the Idle state in order for the status OPC bit to be true Therefore as far as triggers are concerned OPC is false whene...

Page 18: ......

Page 19: ...ix D for some examples of SCPI commands in a specific programming environment Programming the Output Power on Initialization When the dc source is first turned on it wakes up with the output state set OFF In this state the output voltage is set to 0 The following commands are given implicitly at power on RST CLS STATus PRESet SRE 0 ESE 0 RST is a convenient way to program all parameters to a known...

Page 20: ...ammable current function The command to program the current is CURRent n where n is the current limit in amperes If the load attempts to draw more current than the programmed limit the output voltage is reduced to keep the current within the limit Maximum Current The maximum output current that can be programmed can be queried with CURRent MAX Overcurrent Protection The dc source can also be progr...

Page 21: ...r system The rectangular boxes represent states The arrows show the transitions between states These are labeled with the input or event that causes the transition to occur LEVEL INITIATED STATE IDLE STATE ABORt RCL RST TRIGGER RECEIVED INITiate IMMediate INITiate CONTinuous OFF CHANGE OUTPUT INITiate CONTinuous ON Figure 3 1 Model of Output Triggers Setting the Voltage or Current Trigger Levels T...

Page 22: ...gger system initiated for multiple actions without having to send an initiate command for each trigger use INITiate CONTinuous SEQuence1 ON or INITiate CONTinuous NAME TRANsient ON Generating Triggers You can only program output triggers over the GPIB bus Since BUS is the only trigger source for output triggers the following command is provided for completeness only TRIGger SOURce BUS After you ha...

Page 23: ...method gives you the flexibility to synchronize the data acquisition with a transition in the output voltage or current FETCh commands do not trigger the acquisition of new measurement data but they can be used to return many different calculations from the data that was retrieved by the acquisition trigger Note that if you take a voltage measurement you can fetch only voltage data Making triggere...

Page 24: ...ms content of a voltage or current waveform use MEASure VOLTage ACDC or MEASure CURRent ACDC This returns the total rms measurement including the dc portion Making rms measurements on ac waveforms for which a non integral number of cycles of data has been acquired may result in measurement errors due to the last partial cycle of acquired data The instrument reduces this error by using a Hanning wi...

Page 25: ...del of the measurement trigger system The rectangular boxes represent states The arrows show the transitions between states These are labeled with the input or event that causes the transition to occur ACQUIRED INITIATED STATE IDLE STATE ABORt RCL RST TRIGGER RECEIVED INITiate IMMediate TRIGger COUNt COMPLETE YES NO SENSe SWEep POINts Figure 3 2 Model of Measurement Triggers Initiating the Measure...

Page 26: ...xecute trigger device trigger or TRG command use TRIGger SEQuence2 SOURce BUS or TRIGger ACQuire SOURce BUS To select internal triggers measurements triggered off the output signal use TRIGger SEQuence2 SOURce INTernal or TRIGger ACQuire SOURce INTernal Generating Measurement Triggers Agilent 66312A 66332A Only There is only one measurement converter in the dc source Before you generate a measurem...

Page 27: ...e positive or negative going signal use TRIGger SEQuence2 HYSTeresis CURRent value or TRIGger ACQuire HYSTeresis CURRent value NOTE When using internal triggers do not INITiate the measurement until after you have specified the slope level and hysteresis When the acquisition finishes any of the FETCh queries can be used to return the results Once the measurement trigger is initiated if a FETCh que...

Page 28: ...ement queries that return key parameters of pulsewaveforms as shown in Figure 3 4 FETC CURR LOW FETC VOLT LOW FETC CURR MIN FETC VOLT MIN FETC CURR HIGH FETC VOLT HIGH FETC CURR MAX FETC VOLT MAX DATA POINTS Figure 3 4 Measurement Commands Used to Return Pulse Data To return the maximum or minimum value of a pulse waveform use the following commands Note that the data points of the measurement sam...

Page 29: ... 6 POINts 1500 Multiple Measurements Agilent 66312A 66332A Only The instrument also has the ability to set up several acquisition triggers in succession and average the results from each acquisition in the returned measurement To set up the trigger system for a number of sequential aquisitions use TRIGger ACQuire COUNt CURRent number or TRIGger ACQuire COUNt VOLTage number With this setup the inst...

Page 30: ...ime Offset X Sample period Pulse Measurement Example Agilent 66312A 66332A only The following program illustrates how to make a pulse measurement over the GPIB The measurement function is set to ACDC which gives the best results for current waveforms that have ac content The measurement incorporates 100 readings taken at time intervals of 20 microseconds for a total measurement time of 2 milliseco...

Page 31: ...surement completes 330 340 ENTER Ps Curr_array Enters all 100 data points 350 PRINT Curr_array Print all data points 360 370 OUTPUT Ps FETCH CURR MAX Get more data from previous measurement 380 ENTER Ps Curr_max 390 PRINT MAX CURRENT Curr_max 400 410 OUTPUT Ps FETCH CURR MIN 420 ENTER Ps Curr_min 430 PRINT MIN CURRENT Curr_min 440 450 OUTPUT Ps FETCH CURR HIGH 460 ENTER Ps Curr_hi 470 PRINT HIGH C...

Page 32: ... are specific to the dc source Power On Conditions Refer to the RST command description in chapter 4 for the power on conditions of the status registers Figure 3 7 DC Source Status Model 8 16 32 64 128 LOGICAL OR STATUS BYTE 3 4 5 6 7 N U QUES MAV ESB MSS OPER SERVICE REQUEST GENERATION RQS 8 16 32 128 REQUEST ENABLE SERVICE 1 2 16 512 1024 CONDITION 1 2 16 512 1024 EVENT 1 2 16 512 1024 ENABLE 1 ...

Page 33: ... summary bit Event Status Summary bit Master Status Summary bit Request Service bit Operation status summary bit Operation Status Group The Operation Status registers record signals that occur during normal operation As shown below the group consists of a Condition PTR NTR Event and Enable register The outputs of the Operation Status register group are logically ORed into the OPER ation summary bi...

Page 34: ...grammed by Common commands The Standard Event event register latches events relating to instrument communication status see figure 3 7 It is a read only register that is cleared when read The Standard Event enable register functions similarly to the enable registers of the Operation and Questionable status groups Command Action ESE programs specific bits in the Standard Event enable register PSC O...

Page 35: ...e EVENt STATus OPERation EVENt ESR When an Event register is read it is cleared This also clears the corresponding summary bit Step 3 Remove the specific condition that caused the event If this is not possible the event may be disabled by programming the corresponding bit of the status group Enable register or NTR PTR filter A faster way to prevent the interrupt is to disable the service request b...

Page 36: ...ill cause the OPERational summary bit to set RQS when CC occurs When the controller subsequently reads the event register with STATus OPERational EVEN the register is cleared When CC subsequently goes false the NTR filter causes the OPERational summary bit to again set RQS Inhibit Fault Indicator The remote inhibit INH and discrete fault FLT indicators are implemented through the respective INH an...

Page 37: ...o their binary weight Refer to the DIGital DATA command for more information DFI Programming Example The following program illustrates how to program the DFI port so that it goes low when an OCP condition turns off the output of the unit To clear an overcurrent condition the cause of the condition must first be removed and then an OUTput PROTection CLEar command must be sent Note that the status e...

Page 38: ......

Page 39: ...erating Guide Models If a command only applies to specific models those models are listed in the Model Only entry If there is no Model Only entry the command applies to all models Related Commands Where appropriate related commands or queries are included These are listed because they are either directly related by function or because reading about them will clarify or enhance your understanding o...

Page 40: ...l Enable disable front panel display MODE mode Set display mode NORM TEXT TEXT DATA string Sets the text that is displayed INITiate IMMediate SEQuence n Initiate a specific numbered sequence 1 2 NAME name Initiate a specific named sequence TRAN ACQ CONTinuous SEQuence1 bool Set continuous initialization NAME TRANsient bool Set continuous initialization MEASure FETCh ARRay CURRent DC Returns the di...

Page 41: ...ement detector ACDC DC FUNCtion function Configures the measurement sensor VOLT CURR SWEep OFFSet POINts n Defines the offset in the data sweep POINts n Define the number of data points in a sweep TINTerval n Sets the digitizer sample spacing WINDow TYPE type Sets the measurement window function HANN RECT SOURce CURRent LEVel IMMediate AMPLitude n Sets the output current level TRIGgered AMPLitude ...

Page 42: ...s the SCPI version number LOCal Go to local mode for RS 232 operation REMote Go to remote mode for RS 232 operation RWLock Go to remote with local lockout for RS 232 operation TRIGger SEQuence2 ACQuire IMMediate Triggers the measurement immediately COUNt CURRent n Sets the number of sweeps per current measurement VOLTage n Sets the number of sweeps per voltage measurement HYSTeresis CURRent n Qual...

Page 43: ...instrument state SRE n Set service request enable register SRE Return service request enable register STB Return status byte TRG Trigger TST Perform selftest then return result WAI Hold off bus until all device commands done Programming Parameters The following table lists the output programming parameters for each model Table 4 3 Output Programming Parameters Parameter Value 66312A 66312A 6631B 6...

Page 44: ...OSitive Parameters None Examples CAL CURRCAL CURR SOUR DC POS Related Commands CAL CURR NEG CALibrate CURRent NEGative This command initiates the calibration of the negative dc output current Command Syntax CALibrate CURRent SOURce DC NEGative Parameters None Examples CAL CURR NEGCAL CURR SOUR DC NEG Related Commands CAL CURR CALibrate CURRent MEASure LOWRange This command initiates the calibratio...

Page 45: ...P2 CALibrate PASSword This command lets you change the calibration password A new password is automatically stored in nonvolatile memory and does not have to be stored with CALibrate SAVE If the password is set to 0 password protection is removed and the ability to enter the calibration mode is unrestricted Command Syntax CALibrate PASScode NRf Parameters model number default Examples CAL PASS 681...

Page 46: ...y new calibration constants are lost unless they have been stored with CALibrate SAVE Command Syntax CALibrate STATe bool NRf Parameters 0 1 OFF ON password RST Value OFF Examples CAL STAT 1 6812 CAL STAT OFF Query Syntax CALibrate STATe Returned Parameters NR1 Related Commands CAL PASS CAL SAVE RST CALibrate VOLTage This command initiates the calibration of the output voltage and the voltage read...

Page 47: ...aining the instantaneous output current in amperes The output voltage or output current are digitized whenever a measure command is given or whenever an acquire trigger occurs The time interval is set by SENSe SWEep TINTerval The position of the trigger relative to the beginning of the data buffer is determined by SENSe SWEep OFFSet The number of points returned is set by SENSe SWEep POINts Query ...

Page 48: ...Sure CURRent HIGH FETCh CURRent HIGH Agilent 66312A 66332A Only These queries return the High level current of a current pulse waveform The instrument first measures the minimum and maximum data points of the pulse waveform It then generates a histogram of the pulse waveform using 1024 bins between the maximum and minimum data points The bin containing the most data points above the 50 point is th...

Page 49: ...tax MEASure SCALar CURRent LOW FETCh SCALar CURRent LOW Parameters None Examples MEAS CURR LOW FETC CURR LOW Returned Parameters NR3 Related Commands MEAS CURR HIGH CALC REF LOW MEASure CURRent MAXimum FETCh CURRent MAXimum Agilent 66312A 66332A Only These queries return the maximum output current reading from the measurement sample Query Syntax MEASure SCALar CURRent MAXimum FETCh SCALar CURRent ...

Page 50: ...ASure VOLTage HIGH FETCh VOLTage HIGH Agilent 66312A 66332A Only These queries return the High level voltage of a voltage pulse waveform The instrument first measures the minimum and maximum data points of the pulse waveform It then generates a histogram of the pulse waveform using 1024 bins between the maximum and minimum data points The bin containing the most data points above the 50 point is t...

Page 51: ...tax MEASure SCALar VOLTage LOW FETCh SCALar VOLTage LOW Parameters None Examples MEAS VOLT LOW FETC VOLT LOW Returned Parameters NR3 Related Commands MEAS VOLT HIGH CALC REF LOW MEASure VOLTage MAXimum FETCh VOLTage MAXimum Agilent 66312A 66332A Only These queries return the maximum output voltage reading from the measurement sample Query Syntax MEASure SCALar VOLTage MAXimum FETCh SCALar VOLTage ...

Page 52: ...URRent DETector Agilent 66312A 66332A Only This command lets you select the type of detector used for output current measuremants Two choices for detecting current measurements are available ACDC This is the preferred choice for all dynamic current measurements When ACDC is selected the measured output current includes the current that flows in the instrument s output capacitor It is especially im...

Page 53: ...arameters 4095 through 2 000 000 000 RST Value 0 Examples SENS SWE OFFS POIN 2047 Query Syntax SENSe SWEep OFFSet POINts Returned Parameters NR3 Related Commands SENS SWE TINT SENS SWE POIN MEAS ARR SENSe SWEep POINts This command defines the number of points in a data sweep Command Syntax SENSe SWEep POINts NRf Parameters 0 through 4096 RST Value 2048 Examples SENS SWE POIN 1024 Query Syntax SENS...

Page 54: ...the function cos 4 Do not use the Hanning window when measuring single shot pulse waveforms RECTangular A window that returns measurement calculations without any signal conditioning This window may be used for pulse measurements where the exact period of the pulse waveform is known and the measurement interval can be set accordingly using the SENSe SWEep TINTerval command NOTE Neither window func...

Page 55: ...N Query Syntax OUTPut STATe Returned Parameters NR1 0 or 1 Related Commands RST RCL SAV OUTPut DFI This command enables or disables the discrete fault indicator DFI outputfrom the dc source Command Syntax OUTPut DFI STATe bool Parameters 0 1 OFF ON RST Value OFF Examples OUTP DFI 1 OUTP DFI ON Query Syntax OUTPut DFI STATe Returned Parameters 0 1 Related Commands OUTP DFI SOUR OUTPut DFI SOURce Th...

Page 56: ...fore the latch can be cleared The output is then restored to the state it was in before the fault condition occurred Command Syntax OUTPut PROTection CLEar Parameters None Examples OUTP PROT CLE Related Commands OUTP PROT DEL RCL SAV OUTPut PROTection DELay This command sets the time between the programming of an output change that produces a constant current condition CC and the recording of that...

Page 57: ...ite to that of the dc source output If OUTPut ON when either command is sent the output voltage is set to 0 during the time that the relays are changing polarity Command Syntax OUTPut RELay POLarity CRD Parameters NORMal REVerse RST Value NORM Examples OUTP REL POL NORM Query Syntax OUTPput RELay POLarity Returned Parameters NORM REV Related Commands OUTP RCL SAV OUTPut RI MODE This command select...

Page 58: ... Syntax SOURce CURRent LEVel TRIGgered AMPLitude Returned Parameters NR3 Related Commands INIT CURR SOURce CURRent PROTection STATe This command enables or disables the overcurrent protection OCP function If the dc source overcurrent protection function is enabled and the dc source goes into constant current operation then the output is disabled and the Questionable Condition status register OC bi...

Page 59: ... Lo 7 1 1 1 GND Intput Hi Hi Command Syntax SOURce DIGital DATA VALue NRf Parameters 0 to 7 RST Value 0 Examples DIG DATA 7 Query Syntax SOURce DIGital DATA Returned Parameters NR1 Related Commands DIG FUNC SOURce DIGital FUNCtion This command configures the dc source digital control port The configuration setting is saved in non volatile memory RIDFi Configures the port for Remote Inhibit Discret...

Page 60: ...ubsystem Command Syntax SOURce VOLTage LEVel TRIGgered AMPLitude NRf Parameters see Table 4 3 Default Suffix V volts RST Value 0 Examples VOLT TRIG 20 VOLTAGE LEVEL TRIGGERED 20 Query Syntax SOURce VOLTage LEVel TRIGgered AMPLitude Returned Parameters NR3 Related Commands VOLT RST SOURce VOLTage PROTection This command sets the overvoltage protection OVP level of the dc source If the output voltag...

Page 61: ...tion 15 12 11 10 9 8 7 6 5 4 1 0 Bit Name not used CC CC not used CV not used WTG not used CAL Bit Weight 2048 1024 256 32 1 CAL The dc source is computing new calibration constants WTG The dc source is waiting for a trigger CV The dc source is operating in constant voltage mode CC The dc source is operating in constant current mode CC The dc source is operating in negative constant current mode S...

Page 62: ... registers to cause the following actions u When a bit in the Operation NTR register is set to 1 then a 1 to 0 transition of the corresponding bit in the Operation Condition register causes that bit in the Operation Event register to be set u When a bit of the Operation PTR register is set to 1 then a 0 to 1 transition of the corresponding bit in the Operation Condition register causes that bit in...

Page 63: ...ter value Related Commands CLS STAT QUES ENAB STAT QUES NTR STAT QUES PTR STATus QUEStionable CONDition This query returns the value of the Questionable Condition register That is a read only register which holds the real time unlatched questionable status of the dc source Query Syntax STATus QUEStionable CONDition Parameters None Examples STAT QUES COND STATUS QUESTIONABLE CONDITION Returned Para...

Page 64: ...bit at the Questionable Condition register sets the corresponding bit in the Questionable Event register u If the same bits in both NTR and PTR registers are set to 0 then no transition of that bit at the Questionable Condition register can set the corresponding bit in the Questionable Event register Command Syntax STATus QUEStionable NTRansition NRf STATus QUEStionable PTRansition NRf Parameters ...

Page 65: ...a write cycle to nonvolatile memory Nonvolatile memory has a finite maximum number of write cycles Programs that repeatedly cause write cycles to nonvolatile memory can eventually exceed the maximum number of write cycles and cause the memory to fail ESR This query reads the Standard Event Status Event register Reading the register clears it The bit configuration is the same as the Standard Event ...

Page 66: ...ws a PON event to generate SRQ at power on The query returns the current state of PSC Command Syntax PSC Bool Parameters 0 1 OFF ON Example PSC 0 PSC 1 Query Syntax PSC Returned Parameters NR1 0 1 Related Commands ESE SRE CAUTION PSC causes a write cycle to nonvolatile memory Nonvolatile memory has a finite maximum number of write cycles Programs that repeatedly cause write cycles to nonvolatile m...

Page 67: ... is no more response data available A serial poll also returns the value of the Status Byte register except that bit 6 returns Request for Service RQS instead of Master Status Summary MSS A serial poll clears RQS but not MSS When MSS is set it indicates that the has one or more reasons for requesting service Table 4 7 Bit Configuration of Status Byte Register Bit Position 7 6 5 4 3 2 1 0 Bit Name ...

Page 68: ...E Switches the display between its normal instrument functions and a mode in which it displays text sent by the user Text messages are defined with the DISPlay TEXT command Command Syntax DISPlay WINDow MODE NORMal TEXT Parameters CRD NORMal TEXT RST Value NORM Examples DISP MODE NORM DISPLAY MODE TEXT Query Syntax DISPlay WINDow MODE Returned Parameters CRD NORMAL or TEXT Related Commands DISP DI...

Page 69: ... between its SCPI command language and its compatibility language The compatibility language is provided for emulation of older dc source systems and is described in Appendix B Sending the command causes The selected language to become active and to be stored in nonvolatile memory The to reset to its power on state If the dc source is shut off it will resume operation in the last selected language...

Page 70: ...ers None Example SYST REM Related Commands SYST LOC SYST RWL SYSTem RWLock For RS 232 Operation Only This command places the dc source in remote mode during RS 232 operation All front panel keys including the Local key are disabled Use SYSTem LOCal to return the front panel to the local state Command Syntax SYSTem RWLock Parameters None Example SYST RWL Related Commands SYST REM SYST LOC IDN This ...

Page 71: ... location All states are recalled with the following exceptions u the trigger system is set to the Idle state by an implied ABORt command this cancels any uncompleted trigger actions u the calibration function is disabled by setting CAL STATe to OFF NOTE The device state stored in location 0 is automatically recalled at power turn on when the OUTPut PON STATe is set to RCL0 Command Syntax RCL NRf ...

Page 72: ...AV This command stores the present state of the dc source to the specified location in non volatile memory Up to 4 states can be stored If a particular state is desired at power on it should be stored in location 0 It will then be automatically recalled at power turn on if OUTPut PON STATe is set to RCL0 RCL retrieves instrument states Command Syntax SAV NRf Parameters 0 1 2 3 Example SAV 3 Relate...

Page 73: ...tax ABORt Parameters None Examples ABOR Related Commands INIT RST TRG TRIG INITiate SEQuence INITiate NAME INIT SEQ2 or INIT NAME ACQ applies to Agilent 66312A 66332A Only INITiate commands control the initiation of both output and measurement triggers When a trigger is enabled an event on a selected trigger source causes the specified triggering action to occur If the trigger subsystem is not ena...

Page 74: ... TRIGger SOURce This command is included for completeness It selects the trigger source for transient triggers Since BUS is the only trigger source for transient triggers this command does not need to be used BUS GPIB device TRG or GET Group Execute Trigger Command Syntax TRIGger SEQuence1 SOURce source TRIGger TRANsient SOURce source Parameters BUS RST Value BUS Examples TRIG SOUR BUS Query Synta...

Page 75: ...SEQuence2 COUNt CURRent TRIGger ACQuire COUNt CURRent Returned Parameters NR3 Related Commands TRIG SEQ2 TRIG ACQ TRIGger SEQuence2 COUNt VOLTage TRIGger ACQuire COUNt VOLTage Agilent 66312A 66332A Only This command sets up a successive number of triggers for measuring voltage data With this command the trigger system needs to be initialized only once at the start of the acquisition period After e...

Page 76: ...t TRIGger ACQuire HYSTeresis CURRent Returned Parameters NR3 Related Commands TRIG SEQ2 HYST VOLT TRIG SEQ2 LEV CURR TRIGger SEQuence2 HYSTeresis VOLTage TRIGger ACQuire HYSTeresis VOLTage Agilent 66312A 66332A Only This command defines a band around the trigger level through which the signal must pass before an internal measurement can occur The band limit above and below the trigger level is one...

Page 77: ...Rent TRIGger ACQuire LEVel CURRent Returned Parameters NR3 Related Commands TRIG SEQ2 LEV VOLT TRIG SEQ2 HYST CURR TRIGger SEQuence2 LEVel VOLTage TRIGger ACQuire LEVel VOLTage Agilent 66312A 66332A Only This command sets the trigger level for internally triggered voltage measurements A positive voltage trigger occurs when the voltage level changes from a value less than the lower hysteresis band ...

Page 78: ...EQuence2 SLOPe CURRent TRIGger ACQuire SLOPe CURRent Returned Parameters CRD Related Commands TRIG SEQ2 SLOP VOLT TRIGger SEQuence2 SLOPe VOLTage TRIGger ACQuire SLOPe VOLTage Agilent 66312A 66332A Only This command sets the slope of an internally triggered voltage measurement POSitive triggering occurs on the rising edge NEGative triggering occurs on the falling edge EITHer triggering occurs on e...

Page 79: ... commands define the names that are aliased to trigger sequences 1 and 2 The command accepts only ACQuire for sequence 2 and TRANsient for sequence 1 as predefined names The query allows the user to query the instrument names aliased to sequences 1 and 2 Command Syntax TRIGger SEQuence1 DEFine TRANsient TRIGger SEQuence2 DEFine ACQuire Parameters TRANsient ACQuire Examples SEQ1 DEF ACQ SEQ2 DEF TR...

Page 80: ......

Page 81: ...OLT LOW TRIG SEQ1 TRAN IMM MEAS FETC SCAL VOLT MAX TRIG SEQ1 TRAN SOUR MEAS FETC SCAL VOLT MIN TRIG SEQ2 ACQ IMM OUTP STAT TRIG SEQ2 ACQ SOUR OUTP PROT CLE TRIG SEQ DEF OUTP PROT DEL CLS SOUR CURR LEV IMM AMPL ESE ESE ESR SOUR CURR LEV TRIG AMPL IDN SOUR CURR PROT STAT OPC OPC OPT SOUR VOLT LEV IMM AMPL PSC PSC SOUR VOLT LEV TRIG AMPL RCL RST SOUR VOLT PROT SAV SRE STB SENS CURR DC RANG UPP TRG TS...

Page 82: ......

Page 83: ...mands that program the supplies You may need to refer to the HP Agilent Series 6632 6633A and 6634A Operating Guide p n 5957 6360 for complete information on the COMPatibility commands The rest of this appendix discusses the COMPatibility language status system and the COMPatibility language error codes Note For complete information on the Compatibility programming language order the HP Agilent 66...

Page 84: ...mmand determines the type of programming error detected by the dc source A remote programming error sets the ERR bit in the status register which can be enabled by UNMASK to request service SYST ERR FAULT This command reads which bits have been set in the fault register A bit is set in the fault register when the corresponding bit in the status register changes from inactive to active AND the corr...

Page 85: ...e if the output is disabled by the output protection circuits OUTP PROT CLE SENS CURR RANG n This command sets the current measurement range of the dc source See Table 4 3 for the programming range of this command Initial condition MAX SENS CURR RANG SENS SWE POIN n This command defines the number of data points in a measurement sweep Initial condition 32 SENS SWE POIN SENS SWE TINT n This command...

Page 86: ...y option present A relay option command was sent with no relay option present ERR 8 Addressed to talk and nothing to say The unit was addressed to talk without first receiving a query ERR 10 Header expected A non alpha character was received when a header was expected ERR 11 Unrecognized header The string of alpha characters received was not a valid command ERR 20 Number expected A non numeric cha...

Page 87: ...e unit is unregulated OV The overvoltage protection circuit has tripped OT The over temperature protection circuit has tripped OC The overcurrent protection circuit has tripped ERR A programming error has occurred Use ERR to clear CC The unit is operating in negative constant current mode INH The external remote inhibit signal has turned the output off FAST The output is in Fast operating mode Agi...

Page 88: ......

Page 89: ...pe Bit Set Error Code Error Type 5 100 thru 199 Command 3 300 thru 399 or 1 thru 32767 Device dependent 4 200 thru 299 Execution 2 400 thru 499 Query Table C 1 Error Numbers Error Number Error String Description Explanation Examples 100 Command error generic 101 Invalid character 102 Syntax error unrecognized command or data type 103 Invalid separator 104 Data type error e g numeric or string expe...

Page 90: ...c 225 Out of memory 270 Macro error 272 Macro execution error 273 Illegal macro label 276 Macro recursion error 277 Macro redefinition not allowed 310 System error 350 Too many errors errors beyond 9 lost due to queue overflow 400 Query error generic 410 Query INTERRUPTED query followed by DAB or GET before response complete 420 Query UNTERMINATED addressed to talk incomplete programming message r...

Page 91: ...t panel buffer overrun 224 Front panel timeout 401 CAL switch prevents calibration 402 CAL password is incorrect 403 CAL not enabled 404 Computed readback cal constants are incorrect 405 Computed programming cal constants are incorrect 406 Incorrect sequence of calibration commands 407 CV or CC status is incorrect for this command 408 Output mode switch must be in NORMAL position 601 Too many swee...

Page 92: ......

Page 93: ...y 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 call...

Page 94: ...r every call to a subroutine BASIC Controllers The 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 dc source can be programmed to ge...

Page 95: ...nterrupt caused by change to CC mode and print to screen 1205 CALL IOSPOLL PS RESPONSE 1210 IF RESPONSE AND 128 128 THEN GOTO 1240 No OPER event to report 1215 CODES STATUS OPER EVEN GOSUB 2000 Query status oper register 1220 CALL IOENTER PS OEVENT Read back event bit 1225 IF PCIB ERR NOERR THEN ERROR PCIB BASERR 1230 IF OEVENT AND 1024 1024 THEN PRINT Supply switched to CC mode 1240 Clear the sta...

Page 96: ...value insufficient to maintain 1100 supply within its CV operating characteristic 1105 CODES CURR TRIG MIN GOSUB 2000 1110 1115 Set operation status mask to detect mode change from CV to CC 1120 CODES STAT OPER ENAB 1024 PTR 1024 GOSUB 2000 1125 1130 Enable Status Byte OPER summary bit 1135 CODES SRE 128 GOSUB 2000 1140 1145 Arm trigger circuit and send trigger to dc source 1150 CODES INITIATE SEQ...

Page 97: ...UTPUT OFF SAV 2 GOSUB 2000 1260 END 1265 2000 Send command to dc source 2005 CALL IBWRT PS CODES 2010 IF IBSTAT 2015 RETURN 2020 2100 Error detection routine 2105 PRINT GPIB error IBSTAT HEX IBSTAT 2110 PRINT IBERR IBERR in line ERL 2115 STOP 2120 3000 Get data from dc source 3005 CALL IBRD PS OUTPUT 3010 IF IBSTA 3015 I 1 Parse data string 3020 X 1 3025 C INSTR I OUTPUT 3030 WHILE C 0 3035 D MID ...

Page 98: ... 1070 OUTPUT 706 CURR TRIG MIN 1075 1080 Set operation status mask to detect mode change from CV to CC 1085 OUTPUT 706 STAT OPER ENAB 1024 PTR 1024 1090 1095 Enable Status Byte OPER summary bit 1100 OUTPUT 706 SRE 128 1105 1110 Arm trigger circuit and send trigger to dc source 1115 OUTPUT 706 INITIATE SEQUENCE1 TRIGGER 1130 Poll for interrupt caused by change to CC mode and print to screen 1135 Re...

Page 99: ...ement range 24 measurements 23 current measurement detector 28 52 current measurement range 52 D DC 52 dc measurements 23 determining cause of interrupt 35 device clear 17 DFI 36 DFI programming example 37 digital I O port 37 discrete fault indicator 36 display commands 68 DISP 68 DISP MODE 68 DISP TEXT 68 DOS driver types 93 DTR DSR 11 E either 78 enabling the output 19 error handling 94 error nu...

Page 100: ...nt trigger system model 25 measuring output pulses 28 message terminator 15 end or identify 15 newline 15 message unit separator 15 minimum measurements 24 monitoring both phases of status transition 36 moving among subsystems 14 MSS bit 35 multiple measurements 29 N National Instruments GPIB driver 93 negative 78 numerical data formats 16 O OCP 20 operation status group 33 optional header example...

Page 101: ...RIG 58 SOUR DIG DATA 59 SOUR DIG FUNC 59 SOUR VOLT 59 SOUR VOLT ALC BAND 60 SOUR VOLT PROT 60 SOUR VOLT TRIG 60 SRD 16 standard event status group 34 status bit configurations 33 status byte register 34 status commands 61 STAT OPER COND 61 STAT OPER ENAB 62 STAT OPER NTR 62 STAT OPER PTR 62 STAT OPER 61 STAT PRES 61 STAT QUES COND 63 STAT QUES ENAB 63 STAT QUES NTR 64 STAT QUES PTR 64 STAT QUES 63...

Page 102: ...Index 102 V varying voltage or current sampling 29 voltage 20 maximum 20 measurements 23 W waiting for measurement results 27 X XON XOFF 11 ...

Page 103: ...98 printing indicated on the Printing History page 11 9 99 Information about installing VXIplug play Power Products Instrument Drivers has been included in the beginning of chapter 2 1 4 00 All references to HP have been changed to Agilent All references to HP IB have been changed to GPIB ...

Reviews: