background image

 Introduction to Programming - 2

17

 SCPI Command Completion

 SCPI commands sent to the dc source are processed either sequentially or in parallel. Sequential
commands finish execution before a subsequent command begins. Parallel commands allow other
commands to begin executing while the parallel command is still executing. Commands that affect trigger
actions are among the parallel commands.

 The 

*WAI, *OPC, and *OPC?

 common commands provide different ways of indicating when all

transmitted commands, including any parallel ones, have completed their operations. The syntax and
parameters for these commands are described in chapter 4. Some practical considerations for using
these commands are as follows:

 

*WAI

 This prevents the dc source from processing subsequent commands until all pending
operations are completed.

 

*OPC?

 This places a 1 in the Output Queue when all pending operations have completed.
Because it requires your program to read the returned value before executing the next
program statement, *OPC? can be used to cause the controller to wait for commands
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 whenever the trigger subsystem
is in the Initiated state.

 

 Using Device Clear

 You can send a device clear at any time abort a SCPI command that may be hanging up the GPIB
interface. The status registers, the error queue, and all configuration states are left unchanged when a
device clear message is received. Device clear performs the following actions:

♦ 

The input and output buffers of the dc source are cleared.

♦ 

The dc source is prepared to accept a new command string.

 The following statement shows how to send a device clear over the GPIB interface using 

Agilent BASIC:

 

CLEAR 705

IEEE-488 Device Clear

 The following statement shows how to send a device clear over the GPIB interface using the GPIB
command library for 

or 

QuickBASIC

:

 

IOCLEAR (705)

NOTE:

For RS-232 operation, sending a Break will perform the same operation as the IEE-488
device clear message.

 

Содержание 6611C

Страница 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 ...

Страница 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...

Страница 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...

Страница 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 ...

Страница 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 ...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 18: ......

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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 ...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 38: ......

Страница 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...

Страница 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...

Страница 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 ...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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 ...

Страница 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...

Страница 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 ...

Страница 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...

Страница 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 ...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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 ...

Страница 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 ...

Страница 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...

Страница 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 ...

Страница 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...

Страница 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...

Страница 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 ...

Страница 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 ...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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 ...

Страница 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...

Страница 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...

Страница 80: ......

Страница 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...

Страница 82: ......

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 88: ......

Страница 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...

Страница 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...

Страница 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...

Страница 92: ......

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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 ...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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 ...

Страница 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 ...

Отзывы: