Agilent Technologies N3280A manual Using Device Clear, Outputstate Example

Page 37

 

Introduction to Programming - 4

*OPC

This sets the OPC status bit when all pending operations have completed. Since your

 

program can read this status bit on an interrupt basis, *OPC allows subsequent

 

commands to be executed.

 

 

NOTE:

The trigger subsystem must be in the Idle state for the status OPC bit to be true. As far

 

as triggers are concerned, OPC is false whenever the trigger subsystem is in the Initiated

 

state.

 

 

OUTPUT:STATE Example

OUTPUT:STATE ON starts a sequence of operations in the unit that closes the output and sense relays and sets the output voltage and current at the user’s settings. It is often important to know when these parallel operations are finished, so that the next step in a test sequence can be synchronized with the completion of a power supply command.

Two types of synchronization are provided:

External synchronization is required when the test system needs to control something other than the power supply after the power supply has finished all previous sent commands. External synchronization is provided by the *OPC? Query and the *OPC command. The *OPC? Query returns the value 1 when all pending operations are completed. The GPIB will be held up waiting for the response to the query until this occurs. The *OPC command will cause bit 0 of the standard event status register to be set when all pending operations are completed. The controller can either poll for this status bit or set up an SRQ when this occurs.

Internal synchronization is required when the test system needs to change a power supply setting or make a power supply internal measurement after the supply has finished all previous sent commands. Internal synchronization is provided by the *WAI command. When the power supply receives the *WAI command, it holds up processing of any further bus commands until all pending parallel operations are completed. For example, the *WAI command can be used to make a current measurement after an output on command has completed:

OUTPUT ON,(@1);*WAI;:MEAS:CURR 0.5,(@1)

Using Device Clear

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

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

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

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

CLEAR 705 IEEE-488 Device Clear

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

IOCLEAR (705)

37

Image 37
Contents Agilent Technologies Model N3280A Component Test DC Source USER’S GuideCertification Warranty InformationGeneral Safety SummarySafety Symbols Declaration Printing History Acoustic Noise InformationTable of Contents Scpi Command Completion Using Device Clear Types of Scpi CommandsExternal References Gpib Capabilities of the DC Source Introduction to ScpiMeasurement Commands Scpi Programming Commands At a Glance Calibration CommandsOutput Commands Status CommandsTrigger Commands System CommandsCommon Commands Voltage Priority TestsRipple and Noise Tests Error Number List 103Transient Response Tests Page Document Orientation Safety ConsiderationsDescription Options and AccessoriesRemote Programming Option DescriptionVoltage Priority Operation Output CharacteristicsCurrent Priority Operation Output Characteristic Current PriorityMeasurement Characteristics Start of a Measurement Inspection CleaningDamage Packaging Material Additional ItemsBench Operation LocationRack Mounting Do not block the fan exhaust at the rear of the unitConnect the Power Cord Power ConnectionsOutput Connections Turn the unit off before connecting any wiresOutputs 1 Voltage Drops and Lead Resistance Current RatingsAmpacity and Resistance of Stranded Copper Conductors AWG No Maximum Ampacity Resistance at 20 deg. C Free airGuard Connections for Test Fixtures Coaxial Guard ConnectionsComputer Connections External Trigger ConnectionsMaintaining Stability OVP ConsiderationsSwitch Setting Settings for Power Module Configuration SwitchSwitch Setting Address Gpib AddressFront Panel Description Procedure Checkout ProcedureExplanation Runtime Error Messages Selftest Error MessagesPower-On Selftest Errors Case of TroublePage Gpib Capabilities of the DC Source External ReferencesGpib References Scpi ReferencesIntroduction to Scpi Types of Scpi CommandsConventions Used in This Guide Including Common Commands Multiple Commands in a MessageUsing Queries Moving Among SubsystemsMessage Unit Types of Scpi MessagesChannel List Parameter Scpi Data Formats Suffixes and Multipliers Scpi Command CompletionResponse Data Types Class Suffix Unit Unit with MultiplierOutputstate Example Using Device ClearPage Introduction Power-on InitializationProgramming 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 Measurement Samples and Time Interval Power Line CyclesCurrent Ranges Triggered MeasurementsWindow 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 Acquisition Pre-trigger and Post-trigger Data AcquisitionDC Source Status Model Programming the Status RegistersOperation Status Group Bit Configurations of Status RegistersStandard Event Status Group Questionable Status GroupStatus Byte Register MSS and RQS BitsServicing Operation Status and Questionable Status Events Determining the Cause of a Service InterruptCommon Commands Subsystem CommandsProgramming Parameters Subsystem Commands Syntax Scpi Programming Commands At a GlanceSave new cal constants in non-volatile memory FUNCtion Mode mode, @list VOLTage Mode mode, @list DELaySets the output voltage in voltage priority mode Sets the triggered output voltage in voltage priority modeESE n Common Commands SyntaxSRE n Output Programming ParametersCALibrateCURRent Calibration CommandsCALibrateCURRentLIMitPOSitive CALibrateCURRentLIMitNEGative CALibrateCURRentMEASureCALibrateDATA CALibratePASSwordCALibrateDATE CALibrateLEVelCALibrateSTATe CALibrateSAVECALibrateVOLTage FETChARRayCURRent? FETChARRayVOLTage? Measurement CommandsFETChCURRent? FETChVOLTage? Query SyntaxMEASureCURRent? MEASureVOLTage? MEASureARRayCURRent? MEASureARRayVOLTage?SENSeCURRentRANGe Enter values greater than 0.015ASENSeSWEepNPLCycles SENSeFUNCtionSENSeSWEepOFFSetPOINts Query Syntax SENSeFUNCtion? @channel listSENSeSWEepTINTerval SENSeSWEepPOINtsSENSeWINDow OUTPut Output CommandsOUTPutOSCProtect OUTPutPROTectionCLEarSOURceCURRentIMMediate SOURceCURRentTRIGgered Default SuffixSOURceCURRentLIMitIMMediate SOURceCURRentLIMitTRIGgered SOURceCURRentLIMitBWIDthSOURceDELayMODE SOURceDELaySOURceCURRentMODE SOURceCURRentLIMitMODE SOURceVOLTageALCBWIDth SOURceFUNCtionMODESOURceVOLTageIMMediate SOURceVOLTageTRIGgered Query Syntax SOURceFUNCMODE? @channel listSOURceVOLTagePROTectionSTATe SOURceVOLTageMODEQuery Syntax SOURceVOLTagePROTectionSTATe? @channel list NR10 orSTATusOPERationENABle Status CommandsBit Configuration of Operation Status Registers STATusOPERationEVENt?Parameters Preset Value STATusPRESetCommand Syntax STATusPRESet Parameters None Examples STATusOPERationNTR STATusOPERationPTRQuery Syntax STATusQUEStionableENABle? @channel list STATusQUEStionableENABleSTATusQUEStionableCONDition? STATusQUEStionableNTR STATusQUEStionablePTRSYSTemERRor? System CommandsSYSTemVERSion? ABORt Trigger CommandsINITiateNAME TRIGgerACQuireTRIGgerTRANsientSOURce TRIGgerACQuireSOURceTRIGgerTRANsient RST ValueCommand Syntax *CLS Parameters None Common CommandsParameters Power-On Value Examples Bit Configuration of Standard Event Status Enable RegisterExample Field InformationQuery Syntax *OPT? Returned Parameters Aard RST Settings Power-on ValueQuery Syntax TST? Returned Parameters NR1 Bit Configuration of Status Byte RegisterTable A-1. Specifications Table A-2 Supplemental Characteristics Safety Output Common ModeDimensions WeightFigure A-1. Output Impedance Graphs all outputs Equipment Required Measurement Techniques Performance & Verification TestsElectronic Load Test SetupProgramming Voltage Priority Tests Program CommandsVoltage Programming and Readback Accuracy Positive Current Limit +CLNegative Current Limit -CL Action Program CommandsCurrent Programming and Readback Accuracy Current Priority TestsVoltage Priority, Constant Voltage Load Effect Load Effect TestsVoltage Priority, -Current Limit Load Effect Test Voltage Priority, +Current Limit Load EffectCurrent 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 Voltage Priority Ripple and Noise Ripple and Noise TestsTransient Response Tests Voltage Priority, Transient Recovery TimeCurrent Priority Ripple and Noise Figure B-2. Transient Waveform Voltage Priority Current Priority Transient Recovery TimeFigure B-3. Transient Waveform Current Priority Performance Test Equipment FormPerformance Test Record Form Enable Calibration Mode Performing the Calibration ProcedurePositive Current Limit Calibration Negative Current Limit Calibration5A Range Current Measurement Calibration 100Saving the Calibration Constants 15mA Range Current Measurement Calibration101 Calibration Error Messages Changing the Calibration PasswordTable B-3. Gpib Calibration Error Messages Error MeaningTable C-1. Error Numbers Error Number List103 104 Error Messages105 Error Messages CPage 107 Line Voltage SelectionPage Mating Connector Part Numbers Earlier Version Output ConnectorsRear Panel Pinout Assignments CHG-2010-J01010-KEPPage 111 Index112 IndexScpi 113114 Canada Australia/New Zealand United States Latin AmericaEurope Asia Pacific JapanManual Updates