Agilent Technologies 6614C, 6634B Types of Scpi Messages, Moving Among Subsystems, Using Queries

Page 14

2 - Introduction to Programming

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 beginning 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;OUTPut ON

Using Queries

Observe the following precautions with queries:

Set up the proper number of variables for the returned data.

Read back all the results of a query before sending another command to the dc source. Otherwise a Query Interrupted error will occur and the unreturned data will be lost.

Types of SCPI Messages

There are two types of SCPI messages, program and response.

A program message consists of one or more properly formatted SCPI commands sent from the controller to the dc source. The message, which may be sent at any time, requests the dc source to perform some action.

A response message consists of data in a specific SCPI format sent from the dc source to the controller. The dc source sends the message only when commanded by a program message called a "query."

The following figure illustrates SCPI message structure:

14

Image 14
Contents Programming Guide Safety Guidelines Printing HistoryTable of Contents Language Dictionary Internally Triggered MeasurementsOutput Commands Compatibility Language Error MessagesScpi Conformance Information Example ProgramsAbout this Guide Documentation SummaryScpi References External ReferencesGpib References Supported Applications VXIplug&play Power Products Instrument DriversDownloading and Installing the Driver System RequirementsRS-232 Capabilities of the DC Source Accessing Online HelpGpib Capabilities of the DC Source Gpib AddressBaud Rate RS-232 Flow ControlRS-232 Programming Example Conventions Used in This Guide RS-232 TroubleshootingIntroduction to Scpi Boldface fontTypes of Scpi Commands Multiple Commands in a MessageTypes of Scpi Messages Including Common CommandsUsing Queries Moving Among SubsystemsHeaders Query IndicatorMessage Unit Message Unit SeparatorSuffixes and Multipliers Scpi Data FormatsNumerical Data Formats Response Data TypesScpi Command Completion Using Device ClearPage Programming the Output Power-on InitializationIntroduction Enabling the OutputMaximum Voltage Output VoltageOutput Current Maximum CurrentScpi Triggering Nomenclature Setting the Voltage or Current Trigger LevelsTriggering Output Changes Output Trigger System ModelInitiating the Output Trigger System Generating TriggersDC Measurements Making MeasurementsVoltage and Current Measurements RMS Measurements Agilent 66312A, 66332A Only Current RangesSequence Form Alias SEQuence2 ACQuire Internally Triggered MeasurementsMeasurement Trigger System Model Generating Measurement Triggers Agilent 66312A, 66332A Only BUSTrigger Commands Used to Measure Output Pulses Pulse Measurement Queries Measuring Output Pulses Agilent 66312A, 66332A OnlyCurrent Detector Multiple Measurements Agilent 66312A, 66332A Only Controlling Measurement SamplesVarying the Voltage or Current Sampling Rate Pulse Measurement Example Agilent 66312A, 66332A only Pre-event and Post-event TriggeringOption Base Power-On Conditions Programming the Status RegistersOperation Status Group Status Byte Register Questionable Status GroupStandard Event Status Group MSS Bit Determining the Cause of a Service InterruptServicing Operation Status and Questionable Status Events RQS BitDiscrete Fault Indicator DFI Inhibit/Fault IndicatorMonitoring Both Phases of a Status Transition Remote Inhibit RIDFI Programming Example Using the Inhibit/Fault Port as a Digital I/OBit Weight PinPage Subsystem Commands Language DictionarySubsystem Commands Syntax DFI ALCSubsystem Commands Syntax Programming Parameters Common CommandsCommon Commands Syntax Output Programming ParametersCALibrateCURRentNEGative Calibration CommandsCALibrateCURRent CALibrateCURRentMEASureLOWRangeCALibrateDATA CALibratePASSwordCommand Syntax CALibrateSAVE Parameters None Examples CALibrateLEVelCALibrateVOLTagePROTection CALibrateSTATeCALibrateVOLTage Query Syntax CALibrateSTATe?MEASureARRayVOLTage? FETChARRayVOLTage? Measurement CommandsMEASureARRayCURRent? FETChARRayCURRent? Query SyntaxMEASureCURRentHIGH? FETChCURRentHIGH? MEASureCURRent? FETChCURRent?MEASureCURRentACDC? FETChCURRentACDC? FETChCURRent? applies to Agilent 66312A, 66332A OnlyMEASureCURRentMINimum? FETChCURRentMINimum? MEASureCURRentLOW? FETChCURRentLOW?MEASureCURRentMAXimum? FETChCURRent MAXimum? MEASureVOLTageHIGH? FETChVOLTageHIGH? MEASureVOLTage? FETChVOLTage?MEASureVOLTageACDC? FETChVOLTageACDC? FETChVOLTage? applies to Agilent 66312A, 66332A OnlyMEASureVOLTageMINimum? FETChVOLTageMINimum? MEASureVOLTageLOW? FETChVOLTageLOW?MEASureVOLTageMAXimum? FETChVOLTageMAXimum? Unit a amperes *RST Value MAX high range SENSeCURRentRANGeSENSeCURRentDETector Returned Parameters NR3SENSeSWEepPOINts SENSeFUNCtionSENSeSWEepOFFSetPOINts SENSeSWEepTINTervalRECTangular SENSeWINDowHANNing Returned Parameters CRDOUTPutDFI Output CommandsOUTPut OUTPutDFISOURceOUTPutPROTectionCLEar OUTPutPROTectionDELayOUTPutPONSTATe OUTPutRIMODE OUTPutRELayOUTPutRELayPOLarity Query Syntax OUTPputRELayPOLarity?SOURceCURRentTRIGger Default SuffixSOURceCURRent SOURceCURRentPROTectionSTATeSOURceVOLTage SOURceDIGitalDATASOURceDIGitalFUNCtion Query Syntax SOURceDIGitalDATA?SOURceVOLTagePROTection SOURceVOLTageALCBANDwidth? SOURceVOLTageALCBWIDth?SOURceVOLTageTRIGger Agilent 66332A, 6631B, 6632B, 6633B and 6634B OnlySTATusOPERation? Status CommandsSTATusPRESet STATusOPERationCONDition?Parameters Preset Value STATusOPERationENABleQuery Syntax STATusOPERationENABle? STATusOPERationNTR STATusOPERationPTRSTATusQUEStionableCONDition? STATusQUEStionableENABleSTATusQUEStionable? CLS Command Syntax *CLS Parameters NoneSTATusQUEStionableNTR STATusQUEStionablePTR STATQUESNTR?STATQUESPTR?ESR? Bit Configuration of Standard Event Status Enable RegisterESE OPCPSC on PSCSRE ExampleWAI Bit Configuration of Status Byte RegisterSTB? NR1 register binary valueDISPlayMODE System CommandsDISPlay DISPlayTEXTSYSTemVERSion? SYSTemERRor?SYSTemLANGuage Parameters none Returned Parameters NR2SYSTemRWLock SYSTemLOCalSYSTemREMote IDN?RCL Command Syntax RCL NRf Parameters ExampleOPT? RSTSAV RST SettingsCommand Syntax SAV NRf Parameters Example TST?INITiateSEQuence INITiateNAME Trigger CommandsABORt INITiateCONTinuousSEQuence1 INITiateCONTinuousNAMETRIGgerSEQuence2 TRIGgerACQuire TRIGgerTRIGgerSOURce Abor Currtrig Init *TRG VolttrigParameters RST Value Examples TRIGgerSEQuence2COUNtCURRent TRIGgerACQuireCOUNtCURRentTRIGgerSEQuence2COUNtVOLTage TRIGgerACQuireCOUNtVOLTage TRIGSEQ2COUNCURR 5 TrigacqcouncurrTRIGSEQ2HYSTVOLT TRIGSEQ2LEVCURR TRIGSEQ2HYSTCURR TRIGSEQ2LEVVOLTTRIGSEQ2LEVVOLT TRIGSEQ2HYSTCURR TRIGgerSEQuence2LEVelCURRent TRIGgerACQuireLEVelCURRentTRIGgerSEQuence2LEVelVOLTage TRIGgerACQuireLEVelVOLTage TRIGSEQ2LEVCURR TRIGSEQ2HYSTVOLTTRIGSEQ2SLOPVOLT TRIGgerSEQuence2SLOPeCURRent TRIGgerACQuireSLOPeCURRentTRIGgerSEQuence2SLOPeVOLTage TRIGgerACQuireSLOPeVOLTage TRIGgerSEQuence1DEFine TRIGgerSEQuence2DEFine Parameters None Related CommandsTRIGgerSEQuence2SOURce TRIGgerACQuireSOURce TRGPage Scpi Version Scpi Confirmed CommandsNon-SCPI Commands Page Table B-1. COMPatibility Power-on Settings Command Command SettingSimilar Scpi Command Table B-2. COMPatibility Commands CompatibilityERR? FAULT? ID? IOUT? ASTS? CLRCompatibility Command Table B-2. COMPatibility Commands Description Similar ScpiThese commands determine the conditions that will set bits Table B-2. COMPatibility CommandsCompatibility Description Command ErrorFAU Norm Fast INH ERR UNR +CCRQS ERR RDY Page Error Number List Bit Set Error Number Error Code Error TypeTable C-1. Error Numbers Error Number Page Agilent 82335A Driver Assigning the Gpib Address in ProgramsTypes of DOS Drivers National Instruments Gpib DriverError Handling Basic ControllersExample Programs D Example 2. IBM Controller Using National Interface Call IBCLRPS%CODES$=*CLS Example 3. Controller Using Basic Option BaseIndex Index 100101 Scpi102 Manual Updates
Related manuals
Manual 82 pages 25.5 Kb Manual 83 pages 60.43 Kb

6613C, 66312A, 6631B, 6611C, 6614C specifications

Agilent Technologies, a leader in electronic test and measurement solutions, offers a range of power supplies designed to meet various application needs. Notable models include the 6632B, 6634B, 66332A, 6633B, and 6612C. Each of these units provides unique features and technologies that cater to researchers, engineers, and technicians in the industry.

The Agilent 6632B is a single-output DC power supply that delivers up to 30V and 3A. It is known for its excellent load regulation and low noise, making it ideal for sensitive electronic testing. The model includes built-in voltage and current measurement capabilities, allowing users to monitor output conditions in real time. The 6632B is commonly used in laboratory environments, educational institutions, and manufacturing lines.

Moving to the 6634B, this model offers dual-output capabilities with a maximum output of 30V and 6A. This versatility enables simultaneous powering of two different devices or circuit sections. It also features parallel and series operation options, allowing users to create a custom power supply configuration for specific applications. With a programmable interface, the 6634B simplifies test automation, ensuring efficiency in extensive testing scenarios.

The Agilent 66332A stands out with its precision and high performance. This power supply provides three outputs—two programmable and one fixed—yielding flexible power configurations. Its intuitive user interface allows easy adjustment of voltage and current settings. The device is equipped with extensive protection features to safeguard both the power supply and the connected load against faults. It is an excellent choice for complex testing setups that require reliable power.

The 6633B model offers a high-performance power supply with dual outputs, similar to the 6634B but with enhanced specifications. It can provide up to 40V and 2A per channel, delivering precision for demanding applications. This model is particularly suited for industries focused on high-reliability applications, such as telecommunications and aerospace.

Lastly, the Agilent 6612C is a compact and lightweight power supply providing single-output up to 60V and 2A. This model is designed for simplicity and ease of use, making it an excellent choice for portable applications. The 6612C’s unique characteristics include a compact design and user-friendly controls, which facilitate operation in field settings.

In summary, Agilent Technologies’ power supply models—6632B, 6634B, 66332A, 6633B, and 6612C—offer an array of features that cater to a wide range of testing and research needs, ensuring reliable power delivery in various contexts.