Home

HP Microphone 6632B User's Manual

image

Contents

1. Figure 3 5 Sense Commands Used to Vary the Sampling Rate At RST the output voltage or current sampling rate is 15 6 microseconds This means that it takes about 32 milliseconds to fill up 2048 data points in the data buffer You can vary this data sampling rate with SENSe SWEep TINTerval lt sample_period gt SENSe SWEep POINts lt points gt For example to set the time interval to 45 microseconds per sample with 1500 samples use SENSe SWEep TINTerval 45E 6 POINts 1500 Multiple Measurements HP 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 lt number gt or TRIGger ACQuire COUNt VOLTage lt number gt With this setup the instrument performs each acquisition sequentially storing the digitized readings in the internal measurement buffer It is only necessary to initialize the measurement once at the start after each completed aquisition the instrument will wait for the next valid trigger condition to start another The results returned by MEASure or FETCh will be the average of the total data acquired Note The total number of data points cannot exceed 4096 This means that the product of the trigger count multiplied by the sweep points cannot exceed 4096 otherwise an error wil
2. TRIG SEQ2 SLOP CURR TRIG SEQ1 DEF TRIG ACQG SLOP CURR TRIG SEQ2 DEF TRG TRIGger SEQuence2 SOURce TRIGger ACQuire SOURce HP 66312A 66332A Only These commands select the trigger source for measurement triggers as follows BUS HP IB device TRG or lt GET gt Group Execute Trigger INTernal trigger is generated internally when the measured waveform crosses the trigger level with the selected slope Command Syntax TRIGger SEQuence2 50URce lt source gt TRIGger ACQuire SOURce lt source gt Parameters BUS INTernal RST Value INTernal Examples TRIG ACQ SOUR BUS Query Syntax TRIGger SEQuence2 SOURce TRIGger ACQuire SOURce Returned Parameters lt CRD gt TRIGger SEQuence1 DEFine TRIGger SEQuence2 DEFine TRiGger SEQuence2 DEFine applies to HP 66312A 66332A Only These commands define the names that are aliased to trigger sequences 1 and 2 The command accepts only AC Quire 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 SEQuencel DEFine ACQuire TRIGger SEQuence2 DEFine TRANsient Parameters TRANsient ACQuire Examples SEQ1 DEF ACQ SEQ2 DEF TRAN Query Syntax TRIGger SEQuencel DEFime TRIGger SEQuence2 DEFine Returned Parameters lt CRD gt Related Commands TRIG SEQ2 ACQ TRIG SEQI TRAN TRG This common command generates a trigger when the trigger subsystem has BUS selected as its so
3. For a positive trigger to occur the excursion of an output waveform in the positive direction must start below the lower hysteresis band limit and pass through the upper hysteresis band limit For a negative trigger to occur the excursion of an output waveform in the negative direction must start above the upper hysteresis band limit and pass through the lower hysteresis band limit Command Syntax TRIGger SEQuence2 HYSTeresis VOL Tage lt NRf gt TRIGger ACQuire H Y STeresis VOLTage lt NRf gt Parameters Oto MAX see table 4 3 Unit V volts RST Value 0 Examples TRIG SEQ2 HYST VOLT 2 TRIG ACQ HYST VOLT 2 Query Syntax TRIGger SEQuence2 HYSTeresis VOLTage TRIGger AC Quire HYSTeresis VOLTage Returned Parameters lt NR3 gt Related Commands TRIG SEQ2 HYST CURR TRIG SEQ2 LEV VOLT Trigger Commands Language Dictionary 4 37 Eri TRIG SEG2 LEV CURR TRIG SEQG2 LEV VOLT TRIG ACQ LEV CURR TRIG ACQ LEV VOLT TRIGger SEQuence2 LEVel CURRent TRiGger ACQuire LEVel CURRent HP 663124 66332A Only This command sets the trigger level for internally triggered current measurements A positive current trigger occurs when the current level changes from a value less than the lower hysteresis band limit to a value greater than the upper hysteresis band limit Similarly a negative current trigger occurs when the current level changes from a value greater than the upper hysteresis band limit to a value l
4. w ANSI IEEE Std 488 1 1987 IEEE Standard Digital Interface for Programmable Instrumentation Defines the technical details of the HP IB interface While much of the information is beyond the need of most programmers it can serve to clarify terms used in this guide and in related documents w ANSIJIEEE Sid 488 2 1987 IEEE Standard Codes Formats Protocols and Common Commands Recommended 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 Fast 47th Street New York NY 10017 USA 1 2 General Information External References Introduction to Programming HP IB Capabilities of the DC Source All de source functions except for setting the HP IB address are programmable over the HP IB The IEEE 488 2 capabilities of the de source are listed in the Specifications Table of the User s Guide HP IB Address The de source operates from an HP IB address that is set from the front panel To set the HP IB address press the key on the front panel and enter the address using the Entry keys The HP IB address is stored in non volatile memory RS 232 Capabilities of the DC Source The de source provides an R 232 programming interface which is activated by commands located under the front panel Addres
5. a A program message consists of one or more properly formatted SCPI commands sent from the controller to the de source The message which may be sent at any time requests the dc source to perform some action a A response message consists of data in a specific SCPI format sent from the de source to the controller The de source sends the message only when commanded by a program message called a query The following figure illustrates SCPI message structure Data Message Unit Keywords y VOLT LEV 20 PROT 21 CURR 2 lt NL gt Query Indicator Keyword Separator Message lerminator ps i p Message Unit Separators Root Specifier FIG2 1 GAL Figure 2 2 Command Message Structure The Message Unit The simplest SCPI command is a single message unit consisting of a command header or keyword followed by a message terminator The message unit may include a parameter after the header The parameter can be numeric or a string ABORt lt NL gt VOLTage 20 lt NL gt Headers Headers also referred to as keywords are instructions recognized by the de source Headers may be either in the long form or the short form In the long form the header is completely spelled out such as VOLTAGE STATUS and DELAY In the short form the header 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 VOLTag
6. Save new cal constants in non volatile memory Enable or disable calibration mode Calibrate output voltage and voltage readback Begin voltage protection calibration sequence Enable disable front panel display Set display mode NORM TEXT Sets the text that is displayed Initiate a specific numbered sequence 1 2 Initiate a specific named sequence TRAN ACQ Set continuous initialization Set continuous initialization Returns the digitized instantaneous current Returns the digitized instantaneous voltage Returns de current Returns the total rms current ac dc Returns the HIGH level of a current pulse Returns the LOW level of a current pulse Returns maximum current Returns minimum current Returns de voltage Returns the total rms voltage ac dc Returns the HIGH level of a voltage pulse Returns the LOW level of a voltage pulse Returns maximum voltage Returns minimum voltage Subsystem Commands Table 4 1 Subsystem Commands Syntax continued OUT Put STATe lt bool gt NORelay Enables disables the de source output DFI STATe lt bool gt Enable disable DFI output SOURce lt source gt Selects event source QUES OPER ESB RQS OFF PON STATE lt state gt Set power on state FRST RCLO PROTection CLEar Reset latched protection DELay lt u gt Delay after programming before protection RELay STATe lt bool gt Opens closes the external relay contacts PO
7. TRIGger TRA Nsient IMMediate Parameters None Examples TRIG TRIG IMM Related Commands ABOR CURR TRIG INIT TRG VOLT TRIG TRIGger SOURce This command selects the trigger source for transient triggers as follows BUS HP IB device TRG or lt GET gt Group Execute Trigger Command Syntax TRIGger SEQuencel SOURce lt source gt TRIGger TRANsient SOURce lt source gt Parameters BUS RST Value BUS Examples TRIG SOUR BUS Query Syntax TRIGger SEQuencel SOURce TRIGger TRANsient SOURce Returned Parameters lt CRD gt TRIGger SEQuence2 TRIGger ACQuire HP 66312A 66332A Only When the trigger subsystem is initiated these commands generate a measurement trigger signal The measurement trigger causes the de source to measure the output voltage and current and store the results in a buffer Command Syntax TRIGger SEQuence2 IMMediate TRiGger AC Quire IM Mediate Parameters None Examples TRIG SEQ2 TRIG ACQ Related Commands TRIG SEQ DEF TRIG COUN TRIGILEV TRIG SLOP TRIG SOUR Trigger Commands Language Dictionary 4 35 TRIG SEQ2 COUN CURR TRIG SEQ2 COUN VOLT TRIG ACG COUN CURR TRIGIACG COUN VOLT TRiGger SEQuence2 COUNt CURRent TRIGger ACQuire COUNt CURRent HP 66312A 66332A Only This command sets up a successive number of triggers for measuring current data With this coramand the trigger system needs to be initialized only once at the start of the acquisition period After each co
8. The commands to accomplish these conditions are PSC OFF ESE 128 SRE 32 Status Byte Register This register summarizes the information from all other status groups as defined in the IEEE 488 2 Standard Digital Interface for Programmable Instrumentation The bit configuration is shown in Table 3 1 Command Action STB reads the data in the register but does not clear it returns MSS in bit 6 serial poll clears RQS inside the register and returns it in bit position 6 of the response The MSS Bit This is a real time unlatched summary of all Status Byte register bits that are enabled by the Service Request Enable register MSS is set whenever the de source has one or more reasons for requesting service STB reads the MSS in bit position 6 of the response but does not clear any of the bits in the Status Byte register The ROS Bit The RQS bit is a latched version of the MSS bit Whenever the de source requests service it sets the SRQ interrupt line true and latches RQS into bit 6 of the Status Byte register When the controller does a serial poll RQS is cleared inside the register and returned in bit position 6 of the response The remaining bits of the Status Byte register are not disturbed The MAV bit and Output Queue The Output Queue is a first in first out FIFO data register that stores de source to controller messages until the controller reads them Whenever the queue holds one or more bytes 1t sets the MAV bit 4 o
9. 3 Initiating the Output Trigger System en do wel 6 doe a CO RA 3 4 cy Generating Triggers sn See ee A Ea a a DE ots A 3 4 E Making Measurements pa es a oe cae ae ae de Tab 3 5 Voltage and Current Measurements Or de ae EO RE DS a he SBS oe we UR a 3 5 DC Measurements sad E ee a 4 y pi a A ae 3 5 RMS Measurements HP 66312A 66332A On 5 a 6 saw e GE p 3 6 Minimum and Maximum Measurements HP 663124 66332A Only 3 6 Current Ranges s s e oi A whe AO Se Ba Sie e A Sse ee eh 3 6 Returning Measurement Data Fre rom ite Data Buffer CHP 66312A 66332A Only 2 a ke Sho NS e E E O 3 6 Internally Triggered Meanie em sata Ca de cio Be de Ge A a BS Ss ok 3 7 SCPI Triggering Nomenclature ds 2 4 2 4 A ADS BA So 3 7 Measurement Trigger System Model 2 2 ee 3 7 Initiating the Measurement Trigger System HP 66312A 66332A Only 3 7 Selecting the Measurement Trigger Source HP 66312A 66332A Only 3 8 Generating Measurement Triggers HP 66312A 66332A El Dn se wa vat a 3 8 Measuring Output Pulses HP 66312A 66332A ane oe ae a 3 10 Current Detector a lt u e pr amp E Ad 3 10 Pulse Measurement Guerics ee ee oe Hea A ek ws a 3 10 Controlling Measurement Samples EE a Sang as a 3 11 Varying the Voltage or Current Sampling Rate 2 2 a a 3 11 Multiple Measurements HP 663124 66332A Only E Arad 3 11 Pre event and Post event Triggering HP 663124 663324 Only A 3 12 Programming
10. CR A 4 7 CALibrate PASSword init A e DECOTE SRS amp Boe ee ek 4 7 at E e o te Os du oe o a 4 7 CALibrateSTATe do IS AE A we Hive Eek RE EN ta ADH 4 8 CAT brates VOL age uo a eh 8 Se is can Je as ae oh eS SA A 4 8 CALIbrte VOL Tage PRO Tection bit ge wh ed a A A 4 8 Measurement Commands ba le a a 4 9 MEASure ARRay CURRent FETCh ARRay CURRent 4 9 HP 66312A 66332A Only e do do A AE AA A 4 9 MEASure ARRay VOLTage FETCh ARRay VOLTage 4 9 HP 66312A 66332A Only aa A A A e 4 9 MEASure CURRent FETCh CURRent oaa aaa a e 4 10 FETCh CURRent applies to HP 663124 663324 Only 4 10 MEASure CURRent ACDC FETCh CURRent ACDC 4 10 EGO DA COMA Only fo eng Se cel eG Rs Se ag ad ees SS DS es 4 10 MEASure CURRent HIGH FETCh CURRent HIGH 2 2 00 4 10 HP 66312A 66332A Only epa ERA 4 10 MEASure CURRent LOW FETCh CURRent LOW 4 11 HP 66312A 66332A Only rn a EA 4 11 MEASure CURRent MA Ximum FETCh CURRent MAXimum 4 11 EP G6o12 As 03D A COM a a a a a JR 4 11 MEA Sure CURRent MINimum FETCh CURRent MINimum 4 11 HP 66312A 66332A Only r ria RO at Ge Ed A 4 11 MEASure VOLTage FETCh VOLTage 4 12 FETCh VOLTage applies to HP 663124 66332A Only 4 12 MEASure VOLTage ACDC FEPCh VOLTage ACDO no do Ga 4 12 HP 66312A 66332A Only e dana E fe hs Ro ae Ae ce E MAE E 4 12 MEASure VOLT age HIGH FETCh VOLTage HIGH EET nd n o Div 4 12 H
11. CRD gt NORMal TEXT NORM DISP MODE NORM DISPLAY MODE TEXT DISPlay WINDow MODE lt CRD gt NORMAL or TEXT DISP DISP TEXT RST This command sends character strings to the display when the display mode is set to TEXT The character string is case sensitive and must be enclosed in either single or double quotes The display is capable of showing up to 14 characters Strings exceeding 14 characters will be truncated Command Syntax Parameters RST Value Examples Query Syntax Returned Parameters Related Commands System Commands DISPlay WINDow TEXT DATA lt display string gt lt display string gt null string DISP TEXT DEFAULT MODE DISPLAY WINDOW TEXT DATA 533 2E 1VOLTS DISPlay WINDow TEXT lt STR gt Last programmed text string DISP DISP MODE Language Dictionary 4 29 SYS ERR SYS LANG SYS VERS SYSTem ERRor This query returns the next error number followed by its corresponding error message string from the remote programming error queue The queue is a FIFO first in first out buffer that stores errors as they occur As it is read each error is removed from the queue When all errors have been read the query returns 0 NO ERROR If more errors are accumulated than the queue can hold the last error in the queue will be 350 T00 MANY ERRORS see Appendix C for other error codes You can use the de source front panel key to read err
12. Calibration Measurement Output Status System and Trigger Commands under each function are grouped alphabetically Commands followed by a question mark take only the query form When commands take both the command and query form this is noted in the syntax descriptions Table 4 1 lists all of the subsystem commands in alphabetical order introduction Language Dictionary 4 1 Table 4 1 Subsystem Commands Syntax ABORt CALibrate CURRent SOURce DC POSitive NEGative MEA Sure DC LOWRange AC DATA lt n gt LEVel lt level gt PASSword lt n gt SAVE STATE lt bool gt lt n gt VOLTage DC PROTection DISPlay E WIN Dow ESTATe lt bool gt MODE lt mode gt TEXT DATA lt string gt INI Tiate IM Mediate SEQuence lt n gt NAME lt name gt CON Tinuous SEQuence 1 lt bool gt NAME TRANsient lt bool gt MEASure FETCh ARRay CURRent DC VOLTage DC SCALar CURRent DC ACDC HIGH LOW MAX MIN DC ACDC HIGH LOW MAX MIN 4 2 Language Dictionary Resets the trigger system to the Idle state Calibrate positive output current and high current measurement range Calibrate negative output current Calibrate low current measurement range Calibrate ac current measurement circuits Input a calibration measurement Advance to next calibration step P1 P2 Set calibration password
13. Documentation Summary The following documents that are related to this Programming Guide have additional helpful information for using the de source u Users Guide for HP 663124 and HP 6612B Includes specifications and supplemental characteristics how to use the front panel how to connect to the instrument and calibration procedures mw User s Guide for HP 66332A and HP 6682B 6633B 6634B Includes specifications and supplemental characteristics how to use the front panel how to connect to the instrument and calibration procedures Documentation Summary General Information 1 1 rm a ra A a A O A a A a rr External References SCPI References The following documents will assist you with programming in SCPI w Beginner s Guide to SCPI HP Part No H2325 90001 Highly recommended for anyone who has not had previous experience programming with SCPI m Tutorial Description of the Hewlett Packard Interface Bus HP Part No 5952 0156 Highly recommended for those not familiar with the IEEE 488 1 and 488 2 standards To obtain a copy of the above documents contact your local HP Sales and Support Office HP IB References The most important HP IB documents are your controller programming manuals HP BASIC HP IB Command Library for MS DOS etc Refer to these for all non SCPI commands for example Local Lockout The following are two formal documents concerning the HP IB interface
14. HYSTeresis CURRent HP 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 half of the hysteresis value added to or subtracted from the trigger level For a positive trigger to occur the excursion of an output waveform in the positive direction must start below the lower hysteresis band limit and pass through the upper hysteresis band limit For a negative trigger to occur the excursion of an output waveform in the negative direction must start above the upper hysteresis band limit and pass through the lower hysteresis band limit Command Syntax TRIGger SEQuence2 HYSTeresis CURRent lt NRf gt TRiIGger ACQuire HYSTeresis CURRent lt NR gt Parameters Oto MAX see table 4 3 Unit A amperes RST Value 0 Examples TRIG SEQ2 HYST CURR 0 5 TRIG ACQ HYST CURR 0 5 Query Syntax TRIGger SEQuence2 HYSTeresis CURRent TRIGger ACQuire HYSTexesis CURRent Returned Parameters lt NR3 gt Related Commands TRIG SEQ2 HYST VOLT TRIG SEQ2 LEV CURR TRIGger SEQuence2 HYSTeresis VOLTage TRIGger ACQuire HYSTeresis VOLTage HP 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 half of the hysteresis value added to or subtracted from the trigger level
15. Pending operations are as defined under the OPC command WAI can be aborted only by sending the de source an HP IB DCL Device Clear command Command Syntax WAI Parameters None Related Conmands OPC OPC 4 28 Language Dictionary Status Commands DISP DISP MODE DISP TEXT System Commands System commands consist of system and display commands System commands control system functions that are not directly related to output control or measurement functions Display commands control the front panel display of the de source Common commands also perform system functions The following common commands are discussed in this section IDN OPT RCL RST SAV TST DISPlay This command turns the front panel display on or off When off the front panel display is blank The display annunciators are not affected by this command Command Syntax Parameters RST Value Examples Query Syntax Returned Parameters Related Commands DISPlay MODE DISPlay WINDow STATe lt bool gt 0 1 OFF ON ON DISP ON DISPLAY STATE ON DISPlay WINDow STATe lt NRI gt fool DISP MODE DISP TEXT RST 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 Parameters RST Value Examples Query Syntax Returned Parameters Related Commands DISPlay TEXT DISPlay WINDow MODE NORMal TEXT lt
16. REF HIGH 4 12 Language Dictionary Measurement Commands MEAS VOLT LOW i MEAS VOLT MAX MEAS VOLT MIN FETC VOLT LOW FETC VOLT MAX FETC VOLT MIN MEASure VOLTage LOW FETCh VOLTage LOW HP 66312A 66332A Only These queries return the Low 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 below the 50 point is the low bin The average of all the data points in the low bin is returned as the Low level If no low bin contains more than 1 25 of the total number of acquired points then the minimum value is returned by these queries Query Syntax MEASure SCALar VOLTage LOW FETCh SCALar VOLTage LOW Parameters None Examples MEAS VOLT LOW FETC VOLT LOW Returned Parameters lt NR3 gt Related Commands MEAS VOLT HIGH CALC REF LOW MEASure VOLTage MAXimum FETCh VOLTage MAXimum HP 66312A 66332A Only These queries return the maximum output voltage Query Syntax MEASure SCALar VOLTage MA Ximum FETCh SCALar VOLTage MA Ximum Parameters None Examples MEAS VOLT MAX FETC VOLT MAX Returned Parameters lt NR3 gt Related Commands MEAS VOLT MIN MEASure VOLTage MINimum FETCh VOLTage MINimum HP 66312A 66332A Only These queries return the minimum output voltage Query Syntax M
17. Source 3 1 Output Voltage The output voltage is controlled with the VOLTage command For example to set the output voltage to 25 volts use VOLTage 25 The de source can be programmed to turn off its output if the output voltage exceeds a preset peak voltage limit This protection feature is implemented with the VOLTage PRO Tection command as explained in chapter 4 Maximum Voltage The maximum output voltage that can be programmed can be queried with VOLTage MAX Output Current All models have a programmable current function The command to program the current is CURRent lt n gt where lt n gt 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 de source can also be programmed to turn off its output if the current limit is reached As explained in chapter 4 this protection feature is implemented the following command CURRent PROTection STATe ON OFF Note Use OUTP PROT DEL to prevent momentary current limit conditions caused by programmed output changes from tripping the overcurrent protection 3 2 Programming the DC Source Output Triggering Output Changes The de source has two independent trigger systems One is used for gen
18. Triggers Send one of the following commands over the HP IB TRIGger IMMediate not affected by the trigger source setting TRG a group execute trigger Internal Triggers To trigger off of the output signal you must specify the output level that generates the trigger the rising or falling edge of the slope and a hysteresis to qualify trigger conditions This is illustrated in figure 3 3 3 8 Programming the DC Source Measurement Triggering Trigger occurs on rising edge Trigger occurs on falling edge when signal crosses positive when signal crosses negative hysteresis band limrt hysteresis band limit TRIG ACQULEV CURR lt level gt a TRIGIACQILEV VOLT lt level gt TRIGACQHYSTVOLT lt value gt e TRIGIACG HYST CURR lt value gt TRIG ACG SLOP CURR POS TRIGACGISLOP VOLT POS TRIG ACO SLOP CURR NEG TRIGQ ACG SLOP VOLT NEG Figure 3 3 Trigger Commands Used to Measure Output Pulses To specify the output level that will generate triggers for both positive and negative going signals use TRIGger SEQuence2 LEVel CURRent lt value gt or TRIGger ACQuire LEVel CURRent lt value gt To specify the slope on which triggering occurs use the following commands You can specify a POSitive a NEGative or EITHer type of slope TRIGger SEQuence2 SLOPe CURRent lt slope gt or TRIGger ACQuire SLOPe CURRent lt slope gt To specify a hysteresis band to qualify the positive or negative going signal use TRIGger SEQuence
19. VOLT TRIG ACQ SLOP CURR TRIG ACO SLOP VOLT TRIGger SEQuence2 SLOPe CURRent TRIGger ACQuire SLOPe CURRent HP 66312A 66332A Only This command sets the slope of an internally triggered current measurement POSitive triggering occurs on the rising edge NEGative triggering occurs on the falling edge ElTHer triggering occurs on either edge Command Syntax TRIGger SEQuence2 SLOPe CURRent lt slope gt TRIGger ACQuire SLOPe CURRent lt slope gt Parameters ETT Her POSitive NEGative RST Value ElTHer Examples TRIG SEQ2 SLOP CURR POS TRIG ACQ SLOP CURR EITH Query Syntax TRIGger SEQuence2 SLOPe CURRent TRiIGger ACQuire SLOPe CURRent Returned Parameters lt CRD gt Related Commands TRIG SEQ2 SLOP VOIT TRIGger SEQuence2 SLOPe VOLTage TRIGger ACQuire SLOPe VOLTage HP 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 ElTHer triggering occurs on elther edge Command Syntax TRIGger SEQuence2 SLOPe VOLTage lt slope gt TRIGger ACQuire SLOPe VOLTage lt slope gt Parameters ElTHer POSitive NEGative RST Value ElTHer Examples TRIG SEQ2 SLOP VOLT POS TRIG ACQ SLOP VOLT EITH Query Syntax TRIGger SEQuence2 SLOPe VOLTage TRIGger ACQuire SLOPe VOLTage Returned Parameters lt CRD gt Related Commands TRIG SEQ2 SLOP CURR Trigger Commands Language Dictionary 4 39
20. an UNREG condition and the recording of that condition by the status registers This can be used to prevent false triggering of the OverCurrent Protection feature OCP Initial delay 0 08s Normal 0 008s Fast This command enables or disables the de source s front panel display Initial condition DSP 1 DSP 0 1 ERR This command determines the type of programming error detected by the de source A remote programming error sets the ERR bit in the status register which can be enabled by UNMASK to request service FAULT This command reads which bits have been set in the fault bit in the status register changes from inactive to active AND the corresponding bit in the mask register has been enabled The fault register is reset only after it has been read The decimal equivalent of the total bit weight of all enabled bits is returned This command causes the de source to report its model number and any options that affect the de source s output IOUT This command measures and returns the actual output current MEAS CURR ISET lt n gt This command programs the output current See Table 4 3 for the programming range of this command Initial condition 8 A This command enables or disables the dc source s overcurrent protection If this function is enabled and the de source goes into CC mode the output of the de source is disabled Initial condition OCP This command enables or disables the de source
21. condition that is passed through the PTR or NTR filters It is a read only register that is cleared when read STAT QUES ENAB lt n gt A register that functions as a mask for enabling specific bits from the Event register It is a read write register Status Registers Programming the DC Source 3 15 Standard Event Status Group This group consists of an Event register and an Enable register that are programmed 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 ON clears the Standard Event enable register at power on ESR reads and clears the Standard Event event register The PON Power On Bit The PON bit in the Standard Event event register is set whenever the de source is turned on The most common use for PON is to generate an SRQ at power on following an unexpected loss of power To do this bit 7 of the Standard Event enable register must be set so that a power on event registers in the ESB Standard Event Summary Bit bit 5 of the Service Request Enable register must be set to permit an SRQ to be generated and PSC OFF must be sent
22. current Query Syntax MEASure SCALar CURRent ACDC FETChH SCALar CURRent ACDC Parameters None Examples MEAS CURR ACDC FETC CURR ACDC Returned Parameters lt NR3 gt Related Commands MEAS VOLT ACDC MEASure CURRent HIGH FETCh CURRent HIGH HP 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 the high bin The average of all the data points in the high bin is returned as the High level If no high bin contains more than 1 25 of the total number of acquired points then the maximum value is returned by these queries Query Syntax MEASurejSCA Lar CURRent HIGH FETCh SCALar CURRent HIGH Parameters None Examples MEAS CURR HIGH FETC CURR HIGH Returned Parameters lt NR3 gt Related Commands MEAS CURR LOW CALC REF HIGH 4 10 Language Dictionary Measurement Commands MEAS CURR LOW MEAS CURR MAX MEAS CURR MIN FETC CURR LOW FETC CURR MAX FETC CURR MIN MEASure CURRent LOW FETCh CURRent LOW HP 66312A 66332A Only These queries return the Low 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 pu
23. example you may program the de source to generate an interrupt assert SRQ when an event such as a current limit occurs When the interrupt occurs your program can then act on the event in the appropriate fashion Figure 3 7 shows the status register structure of the de source Table 3 1 defines the status bits The Standard Event Status Byte and Service Request Enable registers and the Output Queue perform standard HP IB functions as defined in the IEEE 488 2 Standard Digital Interface for Programmable Instrumentation The Operation Status and Questionable Status registers implement functions that are specific to the de source Power On Conditions Refer to the RST command description in chapter 4 for the power on conditions of the status registers QUESTIONABLE STATUS CONDITION PTERINTA SERVICE REQUEST STANDARD EVENT STATUS ENABLE ra A _ ae ENABLE NOT EMPTY RS CONDITION PTRINTR SERVICE REQUEST GENERATION Figure 3 7 DC Source Status Model Status Registers Programming the DC Source 3 13 he 3 14 Programming the DC Source Table 3 1 Bit Configurations of Status Registers Signal Meaning Operation Status Group The de source is computing new calibration constants The de source is waiting for a trigger The de source is in constant voltage mode The de source is in constant current mode The
24. function gt VOL Tage CURRent SENS FUNC VOLT SENSe FUNCtion lt SRD gt SENSe SWEep OFFSet POINts This command defines the offset in a data sweep when an acquire trigger is used Negative values represent data samples taken prior to the trigger Command Syntax Parameters RST Value Examples Query Syntax Returned Parameters Related Commands SENSe S W Eep OFFSet POINts lt NRf gt 4095 through 2E9 0 SENS SWE OFFS POIN 2047 SENSe SW Eep OF FSet POINts lt NR3 gt SENS ISWE TINT SENS SWE POIN MEAS ARR SENSe SWEep POINts HP 66312A 66332A Only This command defines the number of points in a data sweep Command Syntax Parameters RST Value Examples Query Syntax Returned Parameters Related Commands SENSe SWEep POINts lt NRf gt 0 through 4096 2048 SENS SWE POIN 1024 SENSe S WEep POINts lt NR3 gt SENS SWE TINT SENS SWE OFFS MEAS ARR SENSe SWEep TINTerval This command defines the time period between samples Command Syntax Parameters RST Value Examples Query Syntax Returned Parameters Related Commands Measurement Commands SENSe S W Eep TINTerval lt NRf gt 15 6 6 through 390E 6 seconds 15 6E 6 SENS SWE TINT 31 2E 6 SENSe S WEep TIN Terval lt NR3 gt SENS SWE POIN SENS SWE OFFS MEAS ARR Language Dictionary 4 15 Reseed OUTP OUTP DFI OUTP DFI SOUR Output Commands Output commands consist of o
25. gt Parameters 0 to 255 Power on Value See PSC Example SRE 20 Query Syntax SRE Returned Paramters lt NR1 gt Register binary value Related Commands Status Commands ESE ESR PSC Language Dictionary 4 27 STB WAI STB This query reads the Status Byte register which contains the status summary bits and the Output Queue MAV bit Reading the Status Byte register does not clear it The input summary bits are cleared when the appropriate event registers are read The MAV bit is cleared at power on by CLS or when there 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 de source has one or more reasons for requesting service Table 4 7 Bit Configuration of Status Byte Register Bit Position 7 6 5 a Bit Name OPER MSS ESB MAV QUES HEY ee 3 mods ba ESB Event status e summary ER Operation status summary MAV Message available ae Questionable status summary MSS Master status summary JS Request for service Query Syntax STB Returned Paramters lt NR1 gt Register binary value WAI This command instructs the de source not to process any further commands until all pending operations are completed
26. least significant digit Examples 273 Digits with an explicit decimal point Example 0273 Digits with an explicit decimal point and an exponent Example 2 73E 2 Listening Formats Extended format that includes lt NR1 gt lt NR2 gt and lt NR3 gt Examples 273 273 2 732 Expanded decimal format that includes lt NRf gt 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 Boolean Data Example 0 1 or ON OFF 2 6 Introduction to Programming SCPI Data Formats besni Suffixes and Multipliers Some SCPI commands let you send engineering units as suffixes to extend numeric parameters The following table lists the allowable suffixes and multipliers Suffix Unit Unit with Multiplier Current A Ampere MA milliampere Amplitude V Volt MV millivolt Time S second MS millisecond Common Multipliers 1E3 K kilo 1E 3 M milli 1E 6 U micro Response Data Types Character strings returned by query statements may take either of the the following forms depending on the length of the returned string lt CRD gt Character Response Data Permits the return of character strings lt AARD gt Arbitrary ASCI Response Data Permits the return of undelimited 7 bit ASCIL This data type has an implied message terminator lt SRD gt String Response Data Returns string parameters enclosed i
27. lt 0 THEN GOTO 2100 OEVENT VAL OEVENT IF OEVENT AND 1024 1024 THEN PRINT Supply switched to CC mode D 4 Example Programs National Interface 1225 1230 1235 1240 1245 1250 1255 1260 1265 2000 2005 2010 2015 1250 1255 1260 1265 2000 2005 2010 2015 2020 2100 2105 2110 2115 2120 3000 3005 3010 3015 3020 3025 3030 3035 3040 3045 3050 3055 3060 3065 3070 3075 3080 3 Clear status circuit CODES CLS GOSUB 2000 FOR T 1 TO 50 NEXT 1 Wait for supply to clear 3 Disable output and save present state to location 2 CODES OUTPUT OFF SAV 2 GOSUB 2000 END Send command to dc source CALL IBWRT PSY CODES IF IBSTATY lt O THEN GOTO 2100 Error detected RETURN Disable output and save present state to location 2 CODES OUTPUT OFF SAV 2 GOSUB 2000 END Send command to dc source CALL IBWRT PSY CODES IF IBSTATY lt O THEN GOTO 2100 Error detected RETURN 3 Error detection routine PRINT GPIB error IBSTAT 4H HEX IBSTATY PRINT IBERRA IBERRA in line ERL STOP 3 Get data from dc source CALL IBRD PS OUTPUT IF IBSTA lt O THEN GOTO 2100 1 1 Parse data string X 1 C INSTR I OUTPUT WHILE C lt gt O D MID OUTPUT 1 C 1 OUTPUT X VAL D Get values L C 1 C INSTRCI OUTPUTS X X 1 WEND D RIGHT OUTPUTS LEN COUTPUT I 1 OUTPUT X VAL D QUTPUT SPACE 40 Clear st
28. or current data and return measurement calculations from this data as soon as the buffer is full This is the easiest way to make measurements since it requires no explicit trigger programming mw Use an acquisition trigger to acquire the data Then use the FETCh commands to return calculations from the data that was retrieved by the acquisition trigger This 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 Making triggered measurements with the acquisition trigger system is discussed under Triggering Measurements Note For each MEASure form of the query there is a corresponding query that begins with the header FETCh FETCh queries perform the same calculation as their MEASure counterparts but do not cause new data to be acquired Data acquired by an explicit trigger or a previously programmed MEASure command are used Voltage and Current Measurements The SCPI language provides a number of MEASure and FETCh queries which return various measurement parameters of voltage and current waveforms DC Measurements To measure the dc output voltage or current use MEASure VOLTage or MEASure CURRent De voltage and current is measured by acquiring a number of readings at the
29. s output The de source will be able to implement commands even while the output is disabled Initial condition OUT 1 OCP 0 1 OUT 0 1 OVSET lt n gt This command programs the overvoltage protection See Table 3 3 for the programming range of this command Initial condition MAX Only applies to units with Option 760 This command sets the polarity of the output relays to either normal 1 or inverted 0 Initial condition POL 1 POLO 1 pas gt B 2 Compatibility Language Similar SCPI Command STAT OPER STAT QUES ESE OUTP STAT NOR 0 1 ON OFF OUTP PROT DEL DISP 9 LION OFF SYST ERR STAT OPER register bit is set in the fault register when the corresponding STAT QUES ESE CURR CURR PROT STAT 0 1 ON OFF OUTP STAT 0 1 ON OFF VOLT PROT OUTP REL POL 0 1 Table B 2 COMPatibility Commands continued Compatibility Description Command PON 0 1 This command enables 1 or disables 0 SRQ at power on Initial condition last programmed value RELAY 0 1 Only applies to units with Option 760 This command opens 0 or closes 1 the output relays without affecting the programmed output state of the unit Initial condition RELAY 1 Only applies to units with Option 760 This command opens 0 or closes 1 the output relays at power on without affecting the programmed output state of the unit Initial condition R
30. switched to CC mode 3 Clear status OUTPUT 706 CLS i Disable output and save present state in location 2 OUTPUT 706 OUTPUT OFF SAV 2 END D 6 Example Programs HP BASIC Interface index A ABOR 4 34 assigning HP IB address in programs D 1 C calculate commands 4 9 calibration commands CAL CURR 4 6 CAL CURR MEAS AC 4 6 CAL CURR MEAS LOWR 4 6 CAL CURR NEG 4 6 CAL DATA 4 7 CAL LEV 4 7 CAL PASS 4 7 CAL SAVE 4 7 CAL STAT 4 8 CAL VOLT 4 8 CAL VOLT PROT 4 8 combining commands common commands 2 4 from different subsystems 2 4 root specifier 2 4 command completion 2 7 common commands CLS 4 25 ESE 4 26 ESR 4 26 IDN 4 32 OPC 4 26 OPT 4 32 PSC 4 27 RCL 4 32 RST 4 33 SAV 4 33 SRE 4 27 STB 4 28 TRG 4 40 TST 4 33 WAI 4 28 common command syntax 4 5 compatibility commands B 2 errors B 3 language B 1 power on settings B 1 status model B 5 conventions used in this manual 2 2 current 3 2 maximum 3 2 measurements 3 5 protection 3 2 current measurement detector 3 10 4 14 current measurement range 3 6 4 14 D de measurements 3 5 determining cause of interrupt 3 17 device clear 2 8 DEI 3 18 discrete fault indicator 3 18 display commands 4 29 DISP 4 29 DISP MODE 4 29 DISP TEXT 4 29 DOS driver types D 1 DTR DSR 2 2 E enabling the output 3 1 error handling D 2 error numbe
31. the Status Registers 4 E SE eA 3 13 Power On Conditions ssa E Add A Rd a Me Ge a 3 13 Operation Status Group ms sina nm a E a a 3 15 Questionable Status Group a ee go a RA DARDOS 3 15 Standard Event Status Group aco moon a OK A CRE Ge E ca de 3 16 The PON Power On Bit poa a RUE A 3 16 Status Byte Register 5 0 4 A A A e SU 3 16 o RA y E eG ee amp 3 16 The RQS Bits a a 4 TAE E ee ee ee 3 16 The MAV bit and Output Duele o wit GO Ra Sie oh Gu ae ed Sa ae O 3 16 Determining the Cause of a Service teripi any TE 3 17 Servicing Operation Status and Questionable Status Bvents Da E aR 3 17 Monitoring Both Phases of a Status Transition cs ciclistas 3 18 Remote Inhibit and Discrete Fault Indicator 2 1 2 ee 3 18 Contents 2 Remote an eae de gro dep ABRA GE HO is a Se ea 3 18 Discrete Fantt Indicator DEI assa e la a A ee oh oe ME we 3 18 4 Language Dictionary Introduction o a a a A RARA 4 1 Subsystem Commands asi sena a A e E 4 1 Common Commands s r sosca a SAS we a de oe hic a e AA a 4 5 Programming Parameters buda a E eRe A 4 5 Calibration Commands ses do dc e A a A A 4 6 CALibrateCURRent ssa mena Aa SS te ae 4 6 CALibrateCURRent NEGative ce Gem ee ae Be OW ewe a SE NA 4 6 CALibrate CURRent MEASure LOWRange 1 ee ee 4 6 CALibrate CURRent MEASure AC es e a este See Bie DP ee qa 4 6 HP 66312A 66332A Ony srs A O Se DO 4 6 CALibrate DATA oval do cao od a NA A e e Es 4 7 CALibrateLEVel e y ds da
32. the setting of the output mode switch The returned value is 15 000 if he switch is set to Normal and 60 000 if the switch is set to Fast Query Syntax SOURce VOLTage ALC BANDwidth SOURce VOLTage ALC BWIDth Examples VOLT ALC BAND VOLTAGE ALC BWIDth Returned Parameters lt NR3 gt SOURce VOLTage TRIGger This command sets the pending triggered voltage level of the de source The pending triggered level is a stored voltage value that is transferred to the output terminals when a trigger occurs In order for a trigger to occur the trigger subsystem must be initiated see the INITiate command in the trigger subsystem Command Syntax SOURce VOLTage LEVel TRIGgered AMPlitude lt NRf gt 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 lt NR3 gt Related Commands VOLT RST SOURce VOLTage PROTection This command sets the overvoltage protection OVP level of the de source If the output voltage exceeds the OVP level then the de source output is disabled and the Questionable Condition status register OV bit is set see chapter 3 under Programming the Status Registers An overvoltage condition can be cleared with the OUTP PROT CLE command after the condition that caused the OVP trip is removed The OVP always trips with zero delay and is unaffected by the OUTP PROT DEL comm
33. which is part of the DOS driver software SETUP BAS starts at program line 5 and can run up to line 999 Your application programs must begin at line 1000 SETUP BAS has built in error checking routines that provide a method to check for HP IB errors during program execution You can use the error trapping code in these routines or write your own code using the same variables as used by SETUP BAS National instruments GPB Driver Your program must include the National Instruments header file DECL BAS This contains the initialization code for the interface Prior to running any applications programs you must set up the interface with the configuration program IBCONF EXE Example Programs D 1 CI Your application program will not include the de source s symbolic name and HP IB address These must be specified during configuration when you run IBCONF EXE Note that the primary address range is from 0 to 30 but any secondary address must be specified in the address range of 96 to 126 The de source expects a message termination on EOI or line feed so set EOI w last byte of Write It is also recommended that you set Disable Auto Serial Polling All function calls return the status word IBSTA which contains a bit ERR that is set if the call results in an error When ERR is set an appropriate code is placed in variable IBERR Be sure to check IBSTA after every function call If it is not equal to zero branch to an error han
34. 10 ERR 11 ERR 20 ERR 21 ERR 22 Header expected A non alpha character was received when a header was expected Unrecognized header The string of alpha characters received was not a valid command Number expected A non numeric character was received when a number was expected Number Syntax The numeric character received did not represent a proper number Number out of internal range The number received was too large or small to be represented in internal format ERR 30 ERR 31 ERR 41 ERR 42 ERR 43 ERR 44 Comma A comma was not received where one was expected Terminator expected A valid terminator was not received where one was expected Parameter Out The number received exceeded the limits for its associated command Voltage Programming Error The programmed value exceeded the valid voltage limits Current Programming Error The programmed value exceeded the valid current limits Overvoltage Programming Error The programmed value exceeded the valid overvoltage limits ERR 45 ERR 46 ERR 51 Delay Programming Error The programmed value exceeded the valid delay limits Mask Programming Error The programmed value exceeded the fault mask limits EEPROM Checksum EEPROM failed or a new uncalibrated EEPROM was installed B 4 Compatibility Language STATUS REGISTER FKE REGISTER 1 et 4 Saat A accis ER H ASK REGISTER RE
35. 2 HYSTeresis CURRent lt value gt or TRIGger ACQuire HYSTeresis CURRent lt value gt 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 query is sent before the data acquisition is triggered or before it is finished the response data will be delayed until the trigger occurs and the acquisition completes This may tie up the controller if the trigger condition does not occur immediately One way to wait for results without tying up the controller is to use the SCPI command completion commands For example you can send the OPC command after INITialize then occasionally poll the OPC status bit in the standard event status register for status completion while doing other tasks You can also set up an SRQ condition on the OPC status bit going true and do other tasks until an SRQ interrupt occurs Measurement Triggering Programming the DC Source 3 9 Measuring Output Pulses HP 66312A 66332A Only Current Detector Check that the current detector is set to ACDC when measuring current pulses or other waveforms with a frequency content greater than a few kilohertz SENSe CURRent DETect ACDC Only select DC as the measurement detector if you are making only DC current meas
36. 66312A 66332A Only These queries return the de output voltage Query Syntax Parameters Examples Returned Parameters Related Commands MEASure SCALar VOLTage DC MEASure SCALar VOLTage DC None MEAS VOLT MEAS VOLT DC lt NR3 gt MEAS CURR MEASure VOLTage ACDC FETCh VOLTage ACDC HP 66312A 66332A Only These queries return the actdc rms output voltage Query Syntax Parameters Examples Returned Parameters Related Commands MEASure SCALar VOLTage ACDC FETCh SCALar VOLTage ACDC None MEAS VOLT ACDC FETC VOLT ACDC lt NR3 gt MEAS CURR ACDC MEASure VOLTage HIGH FETCh VOLTage HIGH HP 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 containi g the most data points above the 50 point is the high bin The average of all the data points in the high bin is returned as the High level If no high bin contains more than 1 25 of the total number of acquired points then the maximum value is returned by these queries Query Syutax Parameters Examples Returned Parameters Related Connnands MEA Sure SCA Lar VOLTage HIGH FETCH SCA Lar VOLTage HIGH None MEAS VOLT HIGH FETC VOLT HIGH lt NR3 gt MEAS VOLT LOW CALC
37. 8 moving among subsystems 2 4 MSS bit 3 16 multiple measurements 3 11 Index 2 N National Instruments GP IB driver D 1 numerical data formats 2 6 0 OCP 3 2 operation status group 3 15 optional header example 2 4 output commands 4 16 OUTP 4 16 OUTP DFI 4 16 OUTP DFI SOUR 4 16 OUTP PON STAT 4 17 OUTP PROT CLE 4 17 OUTP PROT DEL 4 17 OUTP REL 4 18 OUTP REL POL 4 18 OUTP RI MODE 4 18 output queue 3 16 l output trigger system model 3 3 overcurrent protection 3 2 p PON power on bit 3 16 post event triggering 3 12 power on conditions 3 13 power on initialization 3 1 pre event triggering 3 12 programming parameters 4 5 programming status registers 3 13 programming the output 3 1 programs controller using HP BASIC D 6 examples D 1 HP Vectra with HP 82335 interface D 2 IBM Controller Using National interface D 4 pulse waveforms 3 10 Q querles 2 4 query indicator 2 5 questionable status group 3 15 R remote inhibit 3 18 response data 2 7 returning voltage or current data 3 6 RI 3 18 rms measurements 3 6 root specifier 2 6 combining commands 2 4 RQS bit 3 16 RS 232 capabilities of de source 2 1 data format 2 1 2 8 data terminator 2 6 flow control 2 2 RTS CTS 2 2 S SCPI command completion 2 7 command tree 2 3 common commands 2 3 conformance A 1 data formats 2 6 device clear 2 8 header path 2 3 message structure 2 5 message type
38. ACDC OUTP DFI STAT SENS SWE POIN SENS SWE TINT STAT OPER EVEN STAT OPER COND STAT OPER ENAB STAT OPER NTR STAT OPER PTR STAT PRES STAT QUESLEVEN STAT QUES COND STAT QUES ENAB STAT QUES NTR STAT QUES PTR SYST ERR SYST LANG SYST VERS TRIG SEQI1 TRAN IMM TRIG SEQI TRAN SOUR TRIG SEQ2 ACQ IMM TRIG SEQ2 ACQ SOUR TRIG SEQ DEF CLS ESE ESE ESR IDN OPC OPC OPT PSC PSC RCL RST SAV SRE STB TRG TST WAI OUTP DFI SOUR OUTP PON STAT OUTP RELESTAT OUTP REL POL OUTP REMODE SENS CURR DET SOUR DIG DATA VAL SOUR DIG FUNC TRIG SEQ2 ACQ COUN CURR VOLT TRIG SEQ2 ACQ HYST CURR VOLT TRIG SEQ2 ACQ LEV CURR VOLT TRIG SEQ2 ACQ SLOP CURR VOLT SCPI Conformance Information A 1 A Compatibility Language Introduction The HP 66312A 663324 6612B 6632B 6633B and 6634B de sources are programmatically compatible with the HP 66324 66334 and 6634A de power supplies This means that you can program the HP 663124 663324 6612B 6632B 6633B and 6634B dc sources over the HP IB using COM Patibility commands To switch from SCPI commands to COM Patibility commands and vice versa use the SYST LANG command as documented in chapter 4 The language setting is saved in non volatile memory Table B 2 summarizes the COMPatibility commands that program the supplies You may need to r
39. C Parameters None Examples MEAS ARR CURR FETC ARR CURR Returned Parameters lt NR3 gt Related Commands SENS SWE TINT SENS SWE OFFS SENS SWE POIN MEASure ARRay VOLTage FETCh ARRay VOLTage HP 66312A 66332A Only These queries return an array containing the instantaneous output voltage in volts The output voltage and current are digitized whenever a measure command is given or whenever an acquire trigger occurs The time interval is set by SENSe SWEep TIN Terval The position of the trigger relative to the beginning of the data buffer is determined by SENSe 5WEep OFFSet The number of points returned is set by SENSe SWEep POINts Query Syntax MEASure ARRay VOLTage DC FETCh ARRay VOLTage DC Parameters None Examples MEAS ARR VOLT FETC ARR VOLT Returned Parameters lt NR3 gt Related Commands SENS SWE TINT SENS SWE OFFS SENS SWE POIN Measurement Commands Language Dictionary 4 9 MEAS CURR MEAS CURR ACDC MEAS CURR HIGH FETC CURR FETC CURR ACDC FETC CURR HIGH MEASure CURRent FETCh CURRent FETCh CURRent applies to HP 66312A 66332A Only These queries return the de output current Query Syntax MEASure SCALar CURRent DC FETCH SCALar CURRent DC Parameters None Examples MEAS CURR MEAS CURR DC Returned Parameters lt NR3 gt Related Commands MEAS VOLT MEASure CURRent ACDC FETCh CURRent ACDC HP 66312A 66332A Only These queries return the ac de rms output
40. E RM OD Dc ee uta te ee ats le e ee ge Be Gea ee pic da 4 18 SOU Ree CURR Gi tine oi ae Gok ves de he one oe ke as ar Se we he Me a 6 ey 4 19 SOURce CURRentiT RIGBEE aca e E e a Aa 4 19 SOURce CURRent PROTection STATE 4 19 POUR ce DIGHA DADA a a aaa e hes aa 4 20 SOU Ree DIGA PUNCtON a Mee Me A E Bd we ee 4 20 SOU Ree VOLT e sn Y dd hod ua hla e VE me wan 4 20 SOUR ce VOL Tage ALC BANDwidth SOURce VOLTage ALC BWIDth 4 21 2 HP 663324 66323 60935 6034D Only e Sou ss dot ao amp ee ee Sw 4 21 S50URce VOL Tage TRIGE e e cece a a oe we eS 4 q 4 21 SOURce VOLTage PROTection eee eee a ela 4 21 Status Commands yo rs a a A 4 22 STATUS PRESEN gue a SG A e Blak A E A 2 4 22 DLA TUS OPERA 0 RA Ue Bh te Bide Ye th cp E AE A 4 22 STATUS OPE Raton CONDICIO ms s s dems a Rk Sa es Riga 4 22 STATUSOPE Ration BNA Ble Go a a ah a al A ar 4 23 STATus OPERation N TR STATus OPERation PTR 4 23 STATus QUEStionable s a oa ds ad e ee 4 24 STATus QUEStionable CONDition 4 24 STATus QUEStionable ENABle 2 ee a 4 24 STATus QUEStionable NTR STATus QUEStionable PTR Ses a a 4 25 E A fo Da ee e ee ee e 1d Dc ACTAS da E Ria 4 25 CRE DE iy aul et de te Gu Sy a ae se Mota Sale BL ales geet Ge ae ct bed 4 26 A AR AA Be ee a ld Ea 4 26 SON o Goh Us A a o a N Ra pe a e e a ea 4 26 PRDC a a a aa Be ae hoe Ge iat A oe Be 4 27 ORE go do a
41. EASure SCALar VOLTage MINimum FETCh SCALar VOLTage MINimum Parameters None Examples MEAS VOLT MIN FETC VOLT MIN Returned Parameters lt NR3 gt Related Commands MEAS VOLT MAX Measurement Commands Language Dictionary 4 13 SENS CURR RANG SENS CURR RANG LOW SENS CURR DET SENSe CURRent RANGe This command selects the de current measurement range All models have two current measurement ranges High Range 0 through MAX see Table 4 3 Low Range 0 through 0 02 A all models The High range covers the full current measurement capability of the instrument The Low range measures currents up to a maximum of 20 mA This increases the low current measurement sensitivity for greater accuracy and resolution The value that you program with SENSe CURRent RANGe must be the maximum current that you expect to measure The instrument will select the range that gives the best resolution The crossover value is 20 mA When queried the returned value is the maximum current that can be measured on the range that is presently set Command Syntax SENSe CURRent DC RANGe UP Per lt NRf gt Parameters 0 through MAX see table 4 3 Unit A amperes RST Value MAX high range Examples SENS CURR RANG 4 0 Query Syntax SENSe CURRent Returned Parameters lt NR3 gt SENSe CURRent DETect HP 66312A 66332A Only This command lets you select the type of detector used for output current measuremants Two choices for
42. EN ERROR PCIB BASERR 1050 CALL IOCLEAR ISC Clear the interface 1055 IF PCIB ERR lt gt NOERR THEN ERROR PCIB BASERR 1060 CALL IOREMOTE ISC Set dc source to remote mode 1065 IF PCIB ERR lt gt NOERR THEN ERROR PCIB BASERR 1070 1075 Program dc source to CV mode with following voltage and current 1080 CODES VOLTAGE MAX CURRENT MAX GOSUB 2000 D 2 Example Programs HP 82335 Interface 1085 1090 1095 1100 1105 1110 1115 1120 1125 1130 1135 1140 1145 1150 1155 1160 1165 1170 1175 1180 1185 1190 1195 1200 1205 1210 12165 1220 1225 1230 1240 1245 1250 1255 1260 1265 1270 1275 2000 2005 2010 2015 2020 2025 3000 3005 3010 3015 3 Query de source outputs amp print to screen CODES MEASURE VOLTAGE CURRENT GOSUB 2000 GOSUB 3000 VOUT QUTPUTS 1 IOUT OUTPUTS 2 PRINT The output levels are VOUT Volts and IOUT Amps Program triggered current level to value insufficient to maintain supply within its CV operating characteristic CODES CURR TRIG MIN GOSUB 2000 gt Set operation status mask to detect mode change from CV to CC CODES STAT OPER ENAB 1024 PTR 1024 GOSUB 2000 3 Enable Status Byte OPER summary bit CODES SRE 128 GOSUB 2000 Arm trigger circuit and send trigger to dc source CODES INITIATE SEQUENCE1 TRIGGER GOSUB 2000 Wait for supply to respond to trigger FOR I 1 to 100 NEXT I Poll for in
43. ER a Reed a te A e A E tas Sal A 4 40 Contents 5 A SCPI Conformance Information SCPI Version SCPI Confirmed Commande Non SCPI Commands B Compatibility oa Introduction C Error Messages Error Number List D Example Programs Introduction Assigning the HP IB Adra in rota Types of DOS Drivers ss wow dm ads HP 82335A Driver no do National Instruments GP IB Diver o bn ol or a EO Cit ge e a Error Handling posa See amp Ao s HP BASIC Controllers ar Example 1 HP Vectra PC Controller Gang HP 82335 Tetori Example 2 IBM Controller Using National Interface Example 3 Controller Using HP BASIC Index Contents 6 A 1 A 1 A 1 B 1 C 1 D 1 D 1 D 1 D 1 D 2 D 2 D 2 D 4 D 6 General Information About this Guide This guide provides remote programming information for the following series of HP IB programmable de power supplies HP 663124 HP 663324 HP 6612B HP 6632B e HP 6633B m HP 6634B You will find the following information in the rest of this guide Chapter 1 Introduction to this guide Chapter 2 Introduction to SCPI messages structure syntax and data formats Examples of SCPI programs Chapter 3 Introducton to Programming the de source with SCPI commands Chapter 4 Dictionary of SCPI commands Appendix SCPI conformance information Appendix B Use of the alternate Comptibility programming language Appendix Error Messages
44. Fast OFF NORM MAX ACDC VOLT 0 2048 15 6E 8 SOUR CURR SOUR CURR TRIG SOUR CURR PROT STAT SOUR DIG DATA SOUR VOLT SOUR VOLT TRIG SOUR VOLT PROT TRIG ACQ COUN CURR TRIG ACQ COUN VOLT TRIG ACQ HYST CURR TRIG ACQ HYST VOLT TRIG ACQ LEV CURR TRIG ACQ LEV VOLT TRIG ACQ SLOP CURR TRIG ACQ SLOP VOLT TRIG ACQ SOUR TRIG TRAN SOUR 10 of MAX 10 of MAX OFF 9 0 0 1 i 0 0 MAX MAX POS POS INTERNAL BUS Maximum values are model dependent Refer to Table 4 3 Command Syntax RST Parameters None Related Commands PSC SAV SAV This command stores the present state of the de 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 RCLO RCL retrieves instrument states Command Syntax SAV lt NRf gt Parameters 0 1 213 Example SAV 3 Related Commands RCL RST TST This query causes the de source to do a self test and report any errors 0 indicates that the de source passed self test 1 indicates that one or more tests failed Selftest errors are written to the error queue see Appendix C TST lt NRI gt Query Syntax Returned Parameters System Commands Language Dictionary 4 33 INIT SEQ INIT CONT SEQ ABOR INIT NAME INIT CONT NAME Trigger Comm
45. GISTER NOT USER E FAST 1824 NORM 2849 Figure B 1 COMpatibility Status Model Table B 4 Bit Assignment of Status Astatus Fault amp Mask Registers it Postion o ololese s fa fsf2ti fo UNR 1029 512 256 128 64 te Ls 4 21 CV The unit is operating in constant voltage mode CC The unit is operating in constant current mode UNR The output of the 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 HP 6612A 6632B 6633B 6634B only NORM The output is in Normal operating mode HP 6612A 6632B 6633B 6634B only Table B 5 Bit Configuration of Serial Poll Register Bit Position 7 6 EENE Fo mewi o a _ RQS The power supply has generated a service request Use a serial poll to ERR Same as ERR bit in Status register Use ERR to clear RDY This bit cleared when unit busy processing commands Set when processing complete PON A Power on has occurred Use CLR to clear FAU A bit has been set in the Fault register Use FAULT to clear Compatibility Language B 5 midi
46. LYPON 1 This command returns the ROM version of the de source PSC 0 1 OUTP REL 0 1 RCL 0 OUTP PROT CLE Sunilar SCPE Command RLYPON 0 1 This command resets the de source if the output is disabled by the output protection circuits SENS CURR RANG lt n gt SENS SWE POIN lt n gt SENS SWE TINT lt n gt SRQ 0 1 uit SYST LANG TEST UNMASK XXX VOUT VSET lt n gt SENS CURR RANG SENS SWE POIN SENS SWE TINT STAT OPER COND STAT QUES COND ESE SYST LANG STAT OPER ENAB STAT QUES ENAB ESE This command sets the current measurement range of the de source See Table 3 3 for the programming range of this command Initial condition MAX This command defines the number of data points in a measurement sweep Initial condition 32 This command defines the time period between measurement samples Initial condition 15 6 us These commands enable or disable the dc source s ability to request service from the controller for fault conditions UNMASK defines which conditions are defined as faults Initial condition SRQ 0 This command reads the contents of the status register which maintains the present status of the de source This command causes the alternate language to become active and to be stored in nonvolatile memory In this case the commands are equivalent After
47. Larity lt polarity gt Sets the external relay polarity NORM REV RI MODE lt mode gt Sets remote inhibit input LATC LIVE OFF SENSe CUR Rent EDC RANGe UPPer lt n gt Selects the high current measurement range DETector lt detector gt Selects the current measurement detector ACDC DC FUNCtion lt function gt Configures the measurement sensor VOLT CURR SW Eep OFFSet POINts lt n gt Defines the offset in the data sweep POINts lt n gt Define the number of data points in a sweep TINTerval lt n gt Sets the digitizer sample spacing SOUR ce CURRent LEVel IMMediate AMPLitude lt nu gt Sets the output current level TRIGgered AMPLitude lt n gt Sets the triggered output current level PROTection STATe lt bool gt Enable Disable current limit protection DIGital DATA VA Lue lt n gt Sets and reads the digital control port FUNCtion lt function gt Configures digital control port RIDF DIG VOLTage LLEVel IMMediate AMPlLitude lt n gt Sets the de voltage level TRIGgered AMPLitude lt n gt Sets the transient voltage level ALC BANDwidth BWIDth Returns setting of output mode switch PROTection LEVel lt n gt Sets the overvoltage protection threshold Subsystem Commands Language Dictionary 4 3 ea aai STATus SYSTem TRIGger Table 4 1
48. MEAS ARR VOLT FETC ARR CURR FETC ARR VOLT Measurement Commands Measure commands measure the output voltage and current Measurements are performed by digitizing the instantaneous output voltage or current for a defined number of samples and sample interval storing the results in a buffer and calculating the measured result Two types of measurement commands are available MEASure and FETCh MEASure triggers the acquisition of new data before returning the reading FETCh returns a reading computed from previously acquired data x Use MEASure when the measurement does not need to be synchronized with any other event w Use FETCh when it is important that the measurement be synchronized with either a trigger or with a particular part of the output waveform Sense commands control the current measurement range the bandwidth detector of the de source and the data acquisition sequence MEASure ARRay CURRent FETCh ARRay CURRent HP 66312A 66332A Only These queries return an array containing the instantaneous output current in amperes The output voltage and current are digitized whenever a measure command is given or whenever an acquire trigger occurs The time interval is set by SENSe SWEep TIN Terval 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 Syntax MEASure ARRay CURRent DC FETCh ARRay CURRent D
49. P 66312A 66332A Only A NEE 4 12 MEASure VOLTage LOW FETCh VOLTage LOW Se RA ee NE 4 13 HP 66312A 66332A Only IR 4 13 MEASure VOLTage MAXimum FETCh VOLTage MAXimum 4 13 HP 66312A 66332A Only cda AR BE A 4 13 MEASure VOLTage MINimum FETCh VOLTage MINimum 4 13 HP 66312A 66332A Only ss de E a ee 4 13 SENSe CURRent RANGe o A d amp 4 14 Contents 3 SENS CUR RentsDE eet ev ESA a a A E Ss 4 14 HP 66312A 66332A Only e Gang EA AA e E ge ae Be SE ES 4 14 SENSE FUNCION a 4 15 SENSES WEepOFESet POINTS suas a E a E bles 4 15 SENSe SWEep POINts 0 4 AO E YEO ee ee ae A 4 15 HP 66312A 66332A Oaly e eo ea A wa he SS A me bo ene SSS 4 15 SENSO Esp TIN Terval ss a4 se wot a oe VG ew ROR SR ag 4 15 OUtpUiCOmmsnds as ik cs a E We ag he Ds om ey Uo ek He a 4 16 DUI ae Se AR SEC e sO Oe ee ee ah a A 4 16 OUT ESC OE Se eid se SD ES aly A Be aoa Ohl AAA ed 4 16 OUTPat DETSOURce ca sw sa Er Me OH we he te CURE de a ok TA toe 4 16 OULTPui PONS PATE ss as po RD a Wei oth awe ea a Oh be 4 17 ada COUT Put PRO Fechan C CESE i 2a cea a Rc E A i 4 17 E OUTPut PROTection DELay pues km eels iea n de ag te get Ae eh 4 17 art BOG AY de rs ser do toe et A a it oH Fs ae Ss ee SG a 4 18 HP 66332A 6632B 6633B 6634B Only 2048 4 18 OUTPut RELay POLarity ar dede ss SO AS ar a EM Bc kt Gh rads 4 18 HP 663324 6632B 6633B 6634B Only a 4 18 CUTR
50. PACE 5 OEVENT SPACE 20 D SPACE 60 OUTPUT SPACE 40 BDNAME PS7 DIM OUTPUT 2 Set up dc source interface for DOS driver CALL IBFIND BDNAMES PS4 IF PS lt 0 THEN PRINT IBFIND Failed CALL IBCLR PS Y Program de source to CV mode with following voltage and current CODES VOLTAGE MAX CURRENT MAX GOSUB 2000 Query dc source outputs and print to screen CODES MEASURE VOLTAGE CURRENT GOSUB 2000 GOSUB 3000 VOUT OUTPUT 1 IOUT OUTPUT 2 PRINT The programmed levels are VOUT Volts and IOUT Amps Program triggered current level to value insufficient to maintain supply within its CV operating characteristic CODES CURR TRIG MIN GQSUB 2000 Set operation status mask to detect mode change from CV to CC CODES STAT OPER ENAB 1024 PTR 1024 GOSUB 2000 Enable Status Byte OPER summary bit CODES SRE 128 GOSUB 2000 Arm trigger circuit and send trigger to dc source CODES INITIATE SEQUENCE1 TRIGGER GOSUB 2000 Wait for supply to respond to trigger FOR I 1 to 100 NEXT 1 gt Poll for interrupt caused by change to CC mode and print to screen SPOL 0 CALL IBRSP PS SPOL IF SPOL AND 128 128 THEN POLL 1 Set interrupt flag on OPER bit IF POLL lt gt 1 THEN GOTO 1230 No interrupt to service CODES STAT OPER EVEN GOSUB 2000 Query status oper register CALL IBRD PSA OEVENT Read back event bit IF IBSTAY
51. PROGRAMMING GUIDE Dynamic Measurement DC Source HP Models 66312A 66332A System DC Power Supply HP 6612B 6632B 6633B 6634B D HEWLETT PR PACKARD HP Part No 5962 8108 Microfiche Part No 5962 8109 Printed in USA August 1996 Safety Guidelines The beginning of the Operating Guide has a Safety Summary page Be sure you are familiar with the information on that page before programming the de source for operation from a controller Printing History The edition and current revision of this guide are indicated below Reprints of this guide containing minor corrections and updates may have the same printing date Revised editions are identified by a new printing date A revised edition incorporates ali new or corrected material since the previous printing date Changes to the guide 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 without the prior consent of Hewlett Packard Company The information contained in this document is subject to change without notice Copyright 1996 Hewlett Packard Company Edition 1 August 1996 Contents I General Information About this Guide Documentation Summary External References SCPI References HP IB References Introdu
52. R 232 operation Triggers the measurement immediately Sets the number of sweeps per current measurement Sets the number of sweeps per voltage measurement Qualifies the trigger when measuring current Qualifies the trigger when measuring voltage Sets the trigger level for measuring current Sets the trigger level for measuring voltage Sets the triggered current slope POS NEG EITH Sets the triggered voltage slope POS NEG EITH Sets the trigger source BUS INT Triggers the output immediately Sets the trigger source BUS Sets or queries the SEQ1 name Sets or queries the SEQ2 name Subsystem Commands Common Commands Common commands begin with an and consist of three letters command or three letters and a query They are defined by the IEEE 488 2 standard to perform common interface functions Common commands and queries are categorized under System Status or Trigger functions and are listed at the end of each group The de source responds to the following commands Table 4 2 Common Commands Syntax CLS ESE lt n gt ESE ESR IDN OPC OPC OPT PSC lt bool gt PSC RCL lt n gt RST SAV lt n gt SRE lt n gt SRE STB TRG Clear status Standard event status enable Return standard event status enable Return event status register Return instrument identification Enable operation complete bit in ESR Return a 1 when operation complete Return opt
53. SH peg on GR el e GE ou I gt ace wees A ae de we Oe es er 4 27 RO rs EA a ts sek E a a ae See OS 4 28 PV a A e Se G ea GR ree e 4 28 System Commands s a a A eed O ci E 4 29 PIPP de o ss a a SM ao SS O a DS PSC E RS O E o Da te an See cms OS 4 29 INSI MODE um 9 iD E A 4 29 Di AS 4 29 Contents 4 SYSTem BRRor Sas we A A ae 4 30 OY o Ter LAN GUI cu sur E RAE ay se cae we e la Me Swe a cag 4 30 SV eme VERSIONI tom sav ix Bie ON E ago ce gra LE gia Res 4 30 SYSTem LOCal a a Os a oe ee Stet E Bee A Se a ae a E 4 31 Applies in RS 232 Mode Only sussa an sda a 4 31 SYSTem REMote asa ara q asa O E did SS cat Sir 4 ve cS 4 31 Applies in R 232 Mode Only ap ae Soe e o we ae et ES 4 31 SYSTem RW LOs al SRG CAS Bic Wee ARO pore eee Be ee ee oe E 4 31 Applies in R5 292 Mode Only ese te en a Ae ee E Oe lo de 4 31 IN o e ok ce lr A Ss As I e e ES E AS 4 32 SORTE diera os TAL O a A a Be Gas es 4 32 IROD o soe hd eo ew Besa Me ade as hs a es ae es LE ie a A 4 32 IERSE a ot do gens SE Seo de eae te A ey a k 4 33 BAY a te che Uae EP e Pus Se O ta A rs AU gs A 4 33 PEST Aruana NR Sr uh do HE aD ee da Or ce a SA A OS 4 33 Trigger Comanda q srao ae ace see Guido WAS Se A oe a 4 34 ABORG ca mo cee o AY a Bh es Gp ae SY ee HINGE ob Ge ey El oe SR 4 34 INITiateSEQuence INI Tiate NAME ee ee 4 34 INIT SEQ2 or INIT NAME ACQ applies to HP 66312A 663324 Onlpo 4 34 INITiate CONTinuous SEQuence INITiate CONTinu
54. ST REM SYSTIRWL SYSTem LOCal For RS 232 Operation Only This command places the de source in local mode during RS 232 operation The front panel keys are functional Command Syntax SYSTem LOCal Parameters None Example SYST LOC Related Commands SYST REM SYST RWL SYSTem REMote For RS 232 Operation Only This command places the de source in remote mode during RS 232 operation This disables all front panel keys except the Local key Pressing the Local key while in the remote state returns the front panel to the local state Command Syntax SYSTem REMote Parameters None Example SYST REM Related Commands SYST LOC SYST RWL SYSTem RWLock For RS 232 Operation Only This command places the de 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 System Commands Language Dictionary 4 31 DN OPT RCL IDN This query requests the de source to identify itself It returns a string composed of four fields separated by commas Query Syntax IDN Returned Parameters lt AARD gt Field Information Hewlett Packard Manufacturer ELELLA model number followed by a letter suffix nann nannn 10 character serial number or 0 lt gt IL TL Revision levels of firmware Example HEWLE
55. Subsystem Commands Syntax continued PRESet OPERation LEVENt CONDition ENABle lt n gt NTRansition lt n gt PTRansition lt n gt QUEStionable EVENt CON Dition ENABle lt n gt NT Ransition lt n gt PTRansition lt n gt ERRor LANGuage lt language gt VERSion LOCal REMote RW Lock SEQuence2 ACQuire IMMediate COUNt CURRent lt n gt VOLTage lt n gt HY STeresis CURRent lt n gt VOLTage lt n gt LEVel CURRent lt u gt VOLTage lt n gt SLOPe CUR Rent lt slope gt VOLTage lt slope gt sOURce lt source gt SEQuencel TRANsient IM Mediate OURce lt source gt SEQuencel DEFine TRANsient SEQuence2 l DEFine ACQuire 4 4 Language Dictionary Presets all enable and transition registers to power on Returns the value of the event register Returns the value of the condition register Enables specific bits in the Event register Sets the Negative transition filter Sets the Positive transition filter Returns the value of the event register Returns the value of the condition register Enables specific bits in the Event register Sets the Negative transition filter Sets the Positive transition filter Returns the error number and error string Sets the programming language SCPI COMP Returns the SCPI version number Go to local mode for RS 232 operation Go to remote mode for R 232 operation Go to remote with local lockout for
56. TT PACKARD 66312A 0 A 00 01 OPT This query requests the de source to identify any options that are installed Options are identified by number A 0 indicates no options are installed Query Syntax OPT Returned Parameters lt AARD gt RCL Warning Recalling a previously stored state may place hazardous voltage at the dc source output This command restores the dc source to a state that was previously stored in memory with the SAV command to the specified location All states are recalled with the following exceptions w the trigger system is set to the Idle state by an implied ABORt command this cancels any uncompleted trigger actions 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 RCLO Command Syntax RCL lt NRf gt Parameters 0 1 21 3 Example RCL 3 Related Commands PSC RST SAV 4 32 Language Dictionary System Commands RST SAV TST RST This command resets the de source to a factory defined state as defined below RST also forces an ABORt command Table 4 8 RST Settings CAL STAT DIG DATA DISP STAT DISP MODE DISP TEXT INIT CONT OUTP OUTP DFI OUTP DFI SOUR OUTP PROT DEL OUTP REL OUTP REL POL SENS CURR RANG SENS CURR DET SENS FUNC SENS SWE OFFS POIN SENS SWE POIN SENS SWE TINT 0 ON NORM OFF OFF OFF OFF 08 Norm 008
57. Tage 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 window function when making the measurement Minimum and Maximum Measurements HP 66312A 66332A Only To measure the maximum or minimum voltage or current of a pulse or ac waveform use MEASure VOLTage MAXimum MEASure VOLTage MINimum MEASure CURRent MAXimum MEASure CURRent MINimum Current Ranges The dc source has two current measurement ranges The command that controls the ranges is SENSe CURRent RANGe MIN MAX When the range is set to MIN the maximum current that can be measured is 20 milliamperes Returning Measurement Data From the Data Buffer HP 66312A 66332A Only The MEASure and FETCh queries can also return all data values of the instantaneous voltage or current buffer The commands are MEASure ARRay CURRent MEASure ARRay VOLTage 3 6 Programming the DC Source Making Measurements internally Triggered Measurements You can use the data acquisition trigger system to synchronize the timing of the voltage and current data acquisition with a BUS or internal trigger source Then use the FETCh commands to return different calculations from the data acquired by the measu
58. Tiate IM Mediate NAME lt name gt Parameters For INIT NAME TRANsient ACQuire Examples INIT SEQ2 INIT NAME TRAN Related Commands ABOR INIT CONT TRIG TRIG SEQ DEF TRG INITiate CONTinuous SEQuence IN Tiate CONTinuous NAME These commands control the output transient trigger system u 1 or ON continuously initiates the output trigger system x 0 or OFF turns off continuous triggering In this state the output trigger system must be initiated for each trigger using INITiate SEQuence Command Syntax INITiate CONTimuous SEQuencel lt bool gt INTTiate CON Timuous NAME TRANsient lt bool gt Parameters 0 1 OFF ON RST Value OFF Examples INIT CONT SEQ ON INIT CONT NAME TRAN 1 Related Commands ABOR INIT TRIG TRIG SEQ DEF TRG 4 34 Language Dictionary Trigger Commands TRIG SEQ2 TRIG TRIG SOUR TRIG ACQ TRIGger When the trigger subsystem is initiated this command generates an output trigger signal The trigger will then 1 Initiate a pending level change as specified by CURRent TRIGger or VOLTage TRIGger 2 Clear the WTG bit in the Status Operation Condition register after both transient and acquire trigger sequences have completed W TG is the logical or of both transient and acquire sequences 3 If INITiate CONTinuous ON has been programmed the trigger subsystem is immediately re enabled for subsequent triggers As soon as it is cleared the WTG bit is again set to 1 Command Syntax TRIGger SEQuencel IMMediate
59. a C Error Messages Error Number List This appendix gives the error numbers and descriptions that are returned by the de source Error numbers are returned in two ways m Error numbers are displayed on the front panel E Error numbers and messages are read back with the SYSTem ERRor query SYSTem ERRor returns the error number into a variable and returns two parameters an NRI and a string The following table lists the errors that are associated with SCPI syntax errors and interface problems It also lists the device dependent errors Information inside the brackets is not part of the standard error message but is included for clarification When errors occur the Standard Event Status register records them as follows Bit Set Error Code Error Type Bit Set Error Code Error Type 9 100 thru 199 Command 3 300 thru 399 or Device dependent 1 thru 32767 4 200 thru 299 Execution 2 400 thru 499 Query Table C 1 Error Numbers Error Error String Description Explanation Examples Number Command error generic Invalid character Syntax error unrecognized command or data type Invalid separator Data type error e g numeric or string expected got block data GET not allowed Parameter not allowed too many parameters Missing parameter too few parameters Program mnemonic too long maximum 12 characters Und
60. alibration constants in nonvolatile memory Note If calibration mode has not been enabled with CALibrate STATe programming the calibration commands will generate an error CALibrate CURRent This command initiates the calibration of the positive de output current as well as the high range current measurement circuit Command Syntax CALibrate CURRent SOURce DC POSitive Parameters None Examples CAL CURR CAL CURR SOUR DC POS Related Commands CAL CURR NEG CALibrate CURRent NE Gative This command initiates the calibration of the negative de output current Command Syntax CALibrate CURRent SOURce DC NEGative Parameters None Examples CAL CURR NEG CAL CURR SOQUR DC NEG Related Commands CAL CURR CALibrate CURRent MEASure LOWRange This command initiates the calibration of the low range current measurement circuit Command Syntax CALibrate CURRent MEASure DC LOW Range Parameters None Examples CAL CURR MEAS LOWR Related Commands CAL CURR CALibrate CURRent MEASure AC HP 66312A 66332A Only This command initiates the calibration of the high bandwidth ac measurement circuit Command Syntax CALibrate CURRent MEA Sure AC Parameters None Examples CAL CURR MEAS AC 4 6 Language Dictionary Calibration Commands CAL DATA CAL LEV CAL PASS CAL SAVE CALibrate DATA This command enters a calibration value that you obtain by reading an external meter You must first select a calibration level with CALibrate LEV
61. and Command Syntax SOURce VOLTage PROTection LEVel lt NRf gt Parameters see Table 4 3 Default Suffix V volts RST Value MAX Examples VOLT PROT 21 5 VOLT PROT LEV MAX Query Syntax SOURce VOLTage PROTection LEVel Returned Parameters lt NR3 gt Related Commands OUTP PROT CLE OUTP PROT DEL Output Commands Language Dictionary 4 21 STAT QUES STAT QUES COND STAT QUES ENAB Table 4 5 Bit Configuration of Status Questionable Registers 13 11 not Meas not used Ovid used las 1024 512 OV overvoltage protection has tripped OCP overcurrent protection has tripped FS the fuse is blown OT overtemperature protection has tripped RI remote inhibit is active Unreg output is unregulated Meas Ovld measurement overload STATus QUEStionable This query returns the value of the Questionable Event register The Event register is a read only register which holds latches all events that are passed by the Questionable NTR and or PTR filter Reading the Questionable Event register clears it Query Syntax STATus QUEStionable EVENt Parameters None Returned Parameters lt NR1 gt Register Value Examples STAT QUES STATUS QUESTIONABLE EVENT 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 th
62. and causes the instrument to set the OPC bit bit 0 of the Standard Event Status register when the de source has completed all pending operations See ESE for the bit configuration of the Standard Event Status register Pending operations are complete when w all commands sent before OPC have been executed This includes overlapped commands Most commands are sequential and are completed before the next command is executed Overlapped commands are executed in parallel with other commands Commands that affect output voltage current or state relays and trigger actions are overlapped with subsequent commands sent to the de source The OPC command provides notification that all overlapped commands have been completed w all triggered actions are completed OPC does not prevent processing of subsequent commands but bit O will not be set until all pending operations are completed 4 26 Language Dictionary Status Commands OPC PSC SRE OPC causes the instrument to place an ASCII 1 in the Output Queue when all pending operations are completed Unlike OPC OPC prevents processing of all subsequent commands It is intended to be used at the end of a command line so that the application program can then monitor the bus for data until it receives the 1 from the de source Output Queue Command Syntax OPC Parameters None Query Syntax OPC Returned Parameters lt NR1 gt 1 Related Commands OPC TRIG WAI PSC This
63. ands Trigger commands consist of trigger and initiate commands Trigger commands control the remote triggering of the de source Trigger commands and Initate commands are referenced either by name or by number The correspondence between names and numbers Is Sequence Number Sequence Name Description 1 the default TRANsient Output transient trigger sequence 2 ACQuire Measurement acquire trigger sequence Init ate commands initialize the trigger system ABORt This command cancels any trigger actions presently in process Pending trigger levels are reset to their corresponding immediate values ABOR also resets the WTG bit in the Operation Condition Status register see chapter 3 under Programming the Status Registers If INTPiate CON Tinuous ON has been programmed the trigger subsystem initiates itself immediately after ABORt thereby setting WTG ABORt is executed at power turn on and upon execution of RCL or RST Command Syntax ABORt Parameters None Examples ABOR Related Commands INIT RST TRG TRIG INITiate SEQuence INiTiate NAME INIT SEQ2 or INITINAME ACQ applies to HP 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 enabled all trigger commands are ignored Command Syntax INITiate IMMediate SEQuence 1 2 INI
64. ands 4 34 INIT NAME 4 34 TRIG 4 35 TRIG ACQ 4 35 TRIG ACQ COUN CURR 4 36 TRIG ACQ COUN VOLT 4 36 TRIG ACQ HYST CURR 4 37 TRIG ACQ HYST VOLT 4 37 TRIG ACQ LEV CURR 4 38 TRIG ACQ LEV VOLT 4 38 TRIG ACQ SLOP CURR 4 39 TRIG ACQ SLOP VOLT 4 39 TRIG ACQ SOUR 4 40 TRIG SEQ1 DEF 4 40 TRIG SEQ2 4 35 TRIG SEQ2 COUN CURR 4 36 TRIG SEQ2 COUN VOLT 4 36 TRIG SEQ2 DEF 4 40 TRIG SEQ2 HYST CURR 4 37 TRIG SEQ2 HYST VOLT 4 37 TRIG SEQ2 LEV CURR 4 38 TRIG SEQ2 LEV VOLT 4 38 TRIG SEQ2 SLOP CURR 4 39 TRIG SEQ2 SLOP VOLT 4 39 TRIG SEQ2 SOUR 4 40 TRIG SOUR 4 35 triggering output changes 3 3 types of SCPI commands 2 3 index 3 y varying voltage or current sampling 3 11 voltage 3 2 maximum 3 2 measurements 3 5 Index 4 W waiting for measurement results 3 9 X XON XOPF 2 2
65. ax SOURce DIGital DATA VALue lt NRf gt Parameters 0 to 7 RST Value 0 Examples DIG DATA 7 Query Syntax SOURce DiGital DATA Returned Parameters lt NR1 gt Related Commands DIG FUNC SOURce DIGital FUNCtion This command configures the de source digital control port The configuration setting is saved in non volatile memory RIDFi Configures the port for Remote Inhibit Discrete Fault Interrupt operation see Appendix A in the User s Guide DIGio Configures the port for Digital input output operation see DIG DATA Command Syntax Parameters Examples Query Syntax Returned Parameters Related Commands SOURce VOLTage SOURcej DIGital FUNCtion lt CRD gt RIDFi DIGio DIG FUNC DIG SOURce DIGital FUNC lt CRD gt DIG DATA This command sets the immediate voltage level of the de source The immediate level is the voltage programmed for the output terminals Command Syntax Parameters Default Suffix RST Value Examples Query Syntax Returned Parameters Related Commands 4 20 Language Dictionary SOURce VOLTago LEVel IMMediate AMPLitude lt NRf gt see Table 4 3 V volts 0 VOLT 2 VOLTAGE LEVEL 200 MV SOU Rce VOLTagel LEVel IM Mediate AMPLitude lt NR3 gt VOLT TRIG Output Commands SOUR VOLT ALC BAND SOUR IVOLT TRIG SOUR I VOLT PROT SOURce VOLTage ALC BANDwidth SOURce VOLTage ALC BWIDth HP 66332A 6632B 6633B 6634B Only These queries return
66. being shut off the de source will resume in the last selected language when power is restored The parameter must be either COMP or SCPI This command causes the de source to run selftest and report any detected failures These commands determine the conditions that will set bits in the fault register allowing the operator to define the conditions that will be reported as faults Fault conditions can be enabled by sending the decimal equivalent of the total bit weight of all conditions to be enabled This command measures and returns the actual output voltage MEAS VOLT This command programs the output voltage See Table 4 3 for the programming range of this command Initial condition 0 V Compatibility Language B 3 eat Table B 3 COMPatibility Errors Error String Description Explanation Examples Number ERR 0 ERR 1 ERR 2 No error EEPROM save failed Data write to non volatile memory failed Second PON after power on More than one PON command received after power on Only one is allowed ERR 4 RLYPON sent with no relay option present A RLYPON command was sent with no relay option present ERR 5 ERR 8 No relay option present A relay option command was sent with no relay option present Addressed to talk and nothing to say The unit was addressed to talk without first receiving a query ERR
67. ce will accept any other calibration commands The first parameter specifies the enabled or disabled state The second parameter is the password It is required if the calibration mode is being enabled and the existing password is not 0 If the password is not entered or is incorrect an error is generated and the calibration mode remains disabled The query statement returns only the state not the password Note Whenever the calibration state is changed from enabled to disabled any new calibration constants are lost unless they have been stored with CALibrate SAVE Command Syntax CALibrate STATe lt bool gt lt NR gt Parameters 0 1 OFF ON lt password gt RST Value OFF Examples CAL STAT 1 6812 CAL STAT OFF Query Syntax CALibrate STATe Returned Parameters lt NRi gt Related Commnands CAL PASS CAL SAVE RST CALibrate VOLTage This command initiates the calibration of the output voltage and the voltage readback circuit Command Syntax CALibrate VOLTage DC Parameters None Examples CAL VOLT CAL VOLT DC CALibrate VOLTage PROTection This command can calibrates the de source overvoltage protection OV circuit The de source automatically performs the calibration CALibrate VOLTage P ROTection is a sequential command that takes several seconds to complete Command Syntax CALibrate VOLTage PROTection Parameters None Example CAL VOLT PROT 4 8 Language Dictionary Calibration Commands MEAS ARR CURR
68. command controls the automatic clearing at power on of the Service Request Enable and the Standard Event Status Enable registers PSC ON 1 causes these registers to be cleared at power on This prevents a PON event from generating SRQ at power on PSC OFF 0 causes the contents of the Standard Event Enable and Service Request Enable registers to be saved in nonvolatile memory and recalled at power on This allows a PON event to generate SRQ at power on The query returns the current state of PSC Command Syntax PSC lt bool gt Parameters 0 1 OFF ON Example PSC O PSC 1 Query Syntax PSC Returned Parameters lt NRI gt Oji Related Commands ESE SRE SRE This command sets the condition of the Service Request Enable Register This register determines which bits from the Status Byte Register see STB for its bit configuration are allowed to set the Master Status Summary MSS bit and the Request for Service RQS summary bit A 1 in any Service Request Enable Register bit position enables the corresponding Status Byte Register bit and all such enabled bits then are logically ORed to cause Bit 6 of the Status Byte Register to be set When the controller conducts a serial poll in response to SRQ the RQS bit is cleared but the MSS bit is not When SRE is cleared by programming it with 0 the de source cannot generate an SRQ to the controller The query returns the current state of SRE Command Syntax SRE lt NRf
69. ction to Programming HP IB Capabilities of the DC Source HP IB Address 2 RS 232 Capabilities of the DC Source RS 232 Data Format Baud Rate e a RS 232 Flow Control o Introduction to SCPI i Conventions Used in This Guide Types of SCPI Commands Multiple Commands in a Message Moving Among Subsystems Including Common Commands Using Queries ur Types of SCPI Messages The Message Unit Headers Query Indicator Message Unit Separator Root Specifier Message Terminator SCPI Data Formats Numerical Data Formats Suffixes and Multipliers Response Data Types SCPI Command Completion Using Device Clear RS 232 Troubleshooting 1 1 1 1 1 2 1 2 1 2 2 2 Contents 1 3 Programming the DC Source Introduction A ee Ot a Cs ae A a 3 1 Programming the Oe st dt A E Bw AA 3 1 Power on Initialization sa a So DO as a ee e Sh 3 1 Enabling the Opa sds srs AO A E a ar e DR 3 1 Output Voltage a dae E O ss A p A AA 3 2 Maximum Voltage ag a wa a oq ata da he a a qn ae ec 3 2 Output Current ds ee Go ve se a ed de tA ey Be eS bk ea Bae a A 3 2 Maximum Current sed e e a At tee Ea ee A Bk Ho ew BW a hed 3 2 E Overcurrent Protection lt a ded a ode o e A ae ado BAS 3 2 Triggering Output Changes a anki aa A A UU R 3 3 SCPI Triggering Nomenclature pls es a e WB ge e AD a 3 3 er Output Trigger System Model gs ss wee dr a GR E AE a 3 3 Setting the Voltage or Current Trigger Levels 3
70. d Query DEADLOCKED too many queries in command string Query UNTERMINATED after indefinite response No error Non volatile RAM RDO section checksum failed Non volatile RAM CONFIG section checksum failed Non volatile RAM CAL section checksum failed Non volatile RAM STATE section checksum failed Non volatile RST section checksum failed RAM selftest VDAC IDAC selftest 1 VDAC IDAC selftest 2 VDAC IDAC selftest 3 no VDAC IDAC selftest 4 fede OVDAC selftest Digital 1 O selftest error C 2 Error Messages Table C 1 Error Numbers continued Error Error String Description Explanation Examples Number Ingrd receiver buffer overrun RS 232 receiver framing error RS 232 receiver parity error RS 232 receiver overrun error Front panel uart overrun Front panel uart framing Front panel uart parity Front panel buffer overrun Front panel timeout CAL switch prevents calibration CAL password is incorrect CAL not enabled Computed readback cal constants are incorrect Computed programming cal constants are incorrect Incorrect sequence of calibration commands CV or CC status is incorrect for this command Output mode switch must be in NORMAL position Too many sweep points Command only applies to RS 232 interface CURRent or VOLTage fetch incompatible with last acquisition Measurement overrange Error Messages C 3 i Examp
71. de source is in negative constant current mode Questionable Status Group The overvoltage protection has tripped The overcurrent protection has tripped The fuse is blown The overtemperature protection has tripped RI The remote inhibit state is active Unreg The output is unregulated MeasOvld Current measurement exceeded capability of low range Standard Event Status Group Operation complete Query error Device dependent error Execution error Command error Power on Status Byte and Service Request Enable Registers Questionable status summary bit Message Available summary bit Event Status Summary bit Master Status Summary bit Request Service bit Operation status summary bit Status Registers Operation Status Group The Operation Status registers record signals that occur during normal operation As shown below the group consists of a Condition PPR NTR Event and Enable register The outputs of the Operation Status register group are logically ORed into the OPER ation summary bit 7 of the Status Byte register Register Command Description Condition STAT OPER COND A register that holds real time status of the circuits being monitored It is a read only register PTR Filter STAT OPER PTR lt n gt A positive transistion filter that functions as described under STAT OPER NTR PTR commands in chapter 4 It is a r
72. 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 important to use ACDC detection when measuring pulse or other waveforms with frequency contents greater than several kilohertz DC Select DC only if you are making de current measurements and you require a de measurement offset better than 2mA on the High current measurement range When DC is selected the component of output current that is supplied by the instrument s output filter is not sensed Note that this selections gives inaccurate results on current waveforms with frequency contents greater than several kilohertz Note This command only applies to the High current measurement range Command Syntax SENSe CURRent DETect lt detector gt Parameters ACDC or DC RST Value ACDC Examples SENS CURR DET ACDC SENS CURR DET DC Query Syntax SENSe CURRent DETect Returned Parameters lt NR3 gt 4 14 Language Dictionary Measurement Commands SENS FUNC SENS SWE OFFS POIN SENS SWE POIN SENS SWE TINT SENSe FUNCtion This command configures the measurement sensor to measure either voltage or current when an acquire trigger is used The query returns the function setting either VOLT or CURR Command Syntax Parameters Examples Query Syntax Returned Parameters SENSe FUNCtion lt
73. dler that reads JBERR to extract the specific error Error Handling If there is no error handling code in your program undetected errors can cause unpredictable results This includes hanging up the controller and forcing you to reset the system Both of the above DOS drivers have routines for detecting program execution errors Error detection should be used after every call to a subroutine HP BASIC Controllers The HP BASIC Programming Language provides access to HP IB 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 generate SRQ on errors your program can use an SRQ service routine for decoding detected errors The detectable errors are listed in Appendix C Example 1 HP Vectra PC Controller Using HP 82335 Interface 5 ERE TT ee RS Sie ae Merge SETUP BAS here serve sense panda 1000 MAX ELEMENTS 2 ACTUAL ELEMENTS 0 MAX LENGTH 80 ACT LENGTH 0 1005 DIM OUTPUTS 2 CODES SPACE 40 1010 ISC 7 PS 706 1015 1020 Set up the DC Source Interface for DOS driver 1025 CALL IORESET ISC Reset the interface 1030 IF PCIB ERR lt gt NOERR THEN ERROR PCIB BASERR 1035 TIMEOUT 3 1040 CALL IOTIMEOUT CISC TIMEOUT Set timeout to 3 seconds 1045 IF PCIB ERR lt gt NOERR TH
74. e a Use a semicolon to separate commands within a message a There is an implied header path that affects how commands are interpreted by the de 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 header path is defined as the characters that make up the headers of the previous command in the message up to and including the last colon seperator An example of a message with two commands is CURR LEV 3 PROT STAT OFF which shows the use of the semicolon separating the two commands and also illustrates the header path concept Note that with the second command the leading header CURR was The SCPI Command Tree Introduction to Programming 2 3 omitted because after the CURR LEV 3 command the header path was became defined as CURR and thus the instrument interpreted the second command as CURR PROT STAT OFF In fact it would have been syntactically incorrect to include the CURR explicitly in the second command since the result after combining it with the header path would be CURR CURR PROT STAT OFF which is incorrect Moving Among Subsystems In order to combine commands from different subsystems you need to be able to reset the header path to a null string within a message You do this by begin
75. e Event register to be set w When a bit of the Questionable PTR register is set to 1 then a 0 to 1 transition of the corresponding bit in the Questionable Condition register causes that bit in the Questionable Event register to be set w If the same bits in both NTR and PTR registers are set to 1 then any transition of that bit at the Questionable Condition register sets the corresponding bit in the Questionable Event register w 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 lt NRf gt STATus QU EStionable PTRansition lt NRf gt Parameters 0 to 32727 Preset Value NTR register 0 PTR register 32727 Examples STAT QUES NTR 16 STATUS QUESTIONABLE PTR 512 Query Syntax STAT QUES NTR STAT QUES PTR Returned Parameters lt NR1 gt Register value Related Commands STAT QUES ENAB CLS This command causes the following actions see chapter 3 under Programming the Status Registers for the descriptions of all registers w Clears the following registers O Standard Event Status ci Operation Status Event o Questionable Status Event o Status Byte m Clears the Error Queue wm If CLS immediately follows a program message terminator lt NL gt then the output queue and the MAV bit are also cleared Command Syntax CLS Parameters None Stat
76. e PROTection If a query contains a parameter place the query indicator at the end of the last header VOLTage PROTection MAX SCPI Message Structure Introduction to Programming 2 5 Message Unit Separator When two or more message units are combined into a compound message separate the units with a semicolon STATus OPERation QUEStionable Root Specifier When it precedes the first header of a message unit the colon becomes the root specifier Tt tells the command parser that this is the root or the top node of the command tree Message Terminator A terminator informs SCPI that it has reached the end of a message Three permitted messages terminators are mw newline lt NL gt which is ASCII decimal 10 or hex OA m end or identify lt END gt both of the above lt NL gt lt END gt In the examples of this guide there is an assumed message terminator at the end of each message Note All RS 232 response data sent by the de source is terminated by the ASCII character pair lt carriage return gt lt newline gt This differs from HP IB response data which is terminated by the single character lt newline gt with EOI asserted SCPI Data Formats All data programmed to or returned from the de source is ASCII The data may be numerical or character string E Numerical Data Formats Symbol Talking Formats Digits with an implied decimal point assumed at the right of the
77. e de source Query Syntax STATus QUEStionable CONDition Parameters None Examples STAT QUES COND STATUS QUESTIONABLE CONDITION Returned Parameters lt NRi gt Register value STATus QUEStionable ENABle This command and its query set and read the value of the Questionable Enable register This register is a mask for enabling specific bits from the Questionable Event register to set the questionable summary bit QUES of the Status Byte register This bit bit 3 is the logical OR of all the Questionable Event register bits that are enabled by the Questionable Status Enable register Command Syntax Parameters Preset Value Examples Query Syntax Returned Parameters Related Conunands 4 24 Language Dictionary STATus QUEStionable ENA Ble lt NR gt 0 to 32727 0 STAT QUES ENAB 20 STAT QUES ENAB 16 STATus QUEStionable EN A Ble lt NRi gt Register value STAT QUES Status Commands STAT QUES NTR STAT QUES PTR CLS STATus QUEStionabie NTR STATus QUEStionable PTR These commands allow you to set or read the value of the Questionable NTR Negative Transition and PTR Positive Transistion registers These registers serve as polarity filters between the Questionable Enable and Questionable Event registers to cause the following actions m When a bit of the Questionable NTR register is set to 1 then a 1 to 0 transition of the corresponding bit of the Questionable Condition register causes that bit in the Questionabl
78. ead write register NTR Filter STAT OPER NTR lt n gt A negative transition filter that functions as described under STAT OPER NTRI PTR commands in chapter 4 It is a read write register STAT OPER EVEN A register that latches any condition that is passed through the PTR or NTR filters It is a read only register that is cleared when read STAT OPER ENAB lt n gt A register that functions as a mask for enabling specific bits from the Event register It is a read write register Questionable Status Group The Questionable Status registers record signals that indicate abnormal operation of the de source As shown in figure 3 7 the group consists of the same type of registers as the Status Operation group The outputs of the Questionable Status group are logically ORed into the QUEStionable summary bit 3 of the Status Byte register Register Command Description STAT QUES COND Condition A register that holds real time status of the circuits being monitored It is a read only register PTR Filter STAT QUES PTR lt n gt A positive transistion filter that functions as described under STAT QUES NTRIPTR commands in chapter 4 It is a read write register NTR Filter STAT QUES NTR lt n gt A negative transition filter that functions as described under STAT QUES NTR PTR commands in chapter 4 lt is a read write register STAT QUES EVEN register that latches any
79. efer to the HP Series 6632 6633A and 6634A Operating Guide HP p n 5957 6360 for complete information on the COMPatibility commands The rest of this appendix discusses the COM Patibility language status system and the COMPatibility language error codes Note For complete information on the Compatibility programming language order the HP 66324 6633A 6634A Operating manual HP p n 5957 6360 Table B 1 COMPatibility Power on Settings Command Setting Command Setting UNMASK 0 SRQ 0 PON last stored value DLY 8 ms fast 80 ms normal DSP 1 ON Compatibility Language B 1 puta Table B 2 COMPatibility Commands Compatibility Description Command ASTS This command reads the contents of the accumulated status register which stores any bit condition entered in the status register since the accumulated status register was last read regardless of whether the condition still exists CLR This command initializes the de source to the power on state It also resets the PON bit in the serial poll register The command performs the same function as the Device Clear DCL interface message DC 0 1 Only applies to units with Option 760 This comrnand enables or disables the output without affecting the state of the output relays Initial condition DC 1 DLY lt n gt This command programs the delay time between the programming of an output change that produces a CV CC or
80. efined header operation not allowed for this device Invalid character in number includes 9 in octal data etc Numeric overflow exponent too large exponent magnitude gt 32 k Too many digits number too long more than 255 digits received Numeric data not allowed Invalid suffix unrecognized units or units not appropriate Suffix not allowed Error Messages C i Table C 1 Error Numbers continued Error String Description Explanation Examples Invalid character data bad character or unrecognized Character data too long Character data not allowed String data error Invalid string data e g END received before close quote String data not allowed Block data error Invalid block data e g END received before length satisfied Block data not allowed Expression error Invalid expression Expression data not allowed Execution error generic Data out of range e g too large for this device Too much data out of memory block string or expression too long lllegal parameter value device specific Out of memory Macro error Macro execution error Ilegal macro label Macro recursion error Macro redefinition not allowed System error Too many errors errors beyond 9 lost due to queue overflow Query error generic Query INTERRUPTED query followed by DAB or GET before response complete Query UNTERMINATED addressed to talk incomplete programming message receive
81. el for the value being entered Command Syntax CALibrate DATA lt NRf gt Parameters lt external reading gt Unit A amperes Examples CAL DATA 3222 3 MA CAL DATA 5 000 Related Commands CADL SAVE CAL LEV CALibrate LEVel This command is used to advance to the next state in the calibration sequence Command Syntax CALibrate LEVel lt level gt Parameters P1 P2 Examples CAL LEV 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 CATibrate PASScode lt NRf gt Parameters lt model number gt default Examples CAL PASS 6812 CAL PASS 06 1994 Related Commands CAL SAV CALibrate SAVE This command saves any new calibration constants after a calibration procedure has been completed in nonvolatile memory If CALibrate STATe OFF is programmed without a CALibrate SAVE the previous calibration constants are restored Command Syntax CALibrate SAVE Parameters None Examples CAL SAVE Related Commands CAL PASS CAL STAT Calibration Commands Language Dictionary 4 7 CAL STAT CAL VOLT CAL VOLT PROT CALibrate STATe This command enables and disables calibration mode The calibration mode must be enabled before the de sour
82. en additional characters after it asserts holdoff XON XOFF A software handshake that uses the ASCII control code DC3 decimal code 19 to assert hold off and control code DC1 decimal code 17 to release hold off NONE There is no flow control The flow control option is stored in non volatile memory Introduction to SCPI SCPI Standard Commands for Programmable Instruments is a programming language for controlling instrument functions over the HP IB 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 de source display and the display of a SCPI compatible multimeter Conventions Used in This Guide Angle brackets lt gt Items within angle brackets are parameter abbreviations For example lt NR1 gt indicates a specific form of numerical data Vertical bar Vertical bars separate alternative parameters For example NORM TEXT indicates that either TEXT or NORM can be used as a parameter Square Brackets Items within square brackets are optional The representation SOUTRce VOL Tage means that SOURce may be omitted Braces Braces indicate parameters that may be repeated zero or more times It is used especially for showing arrays The notation lt A gt lt B gt shows that parameter A must be entered while paramet
83. er B may be omitted or may be entered one or more times Boldface font Boldface font is used to emphasize syntax in command definitions TRIGger COUNt CURRent lt NRf gt shows a command definition Computer font Computer font is used to show program lines in text TRIGger COUNt CURRent 10 shows a program line 2 2 Introduction to Programming SCPI Conventions Types of SCPI Commands SCPI has two types of commands common and subsystem a Common commands generally are not related to specfic operation but to controlling overall dc source functions such as reset status and synchronization All common commands consist of a three letter nmemonic preceded by an asterisk RST IDN SRE 8 m Subsystem commands perform specific de source functions They are organized into an inverted tree structure with the root at the top The following figure shows a portion of a subsystem command tree from which you access the commands located along the various paths You can see the complete tree in Table 4 1 ROOT OUTPut STATe DFI i STATe SOURce STATe PROTection CLEar DELay STATus OPERation re LEVEN L CONDition Figure 2 1 Partial Command Tree Multiple Commands in a Message Multiple SCPI commands can be combined and sent as a single message with one message terminator There are two important considerations when sending several commands within a single messag
84. erating output changes and the other is used for triggering measurements This section describes the output trigger system The measurement trigger system is described under Triggering Measurements SCPI Triggering Nomenclature In SCPI terms trigger systems are called sequences When more than one trigger system exists they are differentiated by naming them SEQuencel and SEQuence2 SEQuencel is the transient trigger system and SEQuence2 is the measurement trigger system The de source uses aliases with more descriptive names for these sequences These aliases can be used instead of the sequence forms Sequence Form Alias SEQuencel TRANsient SEQuence2 ACQuire Output Trigger System Model Figure 3 1 is a model of the output 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 INiTiate CONTinuous OFF NITiate MMediate TEE AA INiTiate CONTinuous ON nn INITIATED STATE TRIGGER RECEIVED Y LEVEL OUTPUT CHANGE Figure 3 1 Model of Output Triggers Setting the Voltage or Current Trigger Levels To program output trigger levels you must first specify a voltage or current trigger level that the output will go to once a trigger signal is received Use the following commands to set the output trigger level VOLTage TRIGgered lt n gt or CURRent TRiGgered l
85. ess than the lower hysteresis band limit Command Syntax TRIGger SEQuence2 LEVel CURRent lt NRf gt TRIGger ACQuire LEVel CURRent lt NRf gt Parameters 0 to MAX see table 4 3 Unit A amperes RST Value 0 Examples TRIG SEQ2 LEV CURR 5 TRIG ACQ LEV CURR MAX TRIG ACQ LEV 2 Query Syntax TRiGger SEQuence2 LEVel CURRent TRiGger ACQuire LEVel CURRent Returned Parameters lt NR3 gt Related Commands TRIG SEQ2 LEV VOLT TRIG SEQ2 HYST CURR TRiIGger SEQuence2 LEVel VOLTage TRIGger ACQuire LEVel VOLTage HP 66312A 66332A Only This command sets the trigger level for internally triggered voltage measurements positive voltage trigger occurs when the voltage level changes from a value less than the lower hysteresis band limit to a value greater than the upper hysteresis band limit Similarly a negative voltage trigger occurs when the voltage level changes from a value greater than the upper hysteresis band limit to a value less than the lower hysteresis band limit Command Syntax TRIGger SEQuence2 LEVel VOLTage lt NRf gt TRIGger ACQuire LEVel VOLTage lt NRf gt Parameters Oto MAX see table 4 3 Unit V volts RST Value 0 Examples TRIG SEQ2 LEV VOLT 5 TRIG ACQ LEV VOLT MAX TRIG ACQ LEV 2 Query Syntax TRIGger SEQuence2 LEVel VOLTage TRIGger ACQuire LEVel VOLTage Returned Parameters lt NR3 gt Related Commands TRIG SEQ2 LEV CURR TRIG SEQ2 HYST VOLT 4 38 Language Dictionary Trigger Commands TRIG SEQ2 SLOP CURR TRIG SEQ2 SLOP
86. f the Status Byte register 3 16 Programming the DC Source Status Registers Determining the Cause of a Service Interrupt You can determine the reason for an SRQ by the following actions Step 1 Determine which summary bits are active Use STB or serial poll Step 2 Read the corresponding Event register for each summary bit to determine which events caused the summary bit to be set Use STATus QUEStionable 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 NTRIPTR filter A faster way to prevent the interrupt is to disable the service request by programming the appropriate bit of the Service Request Enable register Servicing Operation Status and Questionable Status Events This example assumes you want a service request generated whenever the de source switches to the CC constant current operating mode or whenever the dc source s overvoltage overcurrent or overtemperature circuits have tripped From figure 3 7 note the required path for a condition at bit 10 CC of the Operation Status register to set bit 6 RQS of the Status Byte register Also note the required path for Questionable Status conditions at bits 0 1 and 4 to generate a service request RQS a
87. ion number Power on status clear state set reset Return power on status clear state Recall instrument state Reset Save instrument state Set service request enable register Return service request enable register Return status byte Trigger TST WAT Perform selftest then return result 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 2 0475 1 0238 Parameter SOUR CURR LEV IMM MAX and SOUR CURR LEV TRIG MAX RST Current Value SOUR VOLT LEV I I1MM MAX and SOUR VOIT LEV TRIG MAX RST Voltage Value 10 of MAX value for all models 0 V for all models SOUR VOLT PROT LEV MAX 2 2 22 22 RST OVP Value OUTP PROT DEL MAX RST Protection Delay Value SENS CURR RANG MAX for all models 2 147 483 647 seconds for all models 0 08 seconds Normal 0 008 seconds Fast Low range 0 20 mA for all models High Range 20 mA MAX for all models MAX for all models RST Current Range Value Common Commands Language Dictionary 4 5 CAL CURR CAL CURR NEG CAL CURR MEAS LOWR CAL CURR MEAS AC Calibration Commands Calibration commands let you Enable and disable the calibration mode a Change the calibration password w Calibrate the current and voltage programming and measurement and store new c
88. l occur Measuring Output Pulses Programming the DC Source 3 11 sed Pre event and Post event Triggering HP 66312A 66332A Only When a measurement is initiated the dc source continuously samples either the instantaneous output voltage or current As shown in figure 3 6 you can move the block of data that is being read into the acquisition buffer with reference to the acquisition trigger This permits pre event or post event data sampling OFFSET 4096 4096 DATA POINTS OFFSET 2048 i be i 4096 DATA POINTS ACQUISITION TRIGGER Figure 3 6 Pre event and Post event Triggering To offset the beginning of the acquisition buffer relative to the acquisition trigger use SENSe SWEep 0FFSet POINts lt offset gt The range for the offset is 4096 to 2E9 points As shown in the figure when the offset is negative the values at the beginning of the data record represent samples taken prior to the trigger When the value is 0 all of the values are taken after the trigger Values greater than zero can be used to program a delay time from the receipt of the trigger until the data points that are entered into the buffer are valid Delay time Offset X Sample period 3 12 Programming the DC Source Measuring Output Pulses Programming the Status Registers You can use status register programming to determine the operating condition of the dc source at any time For
89. le Programs introduction The example programs in this section are intended to show how some of the same de source functions can be programmed to each of the following HP IB interfaces 1 HP Vectra PC controller with HP 82335A HP IB Interface Command Library 2 IBM PC controller with National Instuments GPIB PCII Interface Handler 3 HP controller with HP BASIC Language System Assigning the HP IB Address in Programs The de source address cannot be set remotely It must be set using the front panel key Once the address is set you can assign it inside programs The following examples assume that the HP IB select code is 7 and the de source is assigned to the variable PS 1070 PS 706 HP82335A Interface 1070 ASSIGN GPS TO 706 HP BASIC Interface For systems using the National Instruments DOS driver the address is specified in the software configuration program IBCONFIG EXE and assigned a symbolic name The address then is referenced only by this name within the application program see the National Instruments GP IB documentation Types of DOS Drivers The HP 82335A and National Instruments GP IB are two popular DOS drivers Each is briefly described here See the software documention supplied with the driver for more details HP 82335A Driver For GW BASIC programming the HP IB library is implemented as a series of subroutine calls To access these subroutines your application program must include the header file SETUP BAS
90. lse waveform using 1024 bins between the maximum and minimum data points The bin containing the most data points below the 50 point is the low bin The average of all the data points in the low bin is returned as the Low level If no low bin contains more than 1 25 of the total number of acquired points then the minimum value is returned by these queries Query Syntax MEASure SCALar CURRent LOW FETCh SCALar CURRent LOW Parameters None Examples MEAS CURR LOW FETC CURR LOW Returned Parameters lt NR3 gt Related Commands MEAS CURR HIGH CALC REF LOW MEASure CURRent MAXimum FETCh CURRent MAXimum HP 66312A 66332A Only These queries return the maximum output current Query Syntax MEASure SCALar CURRent MA Ximum FETCh SCALar CURRent MA Ximum Parameters None Examples MEAS CURR MAX FETC CURR MAX Returned Parameters lt NR3 gt Related Commands MEAS CURR MIN MEASure CURRent MINimum FETCh CURRent MINimum HP 66312A 66332A Only These queries return the minimum output current Query Syntax MEASure SCALar CURRent MINimum FETCH SCA Lar CURRent MINimum Parameters None Examples MEAS CURR MIN FETC CURR MIN Returned Parameters lt NR3 gt Related Commands MEAS CURR MAX Measurement Commands Language Dictionary 4 11 MEAS VOLT FETC VOLT MEAS VOLT ACDC MEAS VOLT HIGH FETC VOLT ACDC FETC VOLT HIGH MEASure VOLTage FETCh VOLTage FETCh VOLTage applies to HP
91. mpleted measurement the instrument waits for the next valid trigger condition to start another measurement This continues until the count has completed Command Syntax TRIGger SEQuence2 COUNt CURRent lt NR gt TRIGger ACQuire COUNt CURRent lt NRf gt Parameters 1 to 100 RST Value 1 Examples TRIG SEQ2 COUN CURR 5 TRIG ACQ COUN CURR 1 Query Syntax TRIGger SEQuence2 COUNt CURRent TRIGger ACQuire COUNt CUR Rent Returned Parameters lt NR3 gt Related Commands TRIG SEQ2 TRIG ACQ TRIGger SEQuence2 COUNt VOLTage TRIiGger ACQuire COUNt VOL Tage HP 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 each completed measurement the instrument waits for the next valid trigger condition to start another measurement This continues until the count has completed Command Syntax TRIGger SEQuence2 COUNt VOLTage lt NRf gt TRIGger ACQuire COUNt VOLTage lt NRE gt Parameters 1 to 100 RST Value 1 Examples TRIG SEQ2 COUN VOLT 5 TRIG ACQ COUN VOLT 1 Query Syntax TRIGger SEQuence2 COUNt VOLTage TRIGger ACQuire COUNt VOLTage Returned Parameters lt NR3 gt Related Commands TRIG SEQ2 TRIG ACQ 4 36 Language Dictionary Trigger Commands TRIG SEQ2 HYST CURR TRIG SEG2 HYST VOLT TRIGIACO HYST CURR TRIG ACQ HYST VOLT TRIGger SEQuence2 HYSTeresis CURRent TRIGger ACQuire
92. n double quotes SCPI Command Completion SCPI commands sent to the dc source are processed either sequentially or in parallel E 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 0PC 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 0PC 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 fal
93. ning the command with a colon which discards any previous header path For example you could clear the output protection and check the status of the Operation Condition register in one message by using a root specifier as follows OUTPut PROTection CLEAr STATus OPERation CONDition The following message shows how to combine commands from different subsystems as well as within the same subsystem VOLTage LEVel 20 PROTection 28 CURRent LEVel 3 PROTection STATe ON Note the use of the optional header LEVel to maintain the correct path within the voltage and current subsystems and the use of the root specifier to move between subsytems including Common Commands You can combine common commands with system 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 0UTPut ON Using Queries Observe the following precautions with queries w Set up the proper number of variables for the returned data w Read back all the results of a query before sending another command to the de source Otherwise a Query Interrupted error will occur and the unreturned data will be lost 2 4 Introduction to Programming SCPI Message Structure Types of SCPI Messages There are two types of SCPI messages program and response
94. ondition or leaves that condition program the Operational Status PTR NTR filter as follows STATus OPERational PTR 1024 NTR 1024 STATus O0PERational ENABle 1024 SRE 128 The PTR filter will 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 Remote Inhibit and Discrete Fault Indicator The remote inhibit and discrete fault indicators are implemented through the respective INH and FLT connections on the rear panel Refer to the Specifications Table in the User s Guide for the electrical parameters Remote inhibit RI Remote inhibit is an external chassis referenced logic signal routed through the rear panel INH connection which allows an external device to signal a fault To select an operating modes for the remote inhibit signal use OUTPut RI MODE LATChing LIVE OFF LATChing causes a low true signal on the INH input to disable the output The only way to clear the latch is by sending an OUTPut PROTection CLEAR command while the INH input is false LIVE allows the INH input to disable the output in a non latching manner When INH is low true the output is disabled When INH is high it has no effect on the output OFF disables the INH input Discrete Fault Indicator DEI The discrete fault indica
95. ors from the queue Errors generated at the front panel are not put into the queue but appear immediately on the display Query Syntax SYSTem ERRor Parameters None Returned Parameters lt NRI gt lt SRD gt Examples SYST ERR SYSTEM ERROR SYSTem LANGuage This command switches the instrument 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 e The selected language to become active and to be stored in nonvolatile memory w The de source to reset to its power on state If the de source is shut off it will resume operation in the last selected language when power is restored Note that this command and query can be used regardless of the language that is presently selected Conunand Syntax SYSTem LANGuage lt string gt Parameters SCPI COMPatibility Power on Value last selected language Examples SYST LANG SCPI SYSTEM LANGUAGE COMPATIBILITY Query Syntax SYSTem LANGuage Returned Paramters lt CRD gt SYSTem VERSion This query returns the SCPI version number to which the dc source complies The returned value is of the form YYYY V where YYYY represents the year and V is the revision number for that year Query Syntax SYSTem VERSion Parameters none Returned Paramters lt NR2 gt Examples SYST VERS SYSTEM VERSION 4 30 Language Dictionary System Commands SYST LOC SY
96. ous NAME 4 34 e A A o MG RES ee VK A 4 35 IC Per SO UC a o a o O DD o We ah he aps Te v 4 35 TRIGger SEQuence2 TRIGger ACQuire 4 35 HP 663124 66332A Only ss a rs a e e 4 35 TRIGger SEQuence2 COUNt CURRent TRIGger ACQuire COUNt CURRent 4 36 HP 66312A 66332A Only a soam des a abs ls eR SE 4 36 TRIGger SEQuence2 COUNt VOLTage TRIGger ACQuire COUNt VOLTage 4 36 HP 66312A 66332A Only e le ao am 5 PEN ee ee ee 4 36 TRiGger SEQuence2 HYSTeresis CURRent TRiGger ACQuire HYSTeresis CURRent 1 ee ee 4 37 HP 66312A 66332A Only az RS id ods a Se he Se Ge ae 15 4 37 TRIGger SEQuence2 HYSTeresis VOL Tage TRIGger ACQuire HYSTeresis VOLTage 4 37 HP 663124 66332A Only a x ews A ER TR E ao 4 37 TRiGger SEQuence2 LEVel CURRent TRIGger ACQuire LEVel CURRent 4 38 HP 66312A 66332A Only MA A gh RA a NR ER ee 4 38 TRIGger SEQuence2 LEVel VOL Tage TRIGger ACQuire LEVel VOLTage 4 38 HP 66312A 66332A Only wks de a a AAA 4 38 TRIGger SEQuence2 SLO Pe CURRent TRIGeer ACQuire SLOPe CURRent 4 39 HP 66312A 06332A ODIY de scm he eS SET a ae an ED He O 4 39 TRIGger SEQuence2 SLOPe VOLTage TRIGger ACQuire SLOPe VOLTag 4 39 HP 66312A 66332A Only ea a a ee e P 4 39 TRiGger SEQuence2 SOURce TRIGger ACQuire SOURce aaa 4 40 HP 66312A 66332A Only a a E ee ARAS in 4 40 TRIGger SEQuencel DEFine TRIGger SEQuence2 DEFine cc 4 40 TRIGger SEQuence2 DEFine applies to HP 663124 663324 Only 4 40 P
97. r your system the internal wiring may be incorrect The interface cable must be connected to the correct serial port on your computer COMI COM2 etc 2 8 Introduction to Programming Device Clear Programming the DC Source Introduction This chapter contains examples on how to program your de source Simple examples show you how to program w output functions such as voltage and current w internal and external triggers m measurement functions w the status and protection functions Note These examples in this chapter show which commands are used to perform a particular function but do not show the commands being used in any particular programming environment Refer to Appendix D for some examples of SCPI commands in a specific programming environment Programming the Output Power on Initialization When the de 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 O ESE O RST is a convenient way to program all parameters to a known state Refer to the RST command in chapter 4 to see how each programmable parameter is set by RST Refer to the PSC command in chapter 4 for more information on the power on initialization of the ESE and the SRE registers Enabling the Output To enable the output use the command OUTPut ON Output Programming the DC
98. rement trigger SCPI Triggering Nomenclature As previously explained under Triggering Output Changes the de source uses the following sequence name and alias for the measurement trigger system This alias can be used instead of the sequence form Sequence Form Alias SEQuence2 ACQuire Measurement Trigger System Model Figure 3 2 is a model 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 eo ABORt et ERSTE INUTiate IMMediate y INITIATED STATE i L ACQUIRED el D a Figure 3 2 Modei of Measurement Triggers Initiating the Measurement Trigger System HP 66312A 66332A Oniy When the dc source is turned on the trigger system is in the idle state In this state the trigger system ignores all triggers Sending the following commands at any time returns the trigger system to the Idle state ABORt RST RCL The INITiate commands move the trigger system from the Idle state to the Initiated state This enables the de source to receive triggers To initiate for a measurement trigger use Measurement Triggering Programming the DC Source 3 7 INITiate SEQuence2 or INITiate NAME ACQuire After a trigger is received and the data acquisition completes the trigger system will return to the Idle state unless mul
99. ring RETURN National Interface Example Programs D 5 Example 3 Controller Using HP BASIC 1000 1005 1010 1015 1020 1025 1030 1035 1040 1045 1050 1055 1060 1065 1070 1075 1080 1085 1090 1095 1100 1105 1110 1115 1130 1135 1140 1145 1150 1155 1160 1165 1170 1175 1180 1185 1190 De source at stand alone address 706 OPTION BASE 1 DIM Codes 80 Response 80 Mode 32 i Program dc source to CV mode with following voltage and current OUTPUT 706 VOLTAGE MAX CURRENT MAX i Query de source outputs and print to screen OUTPUT 706 MEASURE VOLTAGE CURRENT Query output levels ENTER 706 Vout lout PRINT The output levels are Vout Volts and Iout Amps Program current triggered level to a value insufficient to maintain t supply within its CV operating characteristic OUTPUT 706 CURR TRIG MIN Set operation status mask to detect mode change from CV to CC OUTPUT 706 STAT OPER ENAB 1024 PTR 1024 i Enable Status Byte OPER summary bit OUTPUT 706 SRE 128 i tArm trigger circuit and send trigger to dc source OUTPUT 706 INITIATE SEQUENCE TRIGGER Poll for interrupt caused by change to CC mode and print to screen Response SPOLL 706 IF NOT BIT Response 7 THEN GOTO 1130 No OPER event to report OUTPUT 706 STAT OPER EVEN Query status operation register ENTER 706 0event Read back event bit IF BIT Oevent 10 THEN PRINT Supply
100. roduces a Constant Voltage or Constant Current condition and the recording of that condition by the Operation Status Condition register The delay prevents the momentary changes in dc source status that can occur during reprogramming from being registered as events by the status subsystem Since the delay applies to Constant Current status it also delays the OverCurrent Protection feature The OverVoltage Protection feature is not affected by this delay Command Syntax OUTPut PROTection DELay lt NRf gt Parameters Oto 2 147 483 647 Unit seconds RST Value 0 08 Normal Examples OUTPUT PROTECTION DELAY 75E 1 Query Syntax OUTPut PROTection DELay Returned Parameters lt NR3 gt Related Commands OUTTP PROT CLE RCL SAV Output Commands Language Dictionary 4 17 ry SOUR DIG DATA SOUR DIG FUNC SOUR VOLT SOURce DIGital DATA This command sets and reads the de source digital control port when that port is configured for Digital I O operation Configuring of the port is done with the DIG FUNC command The port has three signal pins and a digital ground pin Pins 1 and 2 are output pins controlled by bits 0 and 1 Pin 3 is controlled by bit 2 and can be programmed to serve either as an input or an output It normally serves as an output Bit 2 must be programmed high to use pin 3 as an input Pin 4 is the digital ground The query returns the last programmed value in bits 0 and 1 and the value read at pin 3 in bit 2 Command Synt
101. rs C 1 F fault indicator Discrete 3 18 Remote Inhibit 3 18 fetch commands 3 5 4 9 FLT 3 18 G generating measurement triggers 3 8 H header 2 5 long form 2 5 short form 2 5 HP 82335A driver D 1 HP BASIC controllers D 2 HP IB address 2 1 D 1 index 1 Lado amp capabilities of de source 2 1 command library for MS DOS 1 2 controller programming 1 2 IEEE Std for standard codes 1 2 IEEE Std for standard digital interface 1 2 references 1 2 INH 3 18 initate commands INIT CONT NAME 4 34 INIT CONT SEQ 4 34 INIT SEQ 4 34 initialization 3 1 initiate commands 4 34 initiating measurement trigger system 3 7 initiating output trigger system 3 4 internally triggered measurements 3 7 L language 4 30 B 1 B 2 M making measurements 3 5 MAV bit 3 16 maximum measurements 3 6 measure commands 3 5 4 9 MEAS ARR CURR 4 9 MEAS ARR VOLT 4 9 MEAS CURR 4 10 MEAS CURR ACDC 4 10 MEAS CURR HIGH 4 10 MEAS CURR LOW 4 11 MEAS CURR MAX 4 11 MEAS CURR MIN 4 11 MEAS VOLT 4 12 MEAS VOLT ACDC 4 12 MEAS VOLT HIGH 4 12 MEAS VOLT LOW 4 13 MEAS VOLT MAX 4 13 MEAS VOLT MIN 4 13 measurement trigger system model 3 7 measuring output current pulses 3 10 message terminator 2 6 end or identify 2 6 newline 2 6 message unit separator 2 6 minimum measurements 3 6 monitoring both phases of a status transition 3 1
102. s 2 5 message unit 2 5 multiple commands 2 3 non SCPI commands A 1 program message 2 5 references 1 2 response message 2 5 subsystem commands 2 3 syntax 4 1 triggering nomenclature 3 3 3 7 selecting measurement trigger source 3 8 selecting output trigger source 3 4 sense commands 4 9 SENS CURR DET 4 14 SENS CURR RANG 4 14 SENS FUNC 4 15 SENS SWE OFFS POIN 4 15 SENS SWE POIN 4 15 SENS SWE TINT 4 15 servicing operation status events 3 17 servicing questionable status events 3 17 setting output trigger system 3 3 source commands 4 16 SOUR CURR 4 19 SOUR CURR PROT STAT 4 19 SOUR CURR TRIG 4 19 SOUR DIG DATA 4 20 SOUR DIG FUNC 4 20 SOUR VOLT 4 20 SOUR VOLT ALC BAND 4 21 SOUR VOLT PROT 4 21 SOUR VOLT TRIG 4 21 standard event status group 3 16 status bit configuration 3 13 status byte register 3 16 status commands 4 22 STAT OPER 4 22 STAT OPER COND 4 22 STAT OPER ENAB 4 23 STAT OPER NTR 4 23 STAT OPER PTR 4 23 STAT PRES 4 22 STAT QUES 4 24 STAT QUES COND 4 24 STAT QUES ENAB 4 24 STAT QUES NTR 4 25 STAT QUES PTR 4 25 status model 3 13 subsystem command syntax 4 2 suffixes amp multipliers 2 7 system commands 4 29 SYST ERR 4 30 SYST LANG 4 30 B 1 SYST LOC 4 31 SYST REM 4 31 SYST RWL 4 31 SYST VERS 4 30 system errors C 1 Y trigger continuous 3 4 generating 3 4 single 3 4 trigger comm
103. s key All SCPI and COMPatibility commands are available through RS 232 programming When the RS 232 interface is selected the HP IB interface is disabled The EIA RS 232 Standard defines the interconnections between Data Terminal Equipment DTE and Data Communications Equipment DCE The de source is designed to be a DTE It can be connected to another DTE such as a PC COM port through a null modem cable RS 232 Data Format The R 232 data is a 10 bit word with one start bit and one stop bit The number of start and stop bits is not programmable However the following parity options are selectable using the front panel key EVEN Seven data bits with even parity ODD Seven data bits with odd parity MARK Seven data bits with mark parity parity is always true SPACE Seven data bits with space parity parity is always false NONE Eight data bits without parity Parity options are stored in non volatile menory Baud Rate The front panel key lets you select one of the following baud rates 300 600 1200 2400 4800 9600 The baud rate is stored in non volatile memory HP IB RS 232 Capabilities Introduction to Programming 2 1 RS 232 Flow Control The RS 232 interface supports one control option that is selected using the front panel Address key The de source will send a maximum of five characters after holdoff is asserted by the controller The de source is capable of receiving as many as fifte
104. s the examples given for each command are generic Syntax Forms Syntax definitions use the long form but only short form headers or keywords appear in the examples Use the long form to help make your program self documenting Parameters Most commands require a parameter and all queries will return a parameter The range for a parameter may vary according to the model of de source When this is the case refer to the Specifications table in the Operating Guide Models If a command only applies to specific models those models are listed in the lt Model gt Only If there is no lt Model gt Only entry the command applies to all models Related Where appropriate related commands or queries are included These are Commands listed because they are either directly related by function or because reading about them will clarify or enhance your understanding of the original command or query Order of The dictionary is organized according to the following functions calibration Presentation measurement output status system and trigger Both the subsystem commands and the common commands that follow are arranged in alphabetical order under each function Subsystem Commands Subsystem commands are specific to de source functions They can be a single command or a group of commands The groups are comprised of commands that extend one or more levels below the root The subsystem command groups are grouped according to function
105. se whenever the trigger subsystem is in the Initiated state SCPI Command Completion Introduction to Programming 2 7 Using Device Clear You can send a device clear at any time abort a SCPI command that may be hanging up the HP IB 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 wm The input and output buffers of the de source are cleared m The de source is prepared to accept a new command string The following statement shows how to send a device clear over the HP IB interface using HP BASIC CLEAR 705 IEEE 488 Device Clear The following statement shows how to send a device clear over the HP IB interface using the HP IB command library for C or QuickBASIC IOCLEAR 705 Note For R5 232 operation sending a Break will perform the same operation as the IEE 488 device clear message RS 232 Troubleshooting If you are having trouble communicating over the RS 232 interface check the following x The computer and the de source must be configured for the same baud rate parity number of data bits and flow control options Note that the de source is configured for 1 start bit and 1 stop bit these values are fixed w The correct interface cables or adaptors must be used as described under RS 232 Connector Note that even if the cable has the proper connectors fo
106. selected time interval applying a Hanning window function to the readings and averaging the readings Windowing ls a signal conditioning process that reduces the error in de measurements made in the presence of periodic signals such as line ripple At power on and after a RST command the following parameters are set SENSe SWEep TINTerval 15 6E 6 SENSe SWEep POINts 2048 Making Measurements Programming the DC Source 3 5 This results in a data acquisition time of 32 milliseconds Adding a command processing overhead of about 20 milliseconds results in a total measurement time of about 50 milliseconds per measurement sample Ripple rejection is a function of the number of cycles of the ripple frequency contained in the acquisition window More cycles in the aquisition window results in better ripple rejection If you increase the time interval for each measurement to 45 microseconds for example this results in 5 53 cycles in the acquisition window at 60 Hz for a ripple rejection of about 70 dB Note that the speed of the measurement can be increased by reducing the number of sample points For example the commands SENSe SWEep TINTerval 15E 6 SENSe SWEep POINts 1024 speeds up the acquisition period to 16 milliseconds however the tradeoff is reduced measurement accuracy RMS Measurements HP 66312A 66332A Only To read the rms content of a voltage or current waveform use MEASure VOL
107. t n gt Output Triggering Programming the DC Source 3 3 Note Until they are programmed uninitialized trigger levels will assume their corresponding immediate levels For example if a de source is powered up and VOLTage LEVel is programmed to 6 then VOLTage LEVel TRIGger will also be 6 until you program it to another value Once you program VOLTage LEVelTRIGger to a value it will remain at that value regardless of how you subsequently reprogram VOLTage LEVel Initiating the Output Trigger System When the de source is turned on the trigger subsystem is in the idle state In this state the trigger subsystem ignores all triggers Sending the following commands at any time returns the trigger system to the Idle state ABORt RST RCL The INITiate commands move the trigger system from the Idle state to the Initiated state This enables the de source to receive triggers To initiate for a single triggered action use INITiate SEQuencei or INITiate NAME TRANsient Alter a trigger is received and the action completes the trigger system will return to the Idle state Thus it will be necessary to initiate the system each time a triggered action is desired To keep a trigger system initiated for multiple actions without having to send an initiate command for each trigger use INITiate CONTinuous SEQuencel ON or INTTiate CONTinuous NAME TRANsient ON Generating Triggers After you ha
108. t the Status Byte register The required register programming is as follows Step 1 Program the Operation Status PTR register to allow a positive transition at bit 10 to be latched into the Operation Status Event register and allow the latched event to be summed into the Operation summary bit Use STATus OPERation PTR 1024 ENABle 1024 Step 2 Program the Questionable Status PTR register to allow a positive transition at bits 0 1 or 4 to be latched into the Questionable Status Event register and allow the latched event to be summed into the Questionable summary bit Use STATus QUEStionable PTR 19 ENABle 19 142416 19 Step 3 Program the Service Request Enable register to allow both the Operation and the Questionable summary bits from the Status Byte register to generate RQS Use SRE 136 8 128 136 Step 4 When you service the request read the event registers to determine which Operation Status and Questionable Status Event register bits are set and clear the registers for the next event Use STATus OPERation EVENt QUEStionable EVENt Status Registers Programming the DC Source 3 17 Monitoring Both Phases of a Status Transition ou can monitor a status signal for both its positive and negative transitions For example to You cz t tatus signal for both its positive and negative transitions F ple t generate RQS when the de source either enters the CC constant current c
109. terrupt caused by change to CC mode and print to screen CALL IOSPOLL PS RESPONSE IF RESPONSE AND 128 lt gt 128 THEN GOTO 1240 No OPER event to report CODES STATUS OPER EVEN GOSUB 2000 Query status oper register CALL IOENTER PS OEVENT Read back event bit IF PCIB ERR lt gt NOERR THEN ERROR PCIB BASERR IF OEVENT AND 1024 1024 THEN PRINT Supply switched to CC mode Clear the status circuit CODES xCLS GOSUB 2000 FORT 1 T0 100 NEXT I Wait for supply to clear Disable output and save present state in location 2 CODES OUTPUT OFF SAV 2 GOSUB 2000 END Send command to dc source LENGTH LEN CODES CALL TOOUTPUTS PS CODES LENGTH Send command to interface IF PCIB ERR lt gt NOERR THEN ERROR PCIB BASERR SETUP BAS error trap RETURN E Get data from dc source CALL IDENTERA PS OUTPUTS 1 MAX ELEMENTS ACTUAL ELEMENTS IF PCIB ERR lt gt NOERR THEN ERROR PCIB BASERR RETURN HP 82335 Interface Example Programs D 3 Example 2 IBM Controller Using National Interface 1000 1005 1010 1015 1020 1025 1030 1035 1040 1045 1050 1055 1060 1065 1070 1075 1080 1085 1090 1095 1100 1105 1110 1115 1120 1125 1130 1135 1140 1145 1150 1160 1165 1170 1175 1180 1185 1190 1195 1200 1205 1210 1215 1220 A SA Merge DECL BAS here DC Source Variable PS Stand Alone Address 706 CODES SPACE 50 MODE S
110. tiple measurements are desired Thus it will be necessary to initiate the system each time a triggered acquisition is desired Note You cannot initiate measurement triggers continuously Otherwise the measurement data in the data buffer would continuously be overwritten by each triggered measurement Selecting the Measurement Trigger Source HP 66312A 66332A Only The trigger system is waiting for a trigger signal in the Initiated state Before you generate a trigger you must select a trigger source The following measurement trigger sources can be selected BUS selects HP IB bus triggers INTernal selects the de source s output as the measurement trigger To select HP IB bus triggers group execute 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 S0URce INTernal or TRIGger ACQuire SOURce INTernal Generating Measurement Triggers HP 66312A 66332A Only There is only one measurement converter in the de source Before you generate a measurement trigger you must specify a measurement acquistion of either voltage or current To specify a measurement acquisition use SENSe FUNCtion CURRent or SENSe FUNCtion VOLTage Providing that you have specified the appropriate trigger source and a measurement acquisition you can generate triggers as follows HP IB
111. tor is a chassis referenced open collector logic signal connected to the rear panel FLT connection that can be used to signal external devices when a fault condition is detected To select the internal fault source that drives this signal use OUTPut DFI SOURce QUEStionable OPERation ESB RQS OFF QUEStionable selects the Questionable event summary bit bit 3 of the Status Byte Register OPERation selects the Operation Event summary bit bit 7 of the Status Byte Register ESB selects the Standard Event summary bit bit 5 of the Status Byte Register RQS selects the Request Service bit bit 6 of the Status Byte Register OFF selects no DFI source To enable or disable the DFI output use OUTPut DFI STATe ON OFF 3 18 Programming the DC Source Remote Inhibit Discrete Fault Language Dictionary Introduction This section gives the syntax and parameters for all the IEEE 488 2 SCPI commands and the Common commands used by the de source It is assumed that you are familiar with the material in Chapter 2 Remote Programming That chapter explains the terms symbols and syntactical structures used here and gives an introduction to programming You should also be familiar with Chapter 4 Front Panel Operation in the Operating Guide in order to understand how the de source functions The programming examples are simple applications of SCPI commands Because the SCPI syntax remains the same for all programming language
112. urce The command has the same affect as the Group Execute Trigger lt GET gt command In RS 232 mode this command emmulates some of the functionality of the IEEE 488 Group Execute Trigger command Command Syntax TRG Parameters None Related Commands ABOR INIT TRIG IMM lt GET gt 4 40 Language Dictionary Trigger Commands SCPI Conformance Information SCPI Version The HP Dynamic Measurement DC Source conforms to SCPI Version 1995 0 SCPI Confirmed Commands ABOR CAL DATA CAL STAT DISP WIND STAT DISP WIND TEXT DATA INIT IMM SEQ NAME INIT CONT SEQ NAME MEAS FETC ARR CURR DC MEAS FETC ARR VOLT DC MEAS FETC SCAL CURR DC MEAS FETCE SCAL CURR HIGH MEAS FETCE SCAL CURR LOW MEAS FETC SCAL CURR MAX MEAS FETC SCAL CURR MIN MEAS FETC SCAL VOLT DC MEAS FETC SCAL VOLT HIGH MEAS FETC SCAL VOLT LOW MEAS FETC SCAL VOLT MAX MEAS FETC SCAL VOLT MIN OUTP STAT OUTP PROT CLE OUTP PROT DEL SOUR CURR LEV IMM AMP1 SOUR CURR LEV TRIG AMPL SOUR CURR PROT STAT SOUR VOLTLLEV IMM AMPI SOUR VOLT LEV TRIG AMP1 SOUR VOLT PROT SENS CURR DC RANG UPP SENS FUNC SENS SWE OFFS POIN Non SCPI Commands CAL CURR SOUR DC POS CAL CURR SOUR DC NEG CAL MBAS DC LOWR CAL MEAS AC CAL LEV CAL PASS CAL SAVE CAL VOLTE DC CAL VOLT PROT DISP WIND MODE MEAS FETC SCAL CURR ACDC MEAS FETC SCAL VOLT
113. urements and you require a measurement offset better than 2mA on the High current measurement range Note that this selection gives inaccurate results on current waveforms that have ac content SENSe CURRent DETect DC Pulse Measurement Queries The de source has several measurement queries that return key parameters of pulse waveforms as shown in Figure 3 4 FETC CURRIMAX e FETCVOLTIMAX FETC CURR HIGH gt FETC VOLT HIGH FETC CURR LOW72 FETC VOLT LOW PETC CURR MIN i FETC VOLT MIN A DATA POINTS Figure 3 4 Measurement Commands Used to Return Pulse Data To return the maximum or minimum value of a pulse waveform use FETCh VOLTage MAXimum or FETCh VOLTage MINimum FETCH CURRent MAXimum or FETCh CURRent MINimum The average value of the high level or low level of a pulse can also be measured To return the average value of the high level use FETCH CURRent HIGH or FETCh VOLTage HIGH To return the average value of the low level use FETCh CURRent LOW or FETCh VOLTage LOW 3 10 Programming the DC Source Measuring Output Pulses Controlling Measurement Samples Varying the Voltage or Current Sampling Rate You can vary both the number of data points in a measurement sample as well as the time between samples This is illustrated in Figure 3 5 a wt SENS SWE TINT lt time gt ma SENS SWE POIN lt of points gt pt TRIG ACO COUN CURR lt of sweeps gt
114. us Commands Language Dictionary 4 25 ESE ESR OPC ESE This command programs the Standard Event Status Enable register bits The programming determines which events of the Standard Event Status Event register see ESR are allowed to set the ESB Event Summary Bit of the Status Byte register A 1 in the bit position enables the corresponding event All of the enabled events of the Standard Event Status Event Register are logically ORed to cause the Event Summary Bit ESB of the Status Byte Register to be set The query reads the Standard Event Status Enable register Table 4 6 Bit Configuration of Standard Event Status Enable Register 5 Bit Name PON 0 cme EXE DDE que PON Power on has occurred DDE Device dependent error CME Command error QUE Query error EXE Execution error OPC Operation complete Command Syntax ESE lt NRf gt Parameters to 255 Power on Value See PSC Example ESE 129 Query Syntax ESE Returned Parameters lt NR1 gt Register value Related Commands ESR PSC STB 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 Status Enable register see ESE Query Syntax ESR Parameters None Returned Parameters lt NR1 gt Register binary value Related Commands CLS ESE ESE OPC OPC This comm
115. utput and source commands Output commands control the de source output and digital port functions They also control the Option 760 output relay Source commands program the actual voltage current and digital port output OUTPut This command enables or disables the de source output The state of a disabled output is a condition of zero output voltage and a model dependent minimum source current see RST Unless the NORelay command is programmed the OUTput command also controls the Option 760 output relay on HP models 66332A 6632B 6633B and 66345 If the NORelay command is sent the output relay state does NOT change Command Syntax OUTPut STATe lt bool gt NORelay Parameters 0 OFF 1 ON RST Value 0 Examples OUTP 1 OUTPUT STATE ON Query Syntax OUTPut STATe Returned Parameters lt NR1 gt forl Related Commands RST RCL SAV OUTPut DFI This command enables or disables the discrete fault indicator DFT output from the de source Command Syntax OUTPut DFI STATe lt bool gt Parameters 0 1 OFF ON RST Value OFF Examples OUTP DFI 1 OUTP DFI OFF Query Syntax OUTPut DFI STATe Returned Parameters 0 1 Related Commands OUTP DFLSOUR OUTPut DFL SOURCe This command selects the source for discrete fault indicator DFI events The choices are QUEStionable Questionable summary bit OPERation Operation summary bit ESB Standard Event summary bit ROS Request Service summary bit OFF Never true Command Synta
116. ve specified the appropriate trigger source you can generate triggers as follows Single Triggers Send one of the following commands over the HP IB TRIGger IMMediate TRG a group execute trigger Continuous Triggers Send the following command over the HP IB INITiate CONTinuous SEQuencel ON When the trigger system enters the Output Change state upon receipt of a trigger see figure 3 1 the triggered functions are set to their programmed trigger levels When the triggered actions are completed the trigger system returns to the Idle state 3 4 Programming the DC Source Output Triggering Making Measurements The de source has the ability to make several types of voltage and current measurements The measurement capabilities of the HP 66312A and HP 66332A models are particulary useful for loads that draw current in pulses All measurements are performed by digitizing the instantaneous output voltage for a defined number of samples and sample interval storing the results in a buffer and then calculating the measured result Many parameters of the measurement are programmable These include the number of samples the time interval between samples the bandwidth and the method of triggering Note that there is a tradeoff between these parameters and the speed accuracy and stability of the measurement in the presence of noise There are two ways to make measurements w Use the MEASure commands to immediately start acquiring new voltage
117. x OUTP DFLSOUR lt source gt Parameters QUES OPER ESP RQS OFF RST Value OFF Examples OUTP DFI SOUR OPER Query Syntax OUTPut DFI SOUR Returned Parameters lt CRD gt Related Commands OUTP DFI 4 16 Language Dictionary Output Commands OUTP PON STAT OUTP PROT CLE OUTP PROT DEL OUTPut PON STATe This command selects the power on state of the de source This information is saved in non volatile memory The following states can be selected RST Sets the power on state to RST Refer to the RST command as described in this chapter for more information RCLO Sets the power on state to RCL 0 Refer to the RCL command as described in this chapter for more information Command Syntax OUTPut PON STATE lt state gt Parameters RST RCLO Examples OUTP PON STAT RST Query Syntax OUTPut PON STATe Returned Parameters lt CRD gt Related Commands RST RCL OUTPut PROTection CLEar This command clears the latch that disables the output when an OverVoltage OverCurrent Over Temperature Remote Inhibit or Fuse Status condition is detected All conditions that generate the fault must be removed before 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 p

Download Pdf Manuals

image

Related Search

Related Contents

  ficha pdf - Bioseguridad  Page 1 de 2 - Logistics Supply  M68HC12B32EVB Evaluation Board  König CS8GALT3S100 screen protector  Montage- und Betriebsanleitung Elektroschloss E 202 Installation  Cooper Lighting Halo L5300 User's Manual  Aiphone PS-18D User's Manual  Actionneur multifonction de commutation pour bus RS485  

Copyright © All rights reserved.
Failed to retrieve file