Agilent Technologies N3280A manual Determining the Cause of a Service Interrupt

Page 52

5 - Programming the DC Source

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:

 

STAT:QUES:EVEN? (@<channel list>)

 

STAT:OPER:EVEN? (@<channel list>)

 

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 NTRPTR 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 dc source switches to the CC (constant current) operating mode, or whenever the dc source's overvoltage, overcurrent, or overtemperature circuits have tripped. From figure 5-5, 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) at 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 6 to be

 

latched into the Operation Status Event register, and allow the latched event to be

 

summed into the Operation summary bit. Use:

 

STAT:OPER:PTR 64,(@<channel list>);ENAB 64,(@<channel list>)

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:

 

STAT:QUES:PTR 19,(@<channel list>);ENAB 19 ,(@<channel list>) (1 + 2 + 16 = 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:

STAT:OPER:EVEN? (@<channel list>);QUES:EVEN? (@<channel list>)

You can also monitor a status signal for both its positive and negative transitions. For example, to generate RQS when the dc source either enters the CC+ (constant current) condition or leaves that condition, program the Operational Status PTR/NTR filter as follows:

STAT:OPER:PTR 8,(@<channel list>);NTR 8,(@<channel list>)

STAT:OPER:ENAB 8,(@<channel list>);*SRE 128,(@<channel list>)

52

Image 52
Contents USER’S Guide Agilent Technologies Model N3280A Component Test DC SourceWarranty Information CertificationSafety Summary GeneralSafety Symbols Declaration Acoustic Noise Information Printing HistoryTable of Contents Types of Scpi Commands Scpi Command Completion Using Device ClearExternal References Gpib Capabilities of the DC Source Introduction to ScpiScpi Programming Commands At a Glance Calibration Commands Measurement CommandsOutput Commands Status CommandsSystem Commands Trigger CommandsCommon Commands Voltage Priority TestsRipple and Noise Tests Error Number List 103Transient Response Tests Page Safety Considerations Document OrientationOptions and Accessories DescriptionRemote Programming Option DescriptionOutput Characteristics Voltage Priority OperationOutput Characteristic Current Priority Current Priority OperationMeasurement Characteristics Start of a Measurement Cleaning InspectionDamage Packaging Material Additional ItemsLocation Bench OperationRack Mounting Do not block the fan exhaust at the rear of the unitPower Connections Connect the Power CordOutput Connections Turn the unit off before connecting any wiresOutputs 1 Current Ratings Voltage Drops and Lead ResistanceAmpacity and Resistance of Stranded Copper Conductors AWG No Maximum Ampacity Resistance at 20 deg. C Free airCoaxial Guard Connections Guard Connections for Test FixturesExternal Trigger Connections Computer ConnectionsMaintaining Stability OVP ConsiderationsSettings for Power Module Configuration Switch Switch SettingSwitch Setting Address Gpib AddressFront Panel Description Procedure Checkout ProcedureExplanation Selftest Error Messages Runtime Error MessagesPower-On Selftest Errors Case of TroublePage External References Gpib Capabilities of the DC SourceGpib References Scpi ReferencesIntroduction to Scpi Types of Scpi CommandsConventions Used in This Guide Multiple Commands in a Message Including Common CommandsUsing Queries Moving Among SubsystemsMessage Unit Types of Scpi MessagesChannel List Parameter Scpi Data Formats Scpi Command Completion Suffixes and MultipliersResponse Data Types Class Suffix Unit Unit with MultiplierUsing Device Clear Outputstate ExamplePage Power-on Initialization IntroductionProgramming the Output Enabling the OutputOvervoltage Protection Output ModeOutput Current Oscillation Protection Triggering Output ChangesOutput Trigger Model Enabling the Output Trigger System Setting the Voltage and Current Trigger LevelsSelecting the Output Trigger Source Generating Output Triggers Making MeasurementsAverage Measurements Power Line Cycles Measurement Samples and Time IntervalTriggered Measurements Current RangesWindow Functions Returning All Measurement Data From the Data BufferEnabling the Measurement Trigger System Measurement Trigger ModelSelecting the Measurement Trigger Source Selecting the Sensing Function Output Settling DelayGenerating Measurement Triggers Pre-trigger and Post-trigger Data Acquisition Pre-trigger and Post-trigger AcquisitionProgramming the Status Registers DC Source Status ModelBit Configurations of Status Registers Operation Status GroupQuestionable Status Group Standard Event Status GroupStatus Byte Register MSS and RQS BitsDetermining the Cause of a Service Interrupt Servicing Operation Status and Questionable Status EventsCommon Commands Subsystem CommandsProgramming Parameters Subsystem Commands Syntax Scpi Programming Commands At a GlanceSave new cal constants in non-volatile memory Mode mode, @list DELay FUNCtion Mode mode, @list VOLTageSets the output voltage in voltage priority mode Sets the triggered output voltage in voltage priority modeCommon Commands Syntax ESE nSRE n Output Programming ParametersCalibration Commands CALibrateCURRentCALibrateCURRentLIMitPOSitive CALibrateCURRentLIMitNEGative CALibrateCURRentMEASureCALibratePASSword CALibrateDATACALibrateDATE CALibrateLEVelCALibrateSTATe CALibrateSAVECALibrateVOLTage Measurement Commands FETChARRayCURRent? FETChARRayVOLTage?FETChCURRent? FETChVOLTage? Query SyntaxMEASureARRayCURRent? MEASureARRayVOLTage? MEASureCURRent? MEASureVOLTage?SENSeCURRentRANGe Enter values greater than 0.015ASENSeFUNCtion SENSeSWEepNPLCyclesSENSeSWEepOFFSetPOINts Query Syntax SENSeFUNCtion? @channel listSENSeSWEepTINTerval SENSeSWEepPOINtsSENSeWINDow Output Commands OUTPutOUTPutOSCProtect OUTPutPROTectionCLEarDefault Suffix SOURceCURRentIMMediate SOURceCURRentTRIGgeredSOURceCURRentLIMitIMMediate SOURceCURRentLIMitTRIGgered SOURceCURRentLIMitBWIDthSOURceDELayMODE SOURceDELaySOURceCURRentMODE SOURceCURRentLIMitMODE SOURceFUNCtionMODE SOURceVOLTageALCBWIDthSOURceVOLTageIMMediate SOURceVOLTageTRIGgered Query Syntax SOURceFUNCMODE? @channel listSOURceVOLTageMODE SOURceVOLTagePROTectionSTATeQuery Syntax SOURceVOLTagePROTectionSTATe? @channel list NR10 orStatus Commands STATusOPERationENABleBit Configuration of Operation Status Registers STATusOPERationEVENt?STATusPRESet Parameters Preset ValueCommand Syntax STATusPRESet Parameters None Examples STATusOPERationNTR STATusOPERationPTRSTATusQUEStionableENABle Query Syntax STATusQUEStionableENABle? @channel listSTATusQUEStionableCONDition? STATusQUEStionableNTR STATusQUEStionablePTRSYSTemERRor? System CommandsSYSTemVERSion? Trigger Commands ABORtINITiateNAME TRIGgerACQuireTRIGgerACQuireSOURce TRIGgerTRANsientSOURceTRIGgerTRANsient RST ValueCommon Commands Command Syntax *CLS Parameters NoneParameters Power-On Value Examples Bit Configuration of Standard Event Status Enable RegisterExample Field InformationQuery Syntax *OPT? Returned Parameters Aard Power-on Value RST SettingsBit Configuration of Status Byte Register Query Syntax TST? Returned Parameters NR1Table A-1. Specifications Table A-2 Supplemental Characteristics Output Common Mode SafetyDimensions WeightFigure A-1. Output Impedance Graphs all outputs Equipment Required Performance & Verification Tests Measurement TechniquesElectronic Load Test SetupProgramming Program Commands Voltage Priority TestsVoltage Programming and Readback Accuracy Positive Current Limit +CLAction Program Commands Negative Current Limit -CLCurrent Priority Tests Current Programming and Readback AccuracyLoad Effect Tests Voltage Priority, Constant Voltage Load EffectVoltage Priority, +Current Limit Load Effect Voltage Priority, -Current Limit Load Effect TestCurrent Priority Constant Current Test Source Effect TestsVoltage Priority, Constant Voltage Source Effect Voltage Priority, +Current Limit Source Effect Voltage Priority, -Current Limit Source EffectCurrent Priority, Constant Current Source Effect Ripple and Noise Tests Voltage Priority Ripple and NoiseTransient Response Tests Voltage Priority, Transient Recovery TimeCurrent Priority Ripple and Noise Current Priority Transient Recovery Time Figure B-2. Transient Waveform Voltage PriorityPerformance Test Equipment Form Figure B-3. Transient Waveform Current PriorityPerformance Test Record Form Performing the Calibration Procedure Enable Calibration ModeNegative Current Limit Calibration Positive Current Limit Calibration5A Range Current Measurement Calibration 100Saving the Calibration Constants 15mA Range Current Measurement Calibration101 Changing the Calibration Password Calibration Error MessagesTable B-3. Gpib Calibration Error Messages Error MeaningTable C-1. Error Numbers Error Number List103 Error Messages 104Error Messages C 105Page Line Voltage Selection 107Page Earlier Version Output Connectors Mating Connector Part NumbersRear Panel Pinout Assignments CHG-2010-J01010-KEPPage Index 111Index 112113 Scpi114 United States Latin America Canada Australia/New ZealandEurope Asia Pacific JapanManual Updates