Agilent Technologies 6834B, 6814B System Considerations, Assigning the Gpib Address in Programs

Page 24

2 - Introduction to Programming

System Considerations

The remainder of this chapter addresses some system issues concerning programming. These are ac source addressing and the use of the following types of GPIB system interfaces:

υHP Vectra PC controller with Agilent 82335A GPIB Interface Command Library

υIBM PC controller with National Instruments GPIB-PCII Interface/Handler

υAgilent controller with Agilent BASIC Language System

Assigning the GPIB Address in Programs

The ac source address cannot be set remotely. It must be set from the front panel. Once the address is set, you can assign it inside programs. The following examples assume that the GPIB select code is 7, and the ac source will be assigned to the variable ACS.

1070

ACS=706

! Agilent 82335A Interface

1070

ASSIGN @ACS TO 706

! Agilent 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 GPIB documentation).

Types of DOS Drivers

The Agilent 82335A and National Instruments GPIB are two popular DOS drivers. Each is briefly described here. See the software documentation supplied with the driver for more details.

Agilent 82335A Driver

For GW-BASIC programming, the GPIB library is implemented as a series of subroutine calls. To access these subroutines, your application program must include the header file SETUP.BAS, 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 GPIB 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 GPIB 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).

Your application program will not include the ac source symbolic name and GPIB 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 instrument 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 handler that reads IBERR% to extract the specific error.

24

Image 24
Contents Programming Guide Safety Summary Printing HistoryTable of Contents Language Dictionary System ConsiderationsMeasurement Subsystem Frequency Source Subsystem Function Source Subsystem Voltage Programming Examples 121Scpi Command Tree Error MessagesScpi Conformance Information Elgar Model 9012 CompatibilityIEC Mode Command Summary 167Index 181About this Guide Earlier AC Source ModelsDocumentation Summary Information about this Current modelAgilent VXIplug&play Power Products Instrument Drivers External ReferencesScpi References Gpib ReferencesDownloading and Installing the Driver Accessing Online HelpSystem Requirements Page Gpib Capabilities of the AC Source RS-232 Capabilities of the AC SourceGpib Address RS-232 Data FormatRS-232 Troubleshooting RS-232 Programming ExampleTypes of Scpi Commands Introduction to ScpiConventions Used in This Guide Types of Scpi MessagesScpi Command Tree Root LevelActive Header Path Effect of Optional Headers Moving Among SubsystemsIncluding Common Commands Using QueriesCoupled Commands Structure of a Scpi MessageCombining Message Units HeadersQuery Indicator Message Unit SeparatorRoot Specifier Message TerminatorScpi Data Formats Numerical Data FormatsSuffixes and Multipliers Character DataSystem Considerations Assigning the Gpib Address in ProgramsTypes of DOS Drivers Agilent 82335A DriverError Handling Agilent Basic ControllersPage Language Dictionary IntroductionSubsystem Commands SubsystemCalibration Subsystem Commands Subsystem SyntaxCALibrateCURRentAC CalcurracCALibrateCURRentMEASure CALibrateDATACALibrateIMPedance CALibrateLEVelCALibratePASSword CALibratePWMFREQuencyCALibratePWMRAMP CALibrateSAVECALibrateSTATe CALibrateVOLTageACCALibrateVOLTageDC Calstat 1,6812 Calstat OFFCALibrateVOLTageOFFSet CALibrateVOLTagePROTectionCALibrateVOLTageRTIMe Display Subsystem Commands DISPlayDISPlayMODE DISPlayTEXTInstrument Subsystem INSTrumentCOUPleInstcoup ALL INSTrumentNSELect INSTrumentSELect Measurement Subsystem Arrays MEASureARRayCURRent? FETChARRayCURRent?MEASureARRayCURRentHARMonic? FETChARRayCURRentHARMonic? MEASureARRayCURRentNEUTral? FETChARRayCURRentNEUTral? MEASureARRayVOLTage? FETChARRayVOLTage? MEASureARRayVOLTageHARMonic? FETChARRayVOLTageHARMonic? Measurement Subsystem Current MEASureCURRent? FETChCURRent?MEASureCURRentAC? FETChCURRentAC? MEASureCURRentACDC? FETChCURRentACDC?MEASureCURRentCREStfactor? FETChCURRentCREStfactor? MEASureCURRentHARMonic? FETChCURRentHARMonic?Parameters Examples MEASureCURRentHARMonicPHASe? FETChCURRentHARMonicPHASe? MEASureCURRentHARMonicTHD? FETChCURRentHARMonicTHD?MEASureCURRentNEUTral? FETChCURRentNEUTral? MEASureCURRentNEUTralAC? FETChCURRentNEUTralAC? MEASureCURRentNEUTralACDC? FETChCURRentNEUTralACDC?MEASureCURRentNEUTralHARMonic? FETChCURRentNEUTralHARMonic? MEASCURRNEUTHARMPHAS? Measurement Subsystem Frequency MEASureFREQuency? FETChFREQuency?Measurement Subsystem Power MEASurePOWer? FETChPOWer?MEASurePOWerAC? FETChPOWerAC? MEASurePOWerACAPParent? FETChPOWerACAPParent? MEASurePOWerACREACtive? FETChPOWerACREACtive?MEASurePOWerACPFACtor? FETChPOWerACPFACtor? MEASurePOWerACTOTal? FETChPOWerACTOTal? Measurement Subsystem Voltage MEASureVOLTage? FETChVOLTage?MEASureVOLTageAC? FETChVOLTageAC? MEASureVOLTageACDC? FETChVOLTageACDC? MEASureVOLTageHARMonic? FETChVOLTageHARMonic?MEASureVOLTageHARMonicPHASe? FETChVOLTageHARMonicPHASe? MEASureVOLTageHARMonicTHD? FETChVOLTageHARMonicTHD?Command Syntax Output SubsystemOUTPut OUTPutCOUPling OUTPutDFIOUTPutDFISOURce Outpcoup DCOUTPutIMPedance OUTPutIMPedanceREALOUTPutIMPedanceREACtive OutpimprealOUTPutPROTectionDELay OUTPutPONSTATeOUTPutPROTectionCLEar Outpponstat RSTOUTPutRIMODE OUTPutTTLTrgOUTPutTTLTrgSOURce OutpttltSense Subsystem SENSeCURRentACDCRANGeSENSeSWEepOFFSetPOINts SENSeSWEepTINTervalSENSeWINDow Senswind KbesSource Subsystem Current CURRentCURRentPEAK CURRentPEAKMODECurrpeakmode FIX CURRentPEAKTRIGgered CURRentPROTectionSTATeSource Subsystem Frequency FREQuencyFREQuencyMODE FREQuencySLEW FREQuencySLEWMODEFREQencySLEWTRIGgered FREQuencyTRIGgered Source Subsystem Function FUNCtionFUNCtionMODE FUNCtionTRIGgeredFuncmode FIX Query Syntax SOURceFUNCtionSHAPeMODE?FUNCtionCSINusoid Funccsin Funccsin 10 THDQuery Syntax SOURceFUNCtionSHAPeCSINusoid? Source Subsystem List ListRelated Commands Listcurr LISTCOUNtLISTCURRent LISTCURRentPOINts?Related Commands Listdwel LISTDWELlLISTDWELlPOINts? LISTFREQuencyLISTPHASe LISTFREQuencyPOINts?LISTFREQuencySLEW LISTFREQuencySLEWPOINts?LISTPHASePOINts? Related Commands ListphasRelated Commands Listshap LISTSHAPeListstep LISTTTLTrgLISTTTLTrgPOINts? Liststep OnceLISTVOLTage LISTVOLTagePOINts?LISTVOLTageSLEW Query Syntax SOURceLISTVOLTageLEVelPOINTs?LISTVOLTageSLEWPOINts? LISTVOLTageOFFSetLISTVOLTageOFFSetPOINts? LISTVOLTSLEWPOIN?LISTVOLTageOFFSetSLEW LISTVOLTageOFFSetSLEWPOINts?Query Syntax SOURceLISTVOLTageOFFSetSLEWPOINTs? Source Subsystem Phase PHASeSubsystem Syntax PHASeMODE PHASeTRIGgeredSource Subsystem Pulse PULSeCOUNtPULSeDCYCle PULSeHOLD Pulshold DcycPULSePERiod PULSeWIDThSource Subsystem Voltage VOLTage VOLTageTRIGgeredVolt VOLTageMODE VOLTageOFFSetVOLTageOFFSetMODE VOLTageOFFSetTRIGgeredVoltoffsmode FIX Query Syntax SOURceVOLTageOFFSetMODE?VOLTageOFFSetSLEW VOLTageOFFSetSLEWMODEVoltoffsslewmode Step Query Syntax SOURceVOLTageOFFSetSLEWMODE?VOLTageOFFSetSLEWTRIGgered VOLTagePROTectionVOLTagePROTectionSTATe VoltprotstatAgilent 6814B, 6834B, 6843A Only Phase Selectable VOLTageRANGeVOLTageSENSeDETector VOLTageALCDETector RTIMeVOLTageSENSeSOURce VOLTageALCSOURce VOLTageSLEWINTernal EXTernal VOLTageSLEWMODE VOLTageSLEWTRIGgeredVoltslewmode Step Query Syntax SOURceVOLTageSLEWMODE?STATusPRESet Status SubsystemBit Configuration of Operation Status Registers STATusOPERationENABleSTATusOPERation? STATusOPERationCONDition?STATusOPERationNTRansition STATusOPERationPTRansition StatoperntrBit Configuration of Questionable Status Registers STATusQUEStionable?STATusQUEStionableCONDition? STATQUESEVEN?STATusQUEStionableENABle Query Syntax STATusQUEStionableENABle?NR1 register value Related Commands STATusQUEStionableNTRansition STATusQUEStionablePTRansitionAgilent 6834B Only Phase Selectable STATusQUEStionableINSTrumentISUMmary?STATusQUEStionableINSTrumentISUMmaryENABle STATusQUEStionableINSTrumentISUMmaryCONDition?STATQUESINSTISUMCOND? StatquesinstisumenabStatquesinstisumntr 101System Commands SYSTemCONFigureSystconf Norm SYSTemCONFigureNOUTputs SYSTemERRor?SYSTemVERSion? SystconfnoutSYSTemLANGuage SYSTemLOCalSYSTemREMote SYSTemRWLockCommand Syntax Parameters Examples Query Syntax Trace SubsystemTRACe DataCommand Syntax Parameters Examples Related Commands TRACeCATalog? DATACATalog?TRACeDEFine DATADEFine TRACeDELete DATADELeteTrigger Subsystem 107ABORt INITiateSEQuence INITiateNAMEAbor INITSEQ1 Initname ACQTRIGgerDELay INITiateCONTinuousSEQuence INITiateCONTinuousNAMETRIGger 109IMMediate PHASe TRIGgerSOURceTRIGgerSEQuence2SOURce TRIGgerSYNChronizeSOURce Gpib device, *TRG, or GET Group Execute TriggerTRIGgerSEQuence2PHASe TRIGgerSYNCHronizePHASe Command Syntax Parameters RST Value Examples Query SyntaxTRIGgerSEQuence3 TRIGgerACQuire 111TRIGgerSEQuence3SOURce TRIGgerACQuireSOURce 112Common Commands Common Commands Syntax113 Bit Configuration of Standard Event Status Enable Register Command Syntax *CLS Parameters NoneCLS ESEESR? IDN?OPC Field InformationOPT? PSCRCL RST Command Syntax SAV NRf Parameters Example SAVSRE NR1 register binary valueBit Configuration of Status Byte Register STB?TRG TST?WAI Power-on Initialization Programming the OutputEnabling the Output OUTPut onAC Voltage and Frequency Maximum VoltageVoltage Ranges Agilent 6814B/6834B/6843A only 122Voltage and Frequency Slew Rates Waveform ShapesIndividual Phases Agilent 6834B only Clipped WaveformUser-Defined Waveform 124Selecting a Phase Programming the Output PhaseCurrent Limit 125DC Output Agilent 6811B/6812B/6813B only Peak Current Limit Agilent 6811B/6812B/6813B only126 VOLTageLEVel, VOLTageOFFSet, and FUNCtionSHAPe VOLTageOFFSet 300VOLTageVOLTageRANGe CURRent 127Programming Output Transients VOLTageRANGe CURRent 10VOLTageRANGe128 Transient System Model Model of Transient System 129Step and Pulse Transients Step Example130 List Transients Step131 Triggering Output Changes Scpi Triggering NomenclatureLISTCOUNt Sequence Form AliasOutput Trigger System Model Model of Output Triggers 133Initiating the Output Trigger System Selecting the Output Trigger SourceABORt *RST *RCL TRIGgerSEQuence1SOURce BUS TRIGgerTRANsientSOURce BUSSpecifying a Trigger Delay Synchronizing Output Changes to a Reference Phase Angle135 Generating Output Triggers Specifying a Dwell Time for Each List PointSingle Triggers Continuous TriggersMaking Measurements Voltage and Current Measurements137 Power Measurements Simultaneous Output Phase Measurements Agilent 6834B onlyHarmonic Measurements 138Triggering Measurements Returning Voltage and Current Data From the Data BufferMeasurement Trigger System Model Initiating the Measurement Trigger System Selecting the Measurement Trigger SourceINITiateIMMediateSEQuence3 or INITiateIMMediateNAME ACQuire 140Generating Measurement Triggers Varying the Voltage and Current Sampling RatePre-event and Post-event Triggering 141Power-On Conditions Programming the Status RegistersOperation Status Group Bit Signal Status Byte and Service Request Enable RegistersStandard Event Status Group 143Ac Source Status Model 144 Questionable Status Group Questionable Instrument Isummary Status Group145 Command Action PON Power On BitStandard Event Status Group 146Status Byte Register ExamplesProgramming the Trigger In and Trigger Out BNC Connectors Monitoring Both Phases of a Status TransitionTrigger In BNC Servicing Questionable Status EventsRemote Inhibit and Discrete Fault Indicator Trigger Out BNC149 Scpi Command Completion Discrete Fault Indicator DFIRemote Inhibit RI 150Command Syntax 151Scpi Command Tree 152Scpi Command Tree a 153Page Scpi Confirmed Commands 155Non Scpi Commands 156Error Number List Error #157 158 159 Page Elgar Model 9012 Plug-in Programmer Compatibility Main Board W1 Jumper Option EmulationSyntax Compatibility 161Power-on State Command DescriptionStatus Model ByteProtection Front Panel OperationSystem Keys Function KeysE9012 Language Command Summary Entry KeysTrigger Control key functions Device Clear Volts n Curl n Freq n RNG 0 Rngf 0 1Drop n 165Page Using the SENSeCURRentACDCRANGe command 167Command Syntax 168CALCulateINTegralTIME CALCulateSMOothing169 CALCulateLIMitUPPer Vss delta Dmax limitDc limit Dt tlimit Dt limit 170FORMat 171FORMatBORDer 172MEASureARRayCURRentHARMonic? MEASureARRayVOLTageFLUCtuationsALL? 174Point Pst array 175MEASureARRayVOLTageFLUCtuationsFLICker? 176MEASureARRayVOLTageFLUCtuationsPST? 177SENSeCURRentPREFerence 178Slew Operation MEASureARRayCURRent 179Page Index 181Index 182183 184 Scpi List Step185 QUEStionable INSTrument ISUMmary?Agilent Sales and Support Offices Manual Updates
Related manuals
Manual 91 pages 25.18 Kb Manual 20 pages 27.01 Kb Manual 3 pages 27.44 Kb Manual 79 pages 6.57 Kb

6812B, 6811B, 6813B, 6834B, 6843A specifications

Agilent Technologies, a leader in electronic test and measurement equipment, offers a range of powerful signal sources including the 6843A, 6834B, 6814B, 6813B, and 6811B models. These instruments are designed to support various applications in research, development, and manufacturing, providing precise signal generation capabilities.

The Agilent 6843A is a versatile signal generator known for its exceptional frequency range and modulation capabilities. It supports an extensive bandwidth, making it ideal for applications that require high-frequency signal generation. With its superior phase noise performance, the 6843A is an excellent choice for radar, wireless communications, and electronic warfare applications. The instrument features an intuitive user interface, allowing engineers to set parameters quickly and efficiently.

Next, the Agilent 6834B offers exceptional performance characteristics, including high output power and low distortion. This signal generator is particularly noted for its ability to produce complex modulation formats, making it suitable for testing advanced wireless communication systems. With a reliable and stable output, the 6834B ensures accurate and repeatable measurements, which is vital for thorough testing processes.

The 6814B model stands out for its dual-channel capabilities, allowing users to generate simultaneous signals for testing multiple components or systems. This feature significantly enhances testing efficiency and flexibility for engineers. With built-in arbitrary waveform functionality, users can create custom waveforms, making the 6814B suitable for a wide range of applications including device characterization and signal processing research.

For those seeking a more compact solution, the Agilent 6813B provides essential signal generation features without compromising on performance. It is designed for a variety of applications across telecommunications and consumer electronics, featuring a straightforward interface and robust performance metrics.

Lastly, the 6811B is an entry-level yet capable model that supports a broad spectrum of testing needs. Perfect for educational and laboratory environments, it provides essential functionalities required for effective signal generation and analysis.

Overall, Agilent Technologies' 6843A, 6834B, 6814B, 6813B, and 6811B signal generators offer an array of features and technologies that cater to various application needs. Their precision, reliability, and user-oriented designs position them as invaluable assets in any testing environment, ensuring engineers can carry out their work with confidence and accuracy.