Agilent Technologies D, 66311B, 66309B, 66111A manual Example 2. Controller Using Basic, 168

Page 168

D – Example Programs

BASIC

The BASIC for controllers and BASIC for Windows both provide access to GPIB functions at the operating system level. This makes it unnecessary to have the header files required in front of DOS applications programs. Also, you do not have to be concerned about controller "hangups" as long as your program includes a timeout statement. Because the dc source can be programmed to 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 2. Controller Using BASIC

1000

!Dc source at stand-alone address = 706

1005

OPTION

BASE 1

 

1010

DIM Codes$[80],Response$[80],Mode$[32]

 

1015

!

 

 

1020

!Program dc source to CV mode with following voltage and current

1025

OUTPUT

706;"VOLTAGE MAX;CURRENT MAX"

 

1030

!

 

 

1035

!Query

dc source outputs and print to screen

1040

OUTPUT

706;"MEASURE:VOLTAGE?;CURRENT?"

!Query output levels

1045

ENTER 706;Vout,Iout

 

1050

PRINT "The output levels are ";Vout;" Volts and ";Iout" Amps"

1055

!

 

 

1060

!Program current triggered level to a value insufficient to maintain

1065

!supply within its CV operating characteristic

1070

OUTPUT

706;"CURR:TRIG MIN"

 

1075

!

 

 

1080

!Set operation status mask to detect mode change from CV to CC

1085

OUTPUT

706;"STAT:OPER:ENAB 1024;PTR 1024"

1090

!

 

 

1095

!Enable Status Byte OPER summary bit

 

1100

OUTPUT

706;"*SRE 128"

 

1105

!

 

 

1110

!Arm trigger circuit and send trigger to dc source

1115

OUTPUT

706;"INITIATE:SEQUENCE1;TRIGGER"

1130

!Poll for interrupt caused by change to CC mode and print to screen

1135

Response=SPOLL(706)

 

1140

IF NOT

BIT (Response,7) THEN GOTO 1130

!No OPER event to report

1145

OUTPUT

706;"STAT:OPER:EVEN?"

!Query status operation register

1150

ENTER 706;Oevent

!Read back event bit

1155

IF BIT(Oevent,10) THEN PRINT "Supply switched to CC mode."

1160

!

 

 

1165

!Clear

status

 

1170

OUTPUT

706;"*CLS"

 

1175

!

 

 

1180

!Disable output and save present state in location 2

1185

OUTPUT

706;"OUTPUT OFF;*SAV 2"

 

1190

END

 

 

168

Image 168
Contents USER’S Guide Warranty Information CertificationSafety Summary GeneralSafety Symbols Declaration EMCDeclaration of Conformity Acoustic Noise Information Printing HistoryTable of Contents Checkout Procedure Case of Trouble VXIplug&play Power Products Instrument DriversTypes of Scpi Commands DVM ConnectionsTypes of Scpi Messages Scpi Data FormatsIntroduction Programming the Output Triggering Output ChangesInhibit/Fault Indicator Calibration Commands 100Display Commands 103 Measurement Commands 104Output Commands 114 Status Commands 121System Commands 125 Trigger Commands 126Common Commands Additional CommandsSpecifications 143 Supplemental Characteristics 144 Performing the Calibration Procedure 154Error Number List 161 Introduction 165Basic Introduction 177Quick Reference Front Panel At a GlanceInstrument Configuration Use the front panel Address key to configure the interfaceRear Panel At a Glance Front Panel Number Entry Use the Function keys and Entry keys to enter a new valueFront Panel Annunciators Immediate Action KeysFront Panel Menus At a Glance Scpi Programming Commands At a Glance ABORt CALibrateUsing the front panel Using the programming interfaceProgramming the unit using Scpi COMPatibility commands Installing the VXIplug&play instrument driverSafety Considerations Options and AccessoriesOption DescriptionDescription and Model Differences AgilentAgilent 66309B Agilent 66309DCommon Capabilities Front Panel ControlsRemote Programming Output 1 Characteristic Dc Source Output 1 CharacteristicOutput 2 Characteristic Output 2 CharacteristicOption 521 Factory Settings Option 521 Description Agilent 66309B/D onlyOption 521 Relay Modes Page Installation and Operation Checklist Check the Operating Settings and ConditionsAdditional Agilent 66311/66309 Operating Settings Checks Check the Phone ConnectionsCleaning InspectionLocation Damage Packaging MaterialConnect the Power Cord Input ConnectionsBench Operation Rack MountingTurn the unit off before connecting any wires Output ConnectionsOutput Current RatingsRemote Sense Connections Remote Sense ConnectionsRemote Sense Connections with External Relays Load Regulation and Voltage Drop in the Remote Sense Leads Maintaining Stability while Remote SensingOpen Sense Lead Protection Local Sensing Message DescriptionOutput Compensation DVM Connections OVP ConsiderationsMeasuring Circuits that are Not Powered by the Main Output Measuring Circuits Not Powered by the Main OutputMeasuring Circuits Floating with Respect to the Main Output External Protection Connections 10. FLT/INH ExamplesFLT/INH DIGital I/O Connector Digital I/O ConnectionsComputer Connections Gpib InterfaceRS-232 Interface Pin Input/Output DescriptionCheckout Procedure Procedure Display ExplanationPress Output On/Off Press ProtectProcedure Display Explanation Selftest Error Messages Case of TroublePress Shift, Channel Enter Number 12, Enter Press Output On/OffRuntime Error Messages Power-On Selftest ErrorsRuntime Error Messages Line FuseIntroduction Front Panel DescriptionFront Panel Operation Display Command Function System KeysOFF Function Keys Immediate Action KeysScrolling Keysq Metering Keys Display MeasurementOutput Control Keys Over CurrentEntry Keys Entry KeysUsing the Front Panel Display Examples of Front Panel ProgrammingSelecting an output on Agilent 66309B/D units Selecting the DVM on Agilent 66311D/66309D unitsSet the output voltage Set the output current limitSet the output compensation Typecap HighEnable the output Set the output 2 voltageSet the output 2 current limit Keypad, press Enter Number, 7, EnterQuerying and Clearing Output Protection and Errors Disable Overvoltage Protection as followsQuery and Clear Errors as follows OvercurrentMaking Basic Front Panel Measurements Use the Meter menu for making front panel measurementsDefault Front Panel Measurement Parameters Making Enhanced Front Panel MeasurementsMaking DVM Measurements Agilent 66311D/66309D only Use the Meter menu for making DVM measurementsCurrrang Auto Currdet AcdcSetting the Gpib Address and Programming Language To configure the Ridfi mode of the port, proceed as followsTo configure the Digio mode of the port, proceed as follows Set the Gpib address as followsStoring and Recalling Instrument States External References Gpib ReferencesScpi References VXIplug&play Power Products Instrument Drivers Downloading and Installing the DriverSupported Applications System RequirementsAccessing Online Help Gpib Capabilities of the DC SourceRS-232 Capabilities of the DC Source Gpib AddressIntroduction to Scpi RS-232 Flow ControlBaud Rate Types of Scpi Commands Conventions Used in This GuideBoldface font Multiple Commands in a Message Including Common CommandsMoving Among Subsystems Using Queries Types of Scpi MessagesMessage Unit HeadersScpi Data Formats Scpi Command Completion Suffixes and MultipliersResponse Data Types Class Suffix Unit Unit with MultiplierUsing Device Clear Scpi Conformed CommandsNon-SCPI Commands Scpi Conformance InformationPower-on Initialization Programming the OutputEnabling the Output Output Voltage Output CurrentSetting the Voltage or Current Transient Levels Triggering Output ChangesScpi Triggering Nomenclature Output Trigger ModelEnabling the Output Trigger System Selecting the Output Trigger SourceGenerating Triggers Single TriggerMaking Basic Measurements Average MeasurementsControlling Measurement Samples Making Enhanced Measurements Window FunctionsCurrent Ranges and Measurement Detector RMS MeasurementsPulse Measurements Minimum and Maximum MeasurementsHigh/Low Measurements Making DVM Measurements Returning All Measurement Data From the Data BufferTriggered Measurements Measurement Trigger ModelSequence Form Alias SEQuence2 ACQuire Enabling the Measurement Trigger System Selecting the Measurement Trigger SourceSelecting the Sensing Function INTernalGenerating Measurement Triggers Single TriggersTrigacqcouncurr number or Trigacqcounvolt number Programming the Status Registers Pre-trigger and Post-trigger Data AcquisitionPower-On Conditions DC Source Status ModelBit Configurations of Status Registers Operation Status GroupPON Power On Bit Questionable Status GroupStandard Event Status Group Status Byte RegisterDetermining the Cause of a Service Interrupt Servicing Operation Status and Questionable Status EventsMSS Bit RQS BitInhibit/Fault Indicator Monitoring Both Phases of a Status TransitionRemote Inhibit RI Discrete Fault Indicator DFI Using the Inhibit/Fault Port as a Digital I/OBit Weight PinSubsystem Commands Subsystem Commands Syntax Language Dictionary Language Dictionary Common Commands Programming ParametersCalibration Commands CALibrateCURRentCALibrateCURRent2 CALibrateCURRentMEASureLOWRangeCALibratePASSword CALibrateDATACALibrateDATE CALibrateDVMCALibrateSAVE CALibrateSTATeCALibrateVOLTage CALibrateVOLTage2Display Commands DISPlayDISPlayCHANnel DISPlayMODEMeasurement Commands FORMat104 FORMatBORDer MEASureARRayCURRent? FETChARRayCURRent?MEASureARRayVOLTage? FETChARRayVOLTage? Query SyntaxMEASureCURRent? FETChCURRent? MEASureCURRent2?MEASureCURRentACDC? FETChCURRentACDC? NR3MEASureCURRentHIGH? FETChCURRentHIGH? MEASureCURRentLOW? FETChCURRentLOW?MEASureCURRentMAXimum? FETChCURRent MAXimum? 107MEASureCURRentMINimum? FETChCURRentMINimum? MEASureDVM? FETChDVM?MEASureDVMACDC? FETChDVMACDC? MEASureVOLTage? FETChVOLTage?MEASureVOLTage2 MEASureVOLTageACDC? FETChVOLTageACDC?MEASureVOLTageHIGH? FETChVOLTageHIGH? 109MEASureVOLTageLOW? FETChVOLTageLOW? MEASureVOLTageMAXimum? FETChVOLTageMAXimum?MEASureVOLTageMINimum? FETChVOLTageMINimum? 110SENSeCURRentDETector SENSeCURRentRANGeQuery Syntax SENSeCURRentDETector? 111SENSeFUNCtion SENSePROTectionSTATeSENSeSWEepOFFSetPOINts SENSeSWEepPOINtsSENSeSWEepTINTerval SENSeWINDowQuery Syntax SENSeSWEepTINTerval? Query Syntax SENSeWINDowTYPE?Output Commands INSTrumentCOUPleOUTPutSTATeOUTPut1 OUTPut1 2RELayMODEOUTPutDFI OUTPutDFISOURceOUTPutPONSTATe 115OUTPutPROTectionDELay OUTPutPROTectionCLEarOUTPutRIMODE OUTPutTYPESOURceCURRent SOURceCURRent2117 Command Syntax Parameters RST Value Examples SOURceCURRentPROTectionSTATeSOURceCURRentTRIGger SOURceCURRent2TRIGgerSOURceDIGitalDATA SOURceDIGitalFUNCtionSOURceVOLTage 119SOURceVOLTage2 SOURceVOLTagePROTectionSOURceVOLTagePROTectionSTATe 120Status Commands STATusPRESetSOURceVOLTageTRIGger SOURceVOLTage2TRIGgerSTATusOPERationENABle Bit Configuration of Operation Status RegistersSTATusOPERation? STATusOPERationCONDition?Parameters Preset Value Bit Configuration of Questionable Status RegistersSTATusOPERationNTR STATusOPERationPTR STATusQUEStionable?STATusQUEStionableENABle STATusQUEStionableCONDition?STATusQUEStionableNTR STATusQUEStionablePTR 124System Commands SYSTemERRor?SYSTemLANGuage SYSTemVERSion?Trigger Commands Related CommandsABORt INITiateSEQuence INITiateNAMETRIGger TRIGgerSOURce127 TRIGgerSEQuence2 TRIGgerACQuire TRIGgerSEQuence2COUNtCURRent TRIGgerACQuireCOUNtCURRentTRIGgerSEQuence2COUNtDVM TRIGgerACQuireCOUNtDVM 128TRIGgerSEQuence2COUNtVOLTage TRIGgerACQuireCOUNtVOLTage Unit129 TRIGgerSEQuence2HYSTeresisDVM TRIGgerACQuireHYSTeresisDVM 130TRIGgerSEQuence2LEVelCURRent TRIGgerACQuireLEVelCURRent TRIGgerSEQuence2LEVelDVM TRIGgerACQuireLEVelDVM131 TRIGgerSEQuence2LEVelVOLTage TRIGgerACQuireLEVelVOLTage TRIGgerSEQuence2SLOPeCURRent TRIGgerACQuireSLOPeCURRentReturned Parameters 132TRIGgerSEQuence2SLOPeDVM TRIGgerACQuireSLOPeDVM TRIGgerSEQuence2SLOPeVOLTage TRIGgerACQuireSLOPeVOLTage133 TRIGgerSEQuence2SOURce TRIGgerACQuireSOURce TRIGgerSEQuence1DEFine TRIGgerSEQuence2DEFine134 Common Commands Command Syntax *CLS Parameters NoneBit Configuration of Standard Event Status Enable Register 135Field Information Example136 Query Syntax *OPT? Returned Parameters Aard RCL NRfParameters Example 137Command Syntax *SAV NRf Example *SAV Related Commands *RCL *RST 138RST Settings Power-on Value Bit Configuration of Status Byte RegisterQuery Syntax *STB? 139TRG Query Syntax TST? Returned Parameters NR1Additional Commands CURRentPROTectionTRIPped? VOLTageLIMitHIGH?VOLTageLIMitLOW? VOLTagePROTectionTRIPped?Specifications Table A-1. Performance Specifications143 Supplemental Characteristics Table A-2. Supplemental Characteristics144 Agilent 66309B/D145 Table A-4. Agilent 66309B/D Option 521 Characteristics 146Test Setup Equipment Required147 Table B-1. Equipment RequiredPerforming the Verification Tests Turn-On Checkout148 Voltage Programming and Measurement Accuracy Current Programming and Measurement AccuracyOutput terminals on both outputs 1 Steps 6-10 apply to Agilent 66309B/D output 2 onlySteps 7-11 apply to Agilent 66309B/D output 2 only Current Sink Measurement150 DVM Measurement Accuracy 151152 153 DVM Voltage Measurement Agilent 66309D onlyPerforming the Calibration Procedure Front Panel Calibration Menu154 Front Panel Calibration Procedure Check the Language SettingEnable Calibration Mode Voltage Programming and Measurement CalibrationSteps 11-16 apply to Agilent 66309B/D output 2 only Overvoltage Protection CalibrationCurrent Programming and High-Range Measurement Calibration 156Steps 27-32 apply to Agilent 66309B/D output 2 only 157Calcurrmeas AC Restore the Language Setting DVM Calibration applies to Agilent 66311D, 66309D onlySaving the Calibration Constants 158Calibration Error Messages Changing the Calibration PasswordTable B-3. Gpib Calibration Error Messages Calibration Over the GpibPage Error Number List Table C-1. Error Numbers161 Error Messages 162Error Messages C 163Page Assigning the Gpib Address in Programs National Instruments Gpib Driver165 Error Handling Example 1. National Instruments Interface Example166 167 Example Programs DExample 2. Controller Using Basic 168Example 3. Current Pulse Measurement Using Basic 169170 171 172 Example 5. DFI Example Using Basic DFI Programming Example173 Page Configure the Power Transformer Install the Correct Line FuseOpen the Unit Close the UnitFigure E-1, Power Transformer AC Input Connections 176Command Setting Table F-1. COMPatibility Power-on Settings177 Compatibility Command Similar Scpi CommandTable F-2. COMPatibility Commands 178179 Error NumberError String Description/Explanation/ExamplesTable F-3. COMPatibility Errors 180Table F-5. Bit Configuration of Serial Poll Register 181Page Index 183Index 184185 OVERTEMPERATURE, 47 OVERVOLTAGE, 47 OVLD, 47, 60, 61 186Subsystem commands syntax, 96 suffixes 187188 Type CAPUnited States Latin America Canada Australia/New ZealandEurope Asia Pacific JapanManual Updates
Related manuals
Manual 8 pages 56.17 Kb

66111A, 66309B, 66311B, D specifications

Agilent Technologies D,c,83440b is an advanced electronic measurement solution designed for engineers and scientists who require precise and reliable performance in their testing environments. This modular test system offers a comprehensive suite of features that cater to a wide range of applications, from high-frequency testing to complex signal analysis.

One of the main features of the D,c,83440b is its impressive frequency range, allowing users to conduct tests across a wide spectrum of signals. The system is capable of handling frequencies up to 26.5 GHz, making it ideal for RF and microwave applications. This broad range ensures that users can work with a variety of devices, including communication systems, radar, and satellite technology.

In addition to its frequency capabilities, Agilent Technologies has engineered the D,c,83440b with exceptional dynamic range and low noise figures. This ensures that even the smallest signals can be accurately measured, allowing for greater precision in testing. The full spectrum analysis feature enables users to capture transient events and analyze them in real-time, which is crucial for troubleshooting and performance evaluations.

The D,c,83440b is built on a modular platform, allowing users to customize their systems according to specific testing needs. This modularity not only enhances flexibility but also simplifies maintenance and upgrades. Users can easily swap out different modules without the need for extensive system reconfiguration, which can significantly reduce downtime in testing environments.

Another standout characteristic of the D,c,83440b is its user-friendly interface. With a large, high-resolution display and intuitive controls, engineers can quickly navigate through settings and data, streamlining the testing process. This ease of use is complemented by powerful software solutions that can automate test sequences, aiding in efficiency and accuracy.

The integration of advanced digital signal processing technologies further enhances the capabilities of the D,c,83440b. These technologies enable more sophisticated measurements and improved signal integrity, which is essential for modern communication systems.

In summary, the Agilent Technologies D,c,83440b is a multifaceted electronic measurement solution that boasts a wide frequency range, excellent dynamic range, modular design, and user-friendly interface. This combination of features makes it suitable for various applications, ensuring that engineers and scientists have the tools they need to succeed in their testing and measurement endeavors.