Home
SCPI Command Reference
Contents
1. AT Oo cei J E i al O Figure 1 5 Measuring the Differential Output across both Terminals 1 10 Getting Started Basic Operation Offset DAC A precision DAC allows the Agilent E1446A to provide DC offset voltage levels The DAC input is acomplementary offset binary code The full scale output provides approximately 10V into 50Q or 754 load or approximately 20V into high impedance Basic Operation Getting Started 1 11 1 12 Getting Started Basic Operation Chapter 2 Programming the Agilent E1446A Chapter Contents This chapter shows you how to program the Agilent E1446A using SCPI Commands The programming examples found in the chapter are written in BASIC The main sections of the chapter are e Instrument and Programming Languages 2 1 e Introductory Programs 000 eee eee ooo 2 5 e Example Programs 0 cee eee eee eee 2 8 e Generating and Amplifying Sine Waves 2 9 e Setting the Input Impedance 2 14 e Setting DC Voltage OffsetS oooooooommom o o 2 20 e Using the Differential small signal Outputs 2 26 e Summing Two Signals 0 00sec eee eee 2 31 Instrument and Programming Languages SCPI Progra
2. Address 15 14 13 12 11 10 9 8 7 0 Bit Weight 32768 16384 2048 1024 512 256 not used MODID not used Main Input1 Input2 Main FF16 a 16 0 0 Output Enable Enable Output Ovid State active low Address 15 1 0 Bit Weight 1 base 0416 not used Reset Address 15 14 13 12 11 10 9 8 7 6 5 4 3 1 0 Bit Weight 32768 16384 8192 4096 2048 1024 512 256 128 64 32 16 2 1 base 0816 DAC Control Code Address 15 8 7 6 5 4 3 2 1 0 Bit Weight era 128 64 32 16 8 4 2 1 base 0A16 FF16 OdB 20dB 50 75Q Main 50 750 50 750 00 reserved output output output output outimp outimp output must be path path imped enable of of inv inped setto 1 disable non inv amp amp Address 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 Input 1 attenuation and impedance X Input 2 attenuation and impedance Bit Weight 32768 16384 8192 4096 2048 1024 512 256 128 64 32 16 8 4 2 1 base OCig 16dB 8dB 4dB 2dB 1dB 750 500 not 16dB 8dB 4dB 2dB 1dB 750 500 relay atten atten atten atten atten in in used atten atten atten atten atten in in act imp imp imp imp Programming the Amplifier Register Based Programming C 13 Prog ram Seque nce The recommended sequence of an E1446A register based program is and Execution show
3. Setting the Input Impedance Programming the Agilent E1446A 2 19 800 PRINT 810 REPEAT 820 OUTPUT OAmp SYST ERR read AMP error queue 830 ENTER Amp Code Message 840 PRINT Code Message 850 UNTIL Code 0 860 END IF 870 STOP 880 SUBEND Setting DC Voltage Offsets Setting DC Offsets Agilent E1445A Commander These examples show you how to use the amplifier to add a DC offset to a signal supplied by the E1445A In the first example the E1446A is a servant to the E1445A In the second example the E1446A is a servant to the E1405 Command Module This program adds an 8V DC offset to a 0 4 Vpp E1445A signal To maintain 0 4 Vpp at the output the signal is attenuated by 20 dB at the amplifier input Figure 2 1 The offset supplied by the E1446A DAC is added to the input signal and is amplified Into 50W the 0 4 Vpp signal is centered on 8V The steps of this program are 1 Reset the E1445A AFG and E1446A amplifier RST Set the AFG frequency function and amplitude SOURce FREQuency 1 CWl FIXed lt frequency gt SOURce FUNCtion SHAPe lt shape gt SOURce VOLTage LEVel IMMediate AMPLitude lt amplitude gt Couple the AFG output load value to the output impedance value OUTPut 1 LOAD AUTO lt mode gt OUTPut 1 IMPedance lt impedance gt Set the amplifier input impedance to match the AFG output load INPut 1 IMPedance lt impedance gt 2 20 Programming th
4. 3 19 OPERationIQUEStionable NTRansition 2000000 3 20 OPERationIQUEStionable PTRansition 00000 e 3 20 PRES Cta sie ie LA an heared BAS ape A Rad usa 3 21 SYSTEM 18 238 AAN 3 22 ERROR ptt tate Rae US BAS Ghee orders Pads SUS Eta 3 22 VERSION fea eRe a eee NE OE ee o E 3 22 TEEE 488 2 Common Commands oa 3 25 CLS ase tae of BRA BAR A a ee eee BS eee A Dh ge a aod 3 26 SDM Ur A A Sd fete cma dca eed See 3 26 EMC and EMC os sce A ah BAN Wwe E 3 27 ESE and ESE cos ede enh Ge Poa BE Rae ele POR RRO 3 27 ESR 0 ae oe id ats shes See ES Meee a eget ARIS es Soe eae 3 28 SOMO Le ek Soh Brassed kth Boden ese Geese GUS BAe pte e ec eee ea 3 28 STN ose A a wea ee PAS DE A tee BR y 3 29 ELMER aa te eat Rade et Bea hk WR a Bee Ce amp AA Be 3 29 SERN gehts Se Hee O RAS E tee See aes ee De te E a E 3 30 SOPO a oo ict wate an BAR AN 3 30 OPCS se des Bee Mylo A a A A gah rag oaks teas Beg Oa BE 3 30 BPM Cee 4 gis tom A SDR le edd 3 31 SRCE NR A NE O ON 3 31 ERME a IR a MIN ek ES DI As 3 31 PERS O A E RATA rr a ita 3 32 ESA Vita hy e ds de dd Gk eS id yk dor 3 32 SRE And A SREZ 0 tang ad AG Goo Le ees a a a es ae amp ae 3 33 ESEB A AU E rele piel RO ANY UE Be ee igs Wig eben STA hak se ee fle Ae 3 33 ESTA AAA ist eA red By EBS iets hg Aeon ig te A oe eae page ed dosis 3 34 WIAD et decoded pele Matana oe Reb de Goh oe ee Me SER Ee ie edd 3 34 SCPI Conformance Information ee 3 35 Agile
5. PRINT Lrn 1 I 1 Lrn Lrn l 1 UNTIL Lrn SUBEND Table 2 1 E1446A Power On Reset Configuration as returned by LRN Parameter Command Power on Reset Agilent E1446A Agilent E1445A Settings Input1 Attenuation INP1 ATT INP1 ATT 0 00000000E 000 0 dB Input Impedance INP1 IMP INP1 IMP 5 00000000E 001 502 Input2 Attenuation INP2 ATT INP2 ATT 0 00000000E 0000 0 dB Input2 Impedance INP2 IMP INP2 IMP 5 00000000E 001 502 Main Output Attenuation OUTP1 ATT OUTP2 ATT 0 00000000E 000 0 dB Main Output Impedance OUTP1 IMP OUTP2 IMP 5 00000000E 001 502 Main Output State OUTP1 STAT OUTP2 STAT 1 on Diff Impedance OUTP2 IMP OUTP3 IMP 5 00000000E 001 50Q Diff Impedance OUTP3 IMP OUTP4 IMP 5 00000000E 001 50Q DC offset SOUR VOLT LEV IMM OFFS SOUR2 VOLT LEV IMM OFFS 0 00000000E 000 OV Introductory Programs Programming the Agilent E1446A 2 7 Example Programs The example programs in this section include e Generating and amplifying sine waves e Selecting the input impedance e Using the differential small signal outputs e Setting a DC offset voltage e Summing two signals These programs configure the amplifier according to the block diagram of Figure 2 1 The program descriptions will often refer to this figure The programs were written with the amplifier configured as a servant of the Agilent E1445A AFG and as a servant of the A
6. COM E1446 Base addr INTEGER In ctrl Out imped SET UP E1445A ASSIGN Afg TO 1680 E1445A and V 360 I O path 1E1445A error checking ON INTR 16 CALL Errmsg ENABLE INTR 16 32 OUTPUT Afg CLS OUTPUT Afg SRE 32 OUTPUT Afg ESE 60 IReset E1445A and clear status OUTPUT Afg RST CLS OPC ENTER Afg Ready OUTPUT Afg SOUR FREQ1 FIX 1E3 lfrequency OUTPUT Afg SOUR FUNC SHAP SQU function OUTPUT Afg SOUR VOLT LEV IMM AMPL MIN lamplitude OUTPUT Afg OUTP LOAD AUTO ON couple load to impedance OUTPUT Afg OUTP IMP 50 loutput impedance WAIT 4 OFF INTR 16 BEGIN E1446A CONFIGURATION Declare and initialize program variables REAL Ini atten In1 imped In2 atten In2 imped input variables REAL Out1 atten Out1 imped Out1 state Imain output variables REAL Out2 imped Out3 imped Idiff out variables REAL Offset IDC offset variable DATA 30 50 0 50 READ In1 atten In1 imped In2 atten In2 imped input atten and imp Continued on Next Page Example Programs Register Based Programming C 23 380 390 DATA 0 50 1 main output attenuation impedance and state 400 READ Out1_atten Out1_imped Out1_state 410 420 DATA 50 50 differential output impedances 430 READ Out2_imped Out3_imped 440 450 Offset 0 DC offset 460 470 Set E1446A base address and initialize COM variables 480 Set_addr 88 490 500 Set up E1446A 510 Se
7. MINimum selects 0Q output impedance MAXimum selects 75Q Comments Coupling group Power amplifier e Related commands SOURce VOL Tage LEVel IMMediate OFFSet and OUTPut1 ATTenuation e RST Condition OUTPut1 IMPedance 50 Example Setting 75Q output impedance OUTP1 IMP 75 OVERIoad Set 75 Q output impedance OUTPut1 OVERload determines if an overload condition exists by reading bit 11 of the amplifier s status register Appendix C Comments A one 1 returned in response to the query indicates an overload condition exists A zero 0 indicates there is not an overload condition e Coupling group none e RST Condition none Example Determining if an overload condition exists OUTP1 OVER determine if overload condition exists OUTPut1 Subsystem E1446 E1405 06 Command Reference 3 13 OUTPut1 STATe STATe OUTPut1 STATe lt mode gt closes or opens the output relay of the Main Output BNC to enable or disable the analog output When disabled the output appears as Parameters Comments an open circuit Parameter Parameter Range of Default Name Type Values Units mode boolean OFF O ON 1 none Example e Coupling group none e RST Condition OUTPut1 STATe ON e The output relay will be opened automatically if an output current overload occurs Disabling the output OUTP1 OFF Disable output STATe ACTual Comments Example OUTPut1 STATe
8. 290 Declare and initialize program variables 300 310 REAL In1_atten In1_imped In2_atten In2_imped input variables 320 REAL Out1_atten Out1_imped Out1_state Imain output variables 330 REAL Out2_imped Out3_imped Idiff out variables 340 REAL Offset IDC offset variable 350 360 DATA 20 50 0 50 370 READ In1_atten In1_imped In2_atten In2_imped input atten and imp 380 390 DATA 0 50 1 main output attenuation impedance and state 400 READ Out1_atten Out1_imped Out1_state 410 420 DATA 50 50 differential output impedances 430 READ Out2_imped Out3_imped 440 450 Offset 8 DC offset 460 470 Set E1446A base address and initialize COM variables 480 Set_addr 88 490 500 Set up E1446A 510 Setup_e1446 In1_atten Ini_imped In2_atten In2_imped Out1_atten Out1_imped Out1_state Out2_imped Out3_imped Offset 520 530 OUTPUT Afg INIT IMM 1E1445A wair for arm state 540 END 550 C 22 Register Based Programming Example Programs Using the Rather than amplify the input signal this program attenuates the signal Differential small supplied by the E1445A to obtain an output amplitude of 10 mVpp The signal Outputs output can be taken at either the Diff or Diff inverted output BASIC RGBDIFF 100 110 120 130 140 150 160 170 180 190 200 210 220 230 240 250 260 270 280 290 300 310 320 330 340 350 360 370 IRE STORE RGBDIFF LOADSUB ALL FROM E46SUBS
9. INPut2 IMPedance lt impedance gt 6 Set the amplifier input attenuation INPut 1 ATTenuation lt attenuation gt INPut2 ATTenuation lt attenuation gt 7 Set the amplifier Diff output impedance OUTPut3 IMPedance lt impedance gt 8 Place the AFGs in the wait for arm state INITiate IMMediate SUM45 IRE STORE SUM45 The following program uses the E1446A to sum the output signals of Itwo E1445As The E1445A at secondary address 10 logical address 80 loutputs a 1 Vpp 5 kHz sine wave The E1445A at secondary address 11 logical address 88 outputs a 1 Vpp 100 kHz sine wave To prevent Ithe E1445A signals from drifting both AFG s use CLK10 as their lreference oscillator source The E1446A sums these signals and the loutput is taken at the Diff output Oo 4 2 3 4 5 6 7 9 1 Continued on Next Page 2 32 Programming the Agilent E1446A Summing Two Signals Assign I O paths between the computer and E1445As The E1445A at Isecondary address 10 is the commander for the E1446A ASSIGN Afg80 TO 70910 ASSIGN Afg88 TO 70911 COM Afg80 Afg88 ISet up error checking ON INTR 7 CALL Errmsg 100 ENABLE INTR 7 2 110 OUTPUT Afg80 CLS 120 OUTPUT Afg80 SRE 32 130 OUTPUT Afg80 ESE 60 140 150 OUTPUT Afg88 CLS 160 OUTPUT Afg88 SRE 32 170 OUTPUT Afg88 ESE 60 180 190 Call the subprograms 200 Rst 210 Afg_setup 220 230 WAIT 1 allow interrupt to be servic
10. ENABle lt unmask gt EVEN1t query only NTRansition lt unmask gt PTRansition lt unmask gt PRESet no query OPERation QUEStionable CONDition STA Tus OPERation IQUEStionable CONDition returns the contents of the appropriate condition register Reading the register does not affect its contents Comments Executable when initiated Yes e Coupling group none e Related commands STATus subsystem SRE STB e RST Condition all bits of both condition registers are cleared as a result of the state present after RST Example Querying the Operation condition register STAT OPER Query Operation condition register 3 18 E1446 E1405 06 Command Reference STATus Subsystem Parameters Comments Comments Example STATus OPERation QUEStionable ENABle OPERation QUEStionable ENABle STATus OPERation IQUEStionable ENABle lt unmask gt specifies which bits of the associated event register are included in its summary bit The summary bit is the bit for bit logical AND of the event register and the unmasked bit s Parameter Parameter Range of Default Name Type Values Units unmask numeric or O through 32767 none non decimal numeric The non decimal numeric forms are the H Q or B formats specified by TEEE 488 2 e Executable when initiated Yes e Coupling group none e Related commands STATus subsystem SRE STB e RST Condition unaffected e Power on Cond
11. 580 Rst Subprogram which resets the E1445As and E1446A 590 COM Afg80 Afg88 600 OUTPUT Afg80 RST OPC reset the AFG sec addr 10 610 ENTER Afg80 Complete 620 630 OUTPUT Afg88 RST OPC reset the AFG sec addr 11 640 ENTER Afg88 Complete 650 SUBEND 660 670 SUB Errmsg 680 Errmsg Subprogram which displays E1445 E1446 programming errors 690 COM Afg80 Afg88 700 DIM Message 256 710 Read AFG at sec addr 10 status byte register clear service 720 Irequest bit 730 B SPOLL Afg80 740 End of statement if error occurs among coupled commands 750 OUTPUT Afg80 760 OUTPUT Afg80 ABORT abort output waveform 770 PRINT E1445A secondary address 10 780 PRINT 790 REPEAT 800 OUTPUT Afg80 SYST ERR read AFG error queue sec addr 10 810 ENTER Afg80 Code Message 820 PRINT Code Message 830 UNTIL Code 0 840 PRINT 850 860 Read AFG at sec addr 11 status byte register clear service 870 Irequest bit Continued on Next Page 2 34 Programming the Agilent E1446A Summing Two Signals 880 B SPOLL Afg88 890 End of statement if error occurs among coupled commands 900 OUTPUT Afg88 910 OUTPUT Afg88 ABORT labort output waveform 920 PRINT E1445A secondary address 11 930 PRINT 940 REPEAT 950 OUTPUT Afg88 SYST ERR read AFG error queue sec addr 11 960 ENTER Afg88 Code Message 970 PRINT Code Message 980 UNTIL Code 0 990 STOP 1000 SUBEND Su
12. DISPlay The DISPlay subsystem enables the amplifier s settings e g input impedance input attenuation output impedance output attenuation to be monitored When a display terminal is connected to the E1405 Command Module and monitor mode is enabled the E1446A amplifier settings and changes to the settings are shown on the terminal Subsystem Syntax DISPlay MONItor STATe lt mode gt MONitor STATe DISPlay MONitor STATe lt state gt enables disables the monitor mode Setting the state to ON or 1 enables monitor mode OFF or 0 turns monitor mode off parameter Parameter Parameter Range of Default Name Type Values Units mode boolean OFF O ON 1 none Comments Coupling group none e RST Condition DISPlay MONitor STATe OFF Example Enabling Monitor Mode DISP MON STAT ON enable monitor mode DISPlay Subsystem E1446 E1405 06 Command Reference 3 7 INPut 1 Subsystem Syntax ATTenuation Parameters Comments Example IMPedance Parameters The INPut 1 subsystem controls the input attenuation and impedance of the Agilent E1446A s Input 1 BNC INPut 1 ATTenuation lt attenuation gt IMPedance lt impedance gt INPut 1 ATTenuation lt attenuation gt controls the input attenuator of the Input 1 BNC Input attenuation can range from 0 to 31 dB in 1 dB steps Parameter Parameter Range of Default Name Type
13. 300 Set up the Agilent E1446A 310 OUTPUT Afg INP1 IMP 50 linput impedance 320 OUTPUT Afg INP1 ATT 30 linput attenuation dB 330 OUTPUT Afg OUTP3 IMP 50 IDiff output impedance 340 OUTPUT Afg OUTP4 IMP 50 IDiff output impedance 350 360 OUTPUT Afg INIT IMM 1E1445A wait for arm state 370 SUBEND 380 390 SUB Rst 400 Rst Subprogram which resets the E1445A and E1446A 410 COM Afg 420 OUTPUT Afg RST OPC reset the AFG 430 ENTER Afg Complete 440 SUBEND 450 460 SUB Errmsg 470 Errmsg Subprogram which displays E1445 E1446 programming errors 480 COM Afg 490 DIM Message 256 500 Read AFG status byte register and clear service request bit 510 B SPOLL Afg 520 End of statement if error occurs among coupled commands 530 OUTPUT Afg 540 OUTPUT Afg ABORT abort output waveform 550 REPEAT 560 OUTPUT Afg SYST ERR read AFG error queue 570 ENTER Afg Code Message 580 PRINT Code Message 590 UNTIL Code 0 600 STOP 610 SUBEND 2 28 Programming the Agilent E1446A Using the Differential small signal Outputs Using the Differential Outputs Agilent E1405 Commander DIFFO5 SsNnNOoOoR WD 100 110 120 130 140 150 160 170 180 190 200 210 220 230 This program uses the same commands and sequence as previously described except for the OUTPut2 and OUTPut3 commands shown below 6 Set the amplifier Diff and Diff output impedances OU
14. Comments Executable when initiated Yes e Coupling group none e RST Condition OUTPut3 IMPedance 50 Example Setting 75 Q output impedance OUTP3 IMP 75 Set 75 Q output impedance OUTPut3 Subsystem E1446 E1445 Command Reference 3 15 OUTPut4 The OUTPut4 subsystem controls the output impedance of the Agilent E1446A s Diff Output output Subsystem Syntax OUTPut4 IMPedance lt impedance gt IMPedance OUTPut4 IMPedance lt impedance gt sets the output impedance Diff Output BNC to either 50Q or 750 Paramelers Parameter Parameter Range of Default Name Type Values Units impedance numeric 50 75 Ohms MINimum MAXimum MINimum selects 50Q output impedance MAXimum selects 75Q Comments Executable when initiated Yes e Coupling group none e RST Condition OUTPut4 IMPedance 50 Example Setting 75 Q output impedance OUTP4 IMP 75 Set 75 Q output impedance 3 16 E1446 E1445 Command Reference OUTPut4 Subsystem SOURce2 VOLTage The SOURce2 VOLTage subsystem controls the output offset voltage at the Agilent E1446A s Main Output BNC Subsystem Syntax SOURce2 VOLTage LEVel IMMediate OFFSet lt voltage gt LEVel IMMediate OFFSet SOURce2 VOLTage LEVel IMMediate OFFSet lt voltage gt sets the offset voltage at the Main Output BNC Output offset level is programmed in volts parameters Parameter Parameter Range of Default
15. 1 in bit 8 indicates the Main Output BNC port is enabled A zero 0 indicates the output port is disabled At power on the inputs and output are disabled Writing to the register at base 0416 writes to the amplifier s Control Register register The Control register is used to perform a hardware reset of the amplifier Address 15 1 0 base 0416 not used Reset Resetting the Amplifier Writing a one 1 to bit 0 hardware resets the amplifier Writing a zero 0 turns the reset function off Bit O must be a 1 for at least 2 us for the reset to occur Bit O must be set to 0 for normal operation C 8 Register Based Programming Register Descriptions The DAC Control The DAC control register sets the output level of the amplifier DAC Register Address 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 base 0816 DAC Control Code DAC Control Code DAC Output Amplifier Output 000016 full scale full scale 19 9992V TFFE 16 1LSB 1 LSB 610 uV open circuit TFFF 16 0 0 800016 1LSB 1LSB 610 uV open circuit FFFF 16 full scale full scale 20 0000V The Output Control At power on the DAC control code is set to 0 which is full scale The Output Control register controls the output attenuation and Register impedance of the amplifier s Main and differential outputs Address 15 8 7 6 5 4 3
16. 44 Mbyte disk DOS Format E1446 10032 The example programs are SCPI programs written in BASIC On the LIF formatted disk E1446 10031 the programs are in LOAD STORE PROG format On the DOS formatted disk E1446 10032 the programs are in GET SAVE ASCII format System Each program in this chapter is written in BASIC Except where noted the Co nfigu ration programs were developed on the following system Controller HP 9000 Series 300 Mainframe Agilent 75000 Series C Slot 0 Resource Manager Agilent E1405B Command Module E1445A Logical Address 80 E1445A Servant Area 8 E1446A Logical Address 88 Instrument Language SCPI 2 4 Programming the Agilent E1446A Instrument and Programming Languages Introductory Programs The introductory programs in this section include e Executing the Agilent E1446A self test e Resetting the Agilent E1446A and clearing the Error Queue e Querying the Agilent E1446A power on reset settings The introductory program examples in this section were written with the Agilent E1405 Command Module as the commander of the Agilent E1446A Summing Amplifier DAC Executing the The amplifier self test is executed with the command Self Test TST During the self test communication between the command module and the on card registers is tested The TST returns one of the self test codes listed below e 0 passed e 1 failed An error message describes the failure Executing t
17. 510 ENTER Amp Complete 520 SUBEND 530 540 SUB Errmsg 550 Errmsg Subprogram which displays E1445 E1446 programming errors 560 COM Afg Amp 570 DIM Message 256 580 Read AFG at sec addr 10 status byte register clear service 590 request bit 600 B SPOLL Afg Continued on Next Page Generating and Amplifying Sine Waves Programming the Agilent E1446A 2 13 610 IFBIT B 6 THEN AFG requested service 620 End of statement if error occurs among coupled commands 630 OUTPUT Afg 640 OUTPUT Afg ABORT abort output waveform 650 PRINT E1445A errors 660 PRINT 670 REPEAT 680 OUTPUT Afg SYST ERR read AFG error queue 690 ENTER Afg Code Message 700 PRINT Code Message 710 UNTIL Code 0 720 STOP 730 ENDIF 740 750 Read AMP at sec addr 11 status byte register clear service 760 Irequest bit 770 B SPOLL Amp 780 IFBIT B 6 THEN lamplifier requested service 790 End of statement if error occurs among coupled commands 800 OUTPUT Amp 810 PRINT E1446A errors 820 PRINT 830 REPEAT 840 OUTPUT Amp SYST ERR read AMP error queue 850 ENTER Amp Code Message 860 PRINT Code Message 870 UNTIL Code 0 880 ENDIF 890 STOP 900 SUBEND Setting the Input Impedance The examples in this section show you how to amplify a sine wave generated by the Agilent E1445A In the first program the E1446A is a servant of the E1445A AFG In the second program the E1446A amplifies the sign
18. 750 OUTPutl ATTenuation must be set to 0 dB when OUTPutl IMPedance is set to 00 parameters Parameter Parameter Range of Default Name Type Values Units impedance numeric 0 20 0 dB MINimum MAXimum MINimum selects O dB attenuation MAXimum selects 20 dB Comments Coupling group Power amplifier e RST Condition OUTPut1 ATTenuation 0 Example Setting 20 dB output attenuation OUTP1 ATT 20 Set 20 dB output attenuation IMPedance OUTPut1 IMPedance lt impedance gt sets the output impedance of the Main Output BNC to either 0Q 500 or 750 OUTPut1 IMPedance 0 should be selected when an open circuit or high impedance load is connected to the output of the Agilent E1446A The matching impedance is removed from the amplifier output Also the OUTPUT1 offset voltage into an open circuit is twice that into a matched load Setting OUTPut1 IMPedance 0 compensates for this effect so that the SOURce VOL Tage LEVel IMMediate OFFSet command will output the specified voltage into an open circuit 3 12 E1446 E1405 06 Command Reference OUTPuti Subsystem OUTPut1 OVERload When OUTPut1 IMPedance is set to either 500 or 750 either no output attenuation or 20 dB may be selected OUTPutl ATTenuation must be set to OdB when OUTPutl IMPedance is set to 002 Parameters Parameter Parameter Range of Default Name Type Values Units impedance numeric 0 50 75 Ohms MINimum MAXimum
19. AEE RAR E 3 7 MONIT LSTA Te S iaa hehe hw e AOS aH oh be eee he 4 3 7 IN PUN ec eee A Bea aie Deke ee a eee a eA ea eee 3 8 SAT Ten AON fs Lan Dmna Rew BR a SA RR Ee Be Ae aa Gp es 3 8 IMPedance ic ao RA BR eS we aly Ace Bi Be fe Re A 3 8 2 Agilent E1446A User s Manual Contents INPUEZ eco e las ate A A et tad ee ia at a la 3 10 ATT EUA A BRO BL BE ye eR aa Be ONE ened yes OR a dent a 3 10 SIMP dance 546 sce eg Ad Ea A ek NES Aa MO aes 3 10 OUTPUT 8 mido te yate hat tthe ic de Sy ees Be AYP el A te ee 3 12 SACP REnUAatlOn 9 tn sd Rn hth Aes ea MRI ana Oe 3 12 SIMPe dance atea eed eh hake Bee Sk See De ee ee ce 3 12 OVERIO os A Ge Pde Ee od Rate Se PS BR 3 13 ESTATE ee cot heat ete BRA Be BU ad Se et eee Be ata ies Sere ee 3 14 ESTATE 2AC Vinal ss i o BT sos the a ele BABS dein ue MR ee ie pk rk eae ss 3 14 OUP PUL2 ata att Se Rg Bia ES ead ag ORG el ROM e GS 3 15 IMPe dance cia dor a deh bk GB OO A ee 3 15 OUTPUTS tag re atte Saka Mi et Mae ead eo he at eh ee dalan a 3 16 IMPEdANGE imena es PA EN sek tot PE Re Ee oe tae de See nt Bee 3 16 SOURCe OL Tage sei ena depe beet Get ee he GAB a ae aa Gee 3 17 LEVel IMMediate OFFSet ik 3 17 STATUS e ganda al Kar ara ds of heath tek oe Ke RA AN MA Ban on took ce at 3 18 OPERationIQUEStionable CONDition o e e 3 18 OPERationlOUEStionable ENABIe o e 3 19 OPERation QUEStionable EVENt o
20. Based Programming Example Programs Index A Abbreviated Commands 3 3 Address External controllers 1 5 Interface select code 1 5 Logical 1 3 Primary GPIB 1 5 Secondary GPIB 1 6 Servant area of Agilent E1446A 1 3 Addressing register C 1 C 3 Using an Embedded Controller 1 5 Using an External Controller 1 7 Amplifier block diagram 1 9 Amplifying Sine Waves with Agilent E1405B as commander 2 12 with Agilent E1445A as commander 2 9 Attenuation Input Range 1 9 Attenuation Output Executing Coupling Commands 2 3 Range 1 10 B Base address C 1 Block diagram amplifier 1 9 C COM memory IBASIC C 5 Command Abbreviated 3 3 Linking 3 6 Separator 3 3 Types 3 2 Command coupling 3 5 Command parameters SCPI 3 4 Common Command Format 3 2 Computer configurations register based programming C 4 C 5 Configuration System 2 4 Conformance Information SCPI 3 35 Control register C 8 Controllers Embedded 1 5 1 7 External 1 5 System configuration 2 4 Coupling command 3 5 Coupling Commands Executing 2 3 Rules 2 3 D DAC Block diagram of amplifier 1 8 Offset 1 1 1 9 Offset binary code 1 11 Operation Basic description 1 11 DAC control register C 9 Description General 1 1 1 2 Device Type register C 7 Differential Output Block diagram of amplifier 1 8 Circuitry across two terminals 1 10 Features of amplifier 1 1 Impedance 1 10 Inverting amplifier 1 10 Maximum output 1 10 Non inverting am
21. CONDition 3 18 ENABIO ura net ake 3 19 EVENTO a an 3 19 NTRansition 3 20 PTRansition 3 20 PRESO Eu a diia 3 21 SYSTEM bae til ta 3 22 dl A eng Oe 3 22 VERSION 2 ocd seid a eed db ia 3 22 Chapter Contents Command Reference 3 1 Agilent E1446A Agilent E1405 06 Commands DISPlay3 7 OUTPU nai ate AS 3 16 MONItor STATe 3 7 IMPedance 4 3 16 INPUT ociosas is Soke uan 3 8 SOURce VOLTage 000 3 17 ATTenuation 3 8 LEVel IMMediate OFFset 3 17 IMPedance 05 3 8 STATUS por co ae aed en Beas 3 18 INPUT vs ace ek ote a eas 3 10 OPERation QUEStionable 3 18 ATTenuation 3 10 CONDition 3 18 IMPedance 05 3 10 ENABI 22 2 25mm aa 3 19 EVENT LL 3 19 OUT RUT cl pts 3 12 NTRansition 3 20 ATTenuation 3 12 PTRansition 3 20 IMPedance 3 12 PRESet 3 21 OVERIoad 3 13 STATS ia 3 14 SYSTEM 3 22 ACTUA Been eka ma aa 3 14 O sai 3 22 VERSION vise cet ce Ses Bee 3 22 OUTPU reip ra ee ae 3 15 IMPedance 05 3 15 Command Types Common Command Format Commands are separated into two types IEEE 488 2 Common Commands and SCPI Commands The IEEE 488 2
22. Coupling group none e Related Commands STATus PRESet e RST Condition none DMC lt name gt lt data gt creates a macro with the specified name and assigns zero one or a sequence of commands to the name The sequence may be composed of SCPI and or Common Commands The sequence must be sent in IEEE 488 2 definite or indefinite block format Parameter Parameter Range of Default Name Type Values Units name string 1 through 12 characters none data data block any valid command none data sequence or string e Legal macro names must start with an alphabetic character and contain only alphabetic numeric and underscore _ characters Alphabetic character case upper vs lower is ignored The name is allowed to be the same as a SCPI command but may be not be the same as a Common Command When the name is the same as a SCPI command the macro rather than the command will be executed when the name is received 1f macro usage is enabled The SCPI command will be executed if macro usage is disabled e Executable when initiated Yes e Coupling group none e Related Commands EMC GMC LMC RMC 3 26 Command Reference IEEE 488 2 Common Commands EMC and EMC e RST Condition none macro defintions are unaffected e Power On Condition no macros are defined Example Define macro to set Input 1 impedance DMC RESTART INP1 IMP 50 EMC and EMC Define macro EMC lt enabl
23. OUTPUT 70910 SOUR2 VOLT OFFS 3 Where Interface Select Code 7 Command Module Primary GPIB Address 09 Secondary GPIB address Agilent E1445A logical address 8 10 Agilent E1405 06 Command Module An example of the GPIB address in an BASIC statement when the amplifier is a servant of the Agilent E1405 06 is OUTPUT 70911 SOUR VOLT OFFS 3 Where Interface Select Code 7 Command Module Primary GPIB Address 09 Secondary GPIB address Agilent E1446A logical address 8 11 Refer to Chapter 2 Programming the Agilent E1446A for more detailed information 1 6 Getting Started Preparation for Use Using an Embedded Controller Downloading the Agilent E1446A SCPI Driver The Agilent E1446A Summing Amplifier DAC can be programmed across the VXIbus backplane select code 16 from an embedded controller such as the Agilent E1480A V 360 With this configuration communication with the register based amplifier module can be accomplished via four paths 1 Embedded controller across the VXIbus backplane to the Agilent E1445A AFG SCPI programming only 2 Embedded controller to the Agilent E1405 06 Command Module via the GPIB interface SCPI or register based 3 Embedded controller to the Agilent E1405 06 over the GPIB and via the Agilent E1445A SCPI only 4 Embedded controller across the VXIbus backplane to the Agilent E1446A register based programming only Examples of how the amplifier is addres
24. Offset and Register Number Declaring IBASIC Variables in COM common Memory External Computer Programming Depending on whether absolute addressing or select code 8 is used either a register offset or register number is specified as part of the register address Absolute addressing specifies a register offset which is the register s location in the block of 64 address bytes For example the amplifier s DAC Control Register has an offset of 0816 When you write to this register the offset is added to the base address to form the register address assuming a logical address of 88 register address base address register offset 1FCO0016 88 64 16 0816 1FC00016 160016 0816 1FD608 6 or 2 080 768 88 64 8 2 080 768 5632 8 2 086 408 Using select code 8 requires that you specify a register number The register number is the register offset 2 Referring to Figure C 1A the DAC Control register with an offset of 08 is register number 4 When writing or modifying IBASIC programs array variables can be declared in COM common memory Variables not in COM memory reside in the IBASIC stack The stack is a 32 kByte default segment of memory which contains components such as pointers and local variables for subprograms and declarations When too many variables or too large an array are in the stack Error 2 Memory Overflow will occur If a memory overflow occurs the stack size can be chang
25. P N E1446 10031 GET SAVE versions of these programs are on example programs disk Agilent P N E1446 10032 The examples in this section include e Amplifying a Sine Wave e Setting the amplifier Input Impedance e Setting a DC Voltage Offset e Using the Differential small signal Outputs e Summing Two Signals The programs in this section are the same as those in Chapter 2 However the amplifer is programmed at the register level using the flowchart of Figure C 4 Note also that the amplifier is in the servant area of the E1480A V 360 controller and not in the servant area of the E1445A see below The register based programs in this section were developed using the following system configuration Controller Agilent E1480A V 360 Embedded Controller select code 16 Mainframe Agilent 75000 Series C Slot 0 Resource Manager Agilent E1480A V 360 E1446A Logical Address 88 E1445A Logical Address 80 E1445A Servant Area 0 Communication between the controller and E1445A E 1446A is through paths 1 and 4 mentioned under Using an Embedded Controller in Chapter 1 Example Programs Register Based Programming C 17 BASIC Subprograms The subprograms used by each register based program are stored saved in a separate file file name E46SUBS These subprograms are listed after the last example Summing Two Signals Amplifying a Sine This program uses the E1446A to amplify a 2 Vpp E1445A AFG signal Wave to 14 15 Vpp
26. Query the error queue VERSion SYSTem VERSion returns the SCPI version number to which the Agilent E1446A complies 1991 0 Comment Executable when initiated Yes e RST Condition none 3 22 E1446 E1445 Command Reference SYSTem Subsystem SYSTem VERSion Example Querying the SCPI revision SYST VERS Query SCPI revision SYSTem Subsystem E1446 E1445 Command Reference 3 23 Table 3 1 Agilent E1446A E1445A Command Quick Reference Subsystem Commands INPut 1 INPut 1 ATTenuation lt attenuation gt INPut 1 IMPedance lt impedance gt INPut2 INPut2 ATTenuation lt attenuation gt INPut2 IMPedance lt impedance gt OUTPut2 OUTPut2 ATTenuation lt attenuation gt OUTPut2 IMPedance lt impedance gt OUTPut2 OVERIoad OUTPut2 STATe lt mode gt OUTPut2 STATe ACTual OUTPut3 OUTPut3 IMPedance lt impedance gt OUTPut4 OUTPut4 IMPedance lt impedance gt SOURce2 VOLTage SOURce2 VOLTage LEVel IMMediate OFFSet lt voltage gt STATus STATus OPERation QUEStionable CONDition STATus OPERation QUEStionable ENABle lt unmask gt STATus OPERation QUEStionable EVENt STATus OPERation QUEStionable NTRansition lt unmask gt STATus OPERation QUEStionable PTRansition lt unmask gt STATus PRESet SYSTem SYSTem ERRor SYSTem VERsion 3 24 E1446 E1445 Command Quick Reference Agilent E1446 E1405 06 Commands SCPI Command Reference
27. Response Full Power Bandwidth 10 MHz all outputs Small Signal Bandwidth 30 MHz all outputs Size Slots Connectors Weight kg Device Type VXIbus Revision Compliance Register Level Documentation SCPI Revision Manufacturer Code Model Code Currents in Amps typical 5v I pm 0 36 I dm 0 04 12v I pm 0 2 I dm 0 06 12v I pm 0 08 I dm 0 05 24v I pm 0 36 I dm 0 27 24v I pm 0 34 I dm 0 27 5 2v I pm 0 22 I dm 0 04 2v pm 0 I dm 0 5vs pm 0 I dm 0 Typical Watts Slot 16 dPressure mm H20 0 14 AirFlow liters s 1 28 C 1 P1 P2 1 4 Register A16 D16 Servant 1 3 Yes 1991 0 4095 Decimal 419 Decimal Agilent E1446A Specifications A 3 Appendix B Error Messages Agilent E1446A This appendix contains a list of error messages that may be received pp g y Error Messages when programming the Agilent E1446A e Table B 1 Agilent E1446A Error Messages B 2 e Table B 2 Agilent E1446A Settings Conflict Errors with the Agilent E1405 06 ii B 4 e Table B 3 Agilent E1446A Settings Conflict Errors with the Agilent E1445A io B 4 Agilent E1446A Error Messages B 1 Table B 1 Agilent E1446A Error Messages Code Message Description 101 Invalid character Unrecognized character in parameter 102 Syntax error Command is missi
28. Sana pala nda Sey 1 1 Preparation for Use gt ro Au nan balas SOO e OR es De EA 1 3 Configuring the Amplifier 2 2 0 0 0 0000000000004 1 3 Installing the Amplifier o o e 1 4 Addressing the Amplifier ik 1 5 Downloading the Agilent E1446A SCPI Driver o 1 7 Basic Operations ss 4 ena Bln Beban in a a tan 1 8 Amplifier Block Diagram ok 1 9 Output its Bae Sie eA A A Ona a ind 1 9 2 Programming the Agilent E1446A Chapter Contents 0 06 ten Smua ea seb akn Ae Ral pang 2 1 Instrument and Programming Languages 000 ee eee 2 1 SEPT Programming coa eA ed Ba do pa Goa 2 1 Command Coupling o 2 2 Instrument Driver and Example Programs Disks 2 4 System Configuration 2 4 Introductory Programs 2 5 Ex cuting the Self Test ios is eomma sn e A R 2 5 Resetting and Clearing the Agilent El446A o ooo oo 2 6 Querying the Power on Reset Configuration a 2 6 Example Programs ML sa Gc ea na Ra sn angs Ben pe ai ba an 2 8 Generating and Amplifying Sine Waves Lo 2 9 Amplifying Sine Waves Agilent E1445A Commander 2 9 Amplifying Sine Waves Agilent E1405 Commander 2 12 Setting the Input Impedance 2 2 eee 2 14 Setting the Input Impedance Agilent E1445A Commander 2 14 Setting Input Impedance Agilent E1405B Commander 2 17 Setting DC Vol
29. Since the intended output amplitude and the input amplitude are known the amount of attenuation 0 31 dB attenuator 1s determined as attenuation dB 20 LOG Vo Vi 10 where Vo is the output amplitude and Vi is the input signal amplitude Vo and Vi units Vpp Vp must be the same Thus attenuation dB 20 LOG 14 15 20 3 dB BASIC RGBAMPL 100 110 120 130 140 150 160 170 180 190 200 210 220 230 IRE STORE RGBAMPL LOADSUB ALL FROM E46SUBS COM E1446 Base_addr INTEGER In_ctrl Out_imped ISET UP E1445A ASSIGN Afg TO 1680 E1445A and V 360 I O path 1E1445A error checking ON INTR 16 CALL Errmsg ENABLE INTR 16 32 OUTPUT Afg CLS OUTPUT Afg SRE 32 OUTPUT Afg ESE 60 IReset E1445A and clear status OUTPUT Afg RST CLS OPC ENTER Afg Ready OUTPUT Afg SOUR FREQ1 FIX 1E3 lfrequency OUTPUT Afg SOUR FUNC SHAP SIN function OUTPUT Afg SOUR VOLT LEV IMM AMPL 2VPP lamplitude OUTPUT Afg OUTP LOAD AUTO ON couple load to impedance OUTPUT Afg OUTP IMP 50 loutput impedance Continued on Next Page C 18 Register Based Programming Example Programs 240 WAIT 1 250 OFF INTR 16 260 270 BEGIN E1446A CONFIGURATION 280 290 Declare and initialize program variables 300 310 REAL In1_atten Ini_imped In2_atten In2_imped input variables 320 REAL Out1_atten Out1_imped Out1_state Imain output variables 330 REAL Out2
30. Syntax SYSTem ERRor query only VERSion query only ERRor SYSTem ERROR returns the error messages in the error queue See Appendix B for a listing of possible error numbers and messages Comments The Agilent E1446A places any generated errors into the error queue The queue is first in first out With several errors waiting in the queue the SY STem ERRor returns the oldest unread error message first e The error queue can hold 30 error messages If the Agilent E1446A generates more than 30 messages that are not read it replaces the last error message in the queue with error 350 Too many errors No additional messages are placed into the queue until SYSTem ERRor reads some messages or the CLS clear status command clears the queue e When the error queue is empty SYSTem ERRor returns 0 No error e Executable when initiated Yes e RST Condition unaffected e Power On Condition no errors are in the error queue Example Reading the error queue SYST ERR Query the error queue VERSion SYSTem VERSion returns the SCPI version number to which the Agilent E1446A complies 1991 0 Comment Executable when initiated Yes e RST Condition none 3 22 E1446 E1405 06 Command Reference SYSTem Subsystem SYSTem VERSion Example Querying the SCPI revision SYST VERS Query SCPI revision SYSTem Subsystem E1446 E1405 06 Command Reference 3 23 Table 3 1 Agilent E1446A E1405 06 Command Quick Refer
31. Values Units impedance numeric O through 31 0 dB MINimum MAXimum MINimum selects 0 dB attenuation MAXimum selects 31 dB e Coupling group none e RST Condition INPutl ATTenuation 0 Setting 20 dB input attenuation INP ATT 20 Set 20 dB input attenuation INPut 1 IMPedance lt impedance gt sets the input impedance of the Input 1 BNC to either 50Q 75Q or 1 MQ Parameter Parameter Range of Default Name Type Values Units impedance numeric 50 75 1 0E6 Ohms MINimum MAXimum MINimum selects 50Q input impedance MAXimum selects 1 MQ 3 8 E1446 E1405 06 Command Reference INPut 1 Subsystem INPut 1 IMPedance Comments Coupling group none e RST Condition INPut1 IMPedance 50 Example Setting 75 Q input impedance INP IMP 75 Set 75 Q input impedance INPut 1 Subsystem E1446 E1405 06 Command Reference 3 9 INPut2 Subsystem Syntax ATTenuation Parameters Comments Example IMPedance Parameters The INPut2 subsystem controls the input attenuation and impedance of the Agilent E1446A s Input 2 BNC INPut2 ATTenuation lt attenuation gt IMPedance lt impedance gt INPut2 ATTenuation lt attenuation gt controls the input attenuator of the Input 2 BNC Input attenuation can range from 0 to 31 dB in 1 dB steps Parameter Parameter Range of Default Name Type Values Units impedance numeric O through 31 0 dB MINimu
32. ae ba ee be C 8 The DAC Control Register 2 ee C 9 The Output Control Register 2 ee ee C 9 The Input Attenuation Register oa C 10 Programming the Amplifier e C 12 Program Sequence and Execution 0 0 0 0 eee eee C 14 Example Programs os ida pan Aten Be Oe des Gea Te un See C 17 System Configuration o aoea ee C 17 Amplifying a Sine Wave ee C 18 Setting the amplifier Input Impedance o o e C 19 Setting a DC Voltage Offset o o o ee eee C 21 Using the Differential small signal Outputs 0 C 23 Summing Two Signals e C 24 Example Subprograms ok C 26 Index 4 Agilent E1446A User s Manual Contents Certification Agilent Technologies certifies that this product met its published specifications at the time of shipment from the factory Agilent Technologies further certifies that its calibration measurements are traceable to the United States National Institute of Standards and Technology formerly National Bureau of Standards to the extent allowed by that organization s calibration facility and to the calibration facilities of other International Standards Organization members Warranty This Agilent Technologies product is warranted against defects in materials and workmanship for a period of one 1 year from date of shipment Duration and conditions of warranty for this product may be superseded w
33. amplifier 350 OUTPUT Amp INP1 IMP 75 linput impedance 360 OUTPUT Amp INP1 ATT 4 linput attenuation dB 370 OUTPUT EAmp OUTP1 IMP 50 Imain output impedance 380 OUTPUT Amp OUTP1 ATT 0 Imain output attenuation dB 390 400 OUTPUT Afg INIT IMM IE1445A wait for arm state 410 SUBEND 420 430 SUB Rst 440 Rst Subprogram which resets the E1445 and E1446 450 COM Afg Amp 460 OUTPUT GAfg RST OPC Ireset the AFG 470 ENTER Afg Complete 480 OUTPUT Amp RST OPC Ireset the AMP 490 ENTER Amp Complete 500 SUBEND 510 520 SUB Errmsg 530 Errmsg Subprogram which displays E1445 E1446 programming errors 540 COM Afg Amp 550 DIM Message 256 560 Read AFG at sec addr 10 status byte register clear service 570 Irequest bit 580 B SPOLL Afg 590 IFBIT B 6 THEN AFG requested service 600 End of statement if error occurs among coupled commands 610 OUTPUT Afg 620 OUTPUT Afg ABORT abort output waveform 630 PRINT E1445A errors 640 PRINT 650 REPEAT 660 OUTPUT Afg SYST ERR read AFG error queue 670 ENTER Afg Code Message 680 PRINT Code Message 690 UNTIL Code 0 700 STOP 710 ENDIF 720 730 Read AMP at sec addr 11 status byte register clear service 740 Irequest bit 750 B SPOLL Amp 760 IFBIT B 6 THEN lamplifier requested service 770 End of statement if error occurs among coupled commands 780 OUTPUT EAmp 790 PRINT E1446A errors Continued on Next Page
34. e Coupling group none e RST Condition OUTPut2 STATe ON e The output relay will open automatically if an output overload is detected Example Disabling the output OUTP2 OFF Disable output STATe ACTual OUTPut2 STATe ACTual determines if the amplifier s Main Output BNC is enabled or has been disabled due to an overload condition The determination is done by reading bit 8 of the amplifier s Status register Appendix C This command requires Agilent E1445A firmware revision A 02 00 or greater OUTPut2 Subsystem E1446 E1445 Command Reference 3 13 OUTPut2 STATe ACTual Comments A one 1 returned in response to the query indicates the Main Output BNC is enabled A zero 0 indicates the output is disabled e Coupling group none e RST Condition none Example Determining if the output is enabled OUTP2 STAT ACT determine if the output is enabled 3 14 E1446 E1445 Command Reference OUTPut2 Subsystem OUTPut3 The OUTPut3 subsystem controls the output impedance of the Agilent E1446A s Diff Output output Subsystem Syntax OUTPut3 IMPedance lt impedance gt IMPedance OUTPut3 IMPedance lt impedance gt sets the output impedance Diff Output BNC to either 50Q or 750 Paramelers Parameter Parameter Range of Default Name Type Values Units impedance numeric 50 75 Ohms MINimum MAXimum MINimum selects 50Q output impedance MAXimum selects 75Q
35. macro If no macros are defined a single null string is returned e Executable when initiated Yes e Coupling group none e Related Commands DMC e RST Condition none e Power On Condition no macros are defined IEEE 488 2 Common Commands Command Reference 3 29 LRN LRN OPC OPC Note Comments Comments Comments LRN returns a sequence of commands that may be resent to the Agilent E1446A to return it to its current programming state LRN should be sent singly in a program message since the number of commands in the returned sequence is large and may vary depending on firmware revision e Executable when initiated Yes e Coupling group none e Related commands RCL RST SAV e RST Condition none OPC causes the E1446A to wait for all pending commands to complete The Operation Complete bit bit 0 in the Standard Event Status Register is then set e Executable when initiated Yes e Coupling group none e Related commands OPC FWAI e RST Condition none OPC causes the E1446A to wait for all pending commands to complete A single ASCII 1 is then placed in the output queue e Executable when initiated Yes e Coupling group none e Related commands OPC WAI e RST Condition none 3 30 Command Reference IEEE 488 2 Common Commands PMC PMC PMC purges all macro definitions Comments Use the RMC command to purge an single macro definition e Execu
36. of Default Name Type Values Units impedance numeric O through 31 0 dB MINimum MAXimum MINimum selects 0 dB attenuation MAXimum selects 31 dB e Executable when initiated Yes e Coupling group none e RST Condition INPut2 ATTenuation 0 Setting 20 dB input attenuation INP2 ATT 20 Set 20 dB input attenuation INPut2 IMPedance lt impedance gt sets the input impedance of the Input 2 BNC to either 50Q 75Q or 1 MQ Parameter Parameter Range of Default Name Type Values Units impedance numeric 50 75 1 0E6 Ohms MINimum MAXimum MINimum selects 50Q input impedance MAXimum selects 1 MQ INPut2 Subsystem E1446 E1445 Command Reference 3 9 INPut2 IMPedance Comments Executable when initiated Yes e Coupling group none e RST Condition INPut2 IMPedance 50 Example Setting 75 Q input impedance INP2 IMP 75 Set 75 Q input impedance 3 10 E1446 E1445 Command Reference INPut2 Subsystem OUTPut2 The OUTPut2 subsystem controls the characteristics of the Agilent E1446A s Main Output BNC The subsystem sets the output attenuation sets the output source impedance monitors overload conditions and enables or disables the output Subsystem Syntax OUTPut2 ATTenuation lt attenuation gt IMPedance lt impedance gt OVERload query only STATe lt mode gt ACTual query only ATTenuation OUTPut2 ATTenuation lt attenuation gt controls th
37. of input levels and offset voltage exceeds the specification Comments Coupling group Power amplifier e Related commands OUTPut1 IMPedance e RST Condition SOURce VOLTage LEVel IMMediate OFFSet 0 V Example Setting offset voltage SOUR VOLT OFFS 3 Set offset voltage to 3 volts SOURce VOLTage Subsystem E1446 E1405 06 Command Reference 3 17 STATus The STATus subsystem controls the SCPI defined Operation and Questionable Signal status registers Each is comprised of a condition register an event register an enable mask and negative and positive transition filters Each status register works as follows when a condition occurs the appropriate bit in the condition register is set or cleared If the the corresponding transition filter is enabled for that bit the same bit is set in the associated event register The contents of the event register and the enable mask are logically ANDed bit for bit if any bit of the result is set the summary bit for that register is set in the status byte The status byte summary bit for the Operation status register is bit 7 for the Questionable Signal status register bit 3 Operation Status Register All bits are always 0 This register is implemented only for SCPI compatibility purposes Questionable Signal Status Register All bits are always 0 This register is implemented only for SCPI compatibility purposes Subsystem Syntax STATus OPERation QUEStionable CONDition query only
38. other are summarized below 1 Agilent E1480A V 360 Controller with READIO and WRITEIO register access is from VXI backplane 2 E1405 06 IBASIC absolute addressing with READIO and WRITEIO register access is from VXI backplane 3 E1405 06 IBASIC select code 8 with READIO and WRITEIO register access is from VXI backplane 4 External Computer using DIAG PEEK and DIAG POKE register access is over GPIB 5 External Computer using VXI READ and VXI WRITE register access is over GPIB Embedded The fastest throughput is achieved using an embedded computer such as gnp g p Computer the Agilent E1480 V 360 The embedded computer allows you to access the amplifier registers from the VXIbus backplane and since READIO Prog ramming and WRITEIO are used there is no parsing of SCPI command headers C Size Systems IBASIC When the E1446A amplifier is programmed using the E 1405 06 Prog ramming Command Module s Instrument BASIC IBASIC two methods of accessing the registers are through absolute addressing or using select code 8 Absolute Addressing and Select Code 8 Absolute addressing is faster than select code 8 since the complete register address including the A16 starting location 1FC00016 is specified When select code 8 is used the IBASIC processor must calculate the complete register address based on the logical address specified Table C 1 C 4 Register Based Programming Computer Configurations The Register
39. shown in the table For additional information refer to IEEE Standard 488 2 1987 EMC lt enable gt EMC GMC lt name gt LMC PMC RMC lt name gt Category Command Title System Data IDN Identification Query Internal Operations LRN Learn Device Setup Query RST Reset Command TST Self Test Query Synchronization OPC Operation Complete Command OPC Operation Complete Command WAI Wait to Continue Command Macro DMC lt name gt lt data gt Define Macro Command Enable Macro Command Enable Macro Query Get Macro Contents Query Learn Macro Query Purge Macros Command Remove Individual Macro Command Status amp Event CLS Clear Status Command ESE lt mask gt Standard Event Status Enable Command ESE Standard Event Status Enable Query ESR Standard Event Status Register Query SRE Service Request Enable Command SRE Service Request Enable Query STB Read Status Byte Query Stored Settings RCL Recall Command SAV Save Command IEEE 488 2 Common Commands Command Reference 3 25 CLS CLS DMC Comments Parameters Comments CLS clears the Standard Event Status Register the Operation Status Register the Questionable Signal Register and the error queue This clears the corresponding summary bits 3 5 amp 7 in the Status Byte Register CLS does not affect the enable masks of any of the status registers e Executable when initiated Yes e
40. the Input Impedance Programming the Agilent E1446A 2 17 In this example the E1446A is a servant to the E1405 As such commands sent to the amplifier at secondary GPIB address 11 are parsed by the Command Module rather than by the E1445A IN_IMPO5 IRE STORE IN_IMPO5 This program sets the AFG s output impedance and output load Ito 75 ohms The Agilent E1446A amplifier s input impedance is set to 175 ohms to match the AFG The 1 Vpp AFG square wave is amplified Ito 6 3 Vpp Assign I O paths between the computer and E1445A and E1405 ASSIGN Afg TO 70910 ASSIGN Amp TO 70911 COM Afg Amp ISet up error checking ON INTR 7 CALL Errmsg ENABLE INTR 7 2 OUTPUT Afg CLS 100 OUTPUT Afg SRE 32 110 OUTPUT Afg ESE 60 120 130 OUTPUT Amp CLS 140 OUTPUT Amp SRE 32 150 OUTPUT Amp ESE 60 160 170 Call the subprograms 180 CALL Rst 190 CALL Out_load 200 210 WAIT 1 allow interrupt to be serviced 220 OFF INTR7 230 END 240 250 SUB Out_load 260 Out_load Subprogram which sets the output load 270 COM Afg Amp 280 OUTPUT Afg SOUR FREQ1 FIX 2E6 frequency 290 OUTPUT Afg SOUR FUNC SHAP SQU function 300 OUTPUT Afg SOUR VOLT LEV IMM AMPL 1VPP lamplitude 310 OUTPUT Afg OUTP IMP 75 loutput impedance 320 OUTPUT Afg OUTP LOAD 75 loutput load 330 Continued on Next Page 2 18 Programming the Agilent E1446A Setting the Input Impedance 340 Set up
41. with no attenuation the maximum input voltage sum of Inputl and Input2 must not exceed 2 Vpp Figure 2 1 In the first example the E1446A is a servant to the E1445A In the second example the E1446A is a servant to the E1405 Command Module Rather than amplify the input signal this program attenuates the signal supplied by the E1445A to obtain an output amplitude of 10 mVpp The output can be taken at either the Diff or Diff inverted output The steps of this program are 1 Reset the E1445A AFG and E1446A amplifier RST 2 Set the AFG frequency function and minimum amplitude SOURce FREQuency 1 CWl FIXed lt frequency gt SOURce FUNCtion SHAPe lt shape gt SOURce VOLTage LEVel IMMediate AMPLitude lt amplitude gt 3 Couple the AFG output load value to the output impedance value OUTPut 1 LOAD AUTO lt mode gt OUTPut 1 MPedance lt impedance gt 4 Set the amplifier input impedance to match the AFG output load INPut 1 IMPedance lt impedance gt 5 Set the amplifier input attenuation INPut 1 ATTenuation lt attenuation gt 2 26 Programming the Agilent E1446A Using the Differential small signal Outputs 6 Set the amplifier Diff and Diff output impedances OUTPut3 IMPedance lt impedance gt OUTPut4 IMPedance lt impedance gt 7 Place the AFG in the wait for arm state INITiate IMMediate Note Resetting the amplifier sets many of th
42. 0 READ Out1_atten Out1_imped Out1_state 580 590 DATA 50 50 differential output impedances 600 READ Out2_imped Out3_imped 610 620 Offset O DC offset 630 640 Set E1446A base address and initialize COM variables 650 Set_addr 88 660 670 Set up E1446A 680 Setup e1446 In1 atten In1 imped In2 atten In2 imped Out1 atten Out1 imped Out1 state Out2 imped Out3 imped Offset 690 700 OUTPUT Afg72 INIT IMM 1E1445A wait for arm state 710 OUTPUT Afg80 INIT IMM 1E1445A wait for arm state 720 END 730 Example The following file contains the subprograms used by the preceding Subprograms example programs 1 Subprograms used for register based programming file name E46SUBS 2 1 10 SUB Set_addr Log_addr 20 Set_addr Subprogram which sets E1446A base address and initializes 30 Ithe COM variables 40 COM E1446 Base_addr INTEGER In_ctrl Out_imped 50 Access A16 address space with READIO and WRITEIO 60 CONTROL 16 25 2 70 80 Set base address and initialize COM variables 90 Base addr DVAL C000 16 Log_addr 64 100 In ctr 0 110 Out imped 50 120 SUBEND 130 140 SUB Setup e1446 In1i atten In1 imped In2 atten In2 imped Out1 atten Out1 imped Out1 state Out2 imped Out3 imped Offset 150 COM E1446 Base addr INTEGER In ctrl Out imped 160 INTEGER Out ctrl initialize output settings att imp state variable 170 Continued on Next Page C 26 Register Based Programming Ex
43. 0416 Status Control Register P4 2 080 768 N 0216 Device Type Register 200000 5 y N_0018 ID Register 1F0000 3 HK E144BA A16 Register Map 00000016 Base Address IFCOO0yg5 logical address 64 ig or 2 080 768 logical address 64 ip Register Address Base Address Register Offset E1446A FIGC 2 Figure C 1B E1446A Amplifier Registers within E1405 A16 Address Space C 2 Register Based Programming Register Addressing The A16 base address used in register based programming depends on whether the A16 address space is located inside the E1405 06 Command Module or elsewhere e g embedded computer Figures C 1A C 1B and Table C 1 enable you to determine the base address for the following computer configurations e Embedded Controller V 360 IBASIC e Agilent E1405 06 Command Module Instrument BASIC e External Computer over GPIB to Command Module E 1405 06 Table C 1 Computer Configurations used with the E1446A Computer Programming Method Base Address Agilent E1480 V 360 Embedded READIO 16 Base_addr offset Base_addr C000i LADDR 64 16 Computer WRITEIO 16 Base_addr offset data positive select code byte read or write negative select code word read or write or 49 152 LADDR 64 offset register offset Figure C 1B E1405 06 IBASIC Absolute Addressing Select Code 8 READIO 9826 Base_addr offset WRITEIO 9826 Base_addr offset
44. 2 1 0 base 0A16 Fi OdB 20dB 50 75 Main 50 75Q 50 75Q OQ reserved output output output output outimp outimp output Must be path path imped enable of of inv imped setto 1 disable non inv amp amp Bits 7 6 Bits 7 and 6 set the attenuation at the amplifiers s main output Setting bit 7 to one 1 specifies the OdB output path Setting bit 7 to zero 0 opens the OdB output path Setting bit 6 to one 1 specifies the 20dB output path Setting bit 6 to zero 0 opens the 20dB output path At power on the output attenuation is undefined Bit 5 Setting bit 5 to one 1 sets the Main output impedance to 502 Setting bit 5 to zero 0 sets the Main output impedance to 750 At power on the output impedance is undefined Bit 4 Setting bit 4 to one 1 enables the amplifier s Main output Setting bit 4 to zero 0 disables the amplifier s Main output At power on the bit value is undefined but the output is disabled Bits 3 2 Bits 3 and 2 set the output impedance of the amplifier s non inverting and inverting differential outputs Setting bit 3 to one 1 sets the impedance of the non inverting output to 502 Setting bit 3 to Register Descriptions Register Based Programming C 9 zero 0 sets the impedance to 750 Setting bit 2 to one 1 sets the impedance of the inverting output to 502 Setting bit 2 to zero 0 set
45. 6A Summing Amplifier DAC has two input channels that have identical input amplifiers with independently controlled input impedance and input attenuation The input amplifier attenuators provide independent level control prior to the summing node The attenuation can range from 0 to 31 dB in 1 dB steps The input impedance can be set to 500 75Q or 1 MQ The output channels provide the amplifier with the capability to boost the power output of a low power signal source and to provide low level differential output The output channels are e single ended main output or power amplifier e differential small signal output one inverting one non inverting The power amplifier sums the two input channels plus the output of a 16 bit offset Digital to Analog Converter DAC to obtain output levels of 10 Vpeak into a 500 or 759 load on the single ended output or 20 Vpeak into high impedance The voltage gain of the power amplifier is set at 10 20 dB into a matched load and at 20 about 26 dB into a high impedance To obtain the desired output the output attenuation and the output impedance can be independently selected The output impedance can be set Basic Operation Getting Started 1 9 to 509 or 750 or to OQ for driving into high impedance The output voltage can be attenuated by either 0 or 20 dB when 50Q or 75Q output impedance is selected Output attenuation is unavailable with the 0Q mode high impedance The main output ter
46. 8 490 500 Set up E1446A 510 Setup_e1446 In1_atten Ini_imped In2_atten In2_imped Out1_atten Out1_imped Out1_state Out2_imped Out3_imped Offset 520 530 OUTPUT Afg INIT IMM E1445A wair for arm state 540 END 550 Setting aDC This program adds an 8V DC offset to a 0 4 Vpp E1445A signal To Voltage Offset maintain 0 4 Vpp at the output the signal is attenuated by 20 dB at the amplifier input Figure 2 1 The offset supplied by the E1446A DAC is added to the input signal and is amplified Into 500 the 0 4 Vpp signal is centered on 8V BASIC RGBOFFS IRE STORE RGBOFFS LOADSUB ALL FROM E46SUBS COM E1446 Base_addr INTEGER In_ctrl Out_imped SET UP E1445A ASSIGN Afg TO 1680 E1445A and V 360 I O path 1E1445A error checking ON INTR 16 CALL Errmsg ENABLE INTR 16 32 100 OUTPUT Afg CLS 110 OUTPUT Afg SRE 32 120 OUTPUT Afg ESE 60 130 Continued on Next Page Example Programs Register Based Programming C 21 140 Reset E1445A and clear status 150 OUTPUT Afg RST CLS OPC 160 ENTER Afg Ready 170 180 OUTPUT Afg SOUR FREQ1 FIX 1E3 freguency 19 OUTPUT Afg SOUR FUNC SHAP SIN function 200 OUTPUT Afg SOUR VOLT LEV IMM AMPL 4VPP lamplitude 210 OUTPUT Afg OUTP LOAD AUTO ON couple load to impedance 220 OUTPUT Afg OUTP IMP 50 loutput impedance 230 240 WAIT 1 250 OFF INTR 16 260 270 BEGIN E1446A CONFIGURATION 280
47. 920 END SELECT 1930 1940 WRITEIO 16 Base_addr 12 In_ctrl Start input relay closings 1950 WAIT 01 Wait for relay closings to finish 1960 Continued on Next Page C 30 Register Based Programming Example Programs 1970 Set inactive state by turning off input attenuator control bits 1980 and disabling inverter 1990 2000 WRITEIO 16 Base_addr 12 BINIOR BINAND In_ctrl 1542 1 2010 SUBEND 2020 SUB Set_e46_offset Offset 2030 COM E1446 Base_addr INTEGER In_ctrl Out_imped 2040 REAL Offset_dac 2050 2060 Look for settings conflict 2070 2080 IF Out imped 0 THEN 2090 Offset dac Offset 0006103515625 2100 ELSE 2110 Offset dac Offset 00030517578125 2120 ENDIF 2130 IF Offset_dac lt 32768 5 OR Offset_dac gt 32767 5 THEN 2140 DISP Invalid SOUR VOLT LEV IMM OFFS value 2150 STOP 2160 ENDIF 2170 2180 Set offset 2190 2200 WRITEIO 16 Base_addr 8 BINEOR Offset_dac 32767 2210 SUBEND 2220 2230 SUB Errmsg 2240 Errmsg Subprogram which displays E1445 E1446 programming errors 2250 DIM Message 256 2260 Read AFG status byte register and clear service request bit 2270 B SPOLL 1680 2280 End of statement if error occurs among coupled commands 2290 OUTPUT 1680 2300 OUTPUT 1680 ABORT abort output waveform 2310 REPEAT 2320 OUTPUT 1680 SYST ERR read AFG error queue 2330 ENTER 1680 Code Message 2340 PRINT Code Message 2350 UNTIL Code 0 2360 STOP 2370 SUBE
48. ACTual determines if the amplifier s Main Output BNC is enabled or has been disabled due to an overload condition The determination is done by reading bit 8 of the amplifier s Status register Appendix C e A one 1 returned in response to the query indicates the Main Output BNC is enabled A zero 0 indicates the output is disabled e Coupling group none e RST Condition none Determining if the output is enabled OUTP1 STAT ACT determine if the output is enabled 3 14 E1446 E1405 06 Command Reference OUTPut1 Subsystem OUTPut2 Subsystem Syntax IMPedance Parameters Comments Example The OUTPut2 subsystem controls the output impedance of the Agilent E1446A s Diff Output output OUTPut2 IMPedance lt impedance gt OUTPut2 IMPedance lt impedance gt sets the output impedance Diff Output BNC to either 50Q or 750 Parameter Parameter Range of Default Name Type Values Units impedance numeric 50 75 Ohms MINimum MAXimum MINimum selects 50Q output impedance MAXimum selects 75Q e Coupling group none e RST Condition OUTPut2 IMPedance 50 Setting 75 Q output impedance OUTP2 IMP 75 Set 75 Q output impedance OUTPut2 Subsystem E1446 E1405 06 Command Reference 3 15 OUTPut3 Subsystem Syntax IMPedance Parameters Comments Example The OUTPut3 subsystem controls the output impedance of the Agilent E1446A s Diff
49. BEND 450 460 SUB Errmsg 470 Errmsg Subprogram which displays E1445 E1446 programming errors 480 COM Afg 490 DIM Message 256 500 Read AFG status byte register and clear service request bit 510 B SPOLL Afg 520 End of statement if error occurs among coupled commands 530 OUTPUT Afg 540 OUTPUT Afg ABORT abort output waveform Continued on Next Page Generating and Amplifying Sine Waves Programming the Agilent E1446A 2 11 REPEAT OUTPUT OAfg SYST ERR read AFG error queue ENTER Afg Code Message PRINT Code Message UNTIL Code 0 STOP SUBEND Ampl ifying Sine This program uses the same commands and sequence as previously Waves Agilent described except for the OUTPut 1 commands shown below E1405 Commander 6 Set the amplifieroutput impedance OUTPut 1 MPedance lt impedance gt 7 Set the amplifier output attenuation OUTPut 1 ATTenuation lt attenuation gt In this example the E1446A is a servant to the E1405 As such commands sent to the amplifier at secondary GPIB address 11 are parsed by the Command Module rather than by the E1445A AMPLO5 IRE STORE AMPLO5 The following program uses the Agilent E1445A to generate a 1 kHz 2Vpp Isine wave The Agilent E1446A amplifies the signal to approximately 14 Vpp Assign I O paths between the computer and E1445A and between the Icomputer and E1405 As the commander of the E1446A the E1405 sends the lamplifier its commands A
50. D of the event register and the unmasked bit s Parameters Parameter Parameter Range of Default Name Type Values Units unmask numeric or O through 32767 none non decimal numeric The non decimal numeric forms are the H Q or B formats specified by TEEE 488 2 Comments Executable when initiated Yes e Coupling group none e Related commands STATus subsystem SRE STB e RST Condition unaffected e Power on Condition STATUS OPERationIQUEStionable ENABLE 0 OPERation QUEStionable EVENt STA Tus OPERation IQUEStionable EVENt returns the contents of the appropriate event register Reading the register clears it to 0 Comments Both event registers are also cleared to 0 by the CLS common command e Executable when initiated Yes e Coupling group none e Related commands STATus subsystem SRE STB e RST Condition unaffected e Power on Condition Both event registers are cleared to 0 Example Querying the Operation event register STATus Subsystem E1446 E1445 Command Reference 3 19 STATus OPERation QUEStionable NTRansition STAT EVEN Query Operation event register OPERation QUEStionable NTRansition STATus OPERation IQUEStionable NTRansition lt unmask gt sets the negative transition mask For each bit unmasked a 1 to 0 transition of that bit in the associated condition register will set the same bit in the associated event register Parameters Parameter P
51. Default Name Type Values Units impedance numeric O through 31 0 dB MINimum MAXimum MINimum selects 0 dB attenuation MAXimum selects 31 dB e Executable when initiated Yes e Coupling group none e RST Condition INPutl ATTenuation 0 Setting 20 dB input attenuation INP ATT 20 Set 20 dB input attenuation INPut 1 IMPedance lt impedance gt sets the input impedance of the Input 1 BNC to either 500 750 or 1 MQ Parameter Parameter Range of Default Name Type Values Units impedance numeric 50 75 1 0E6 Ohms MINimum MAXimum MINimum selects 50Q input impedance MAXimum selects 1 MQ INPut 1 Subsystem E1446 E1445 Command Reference 3 7 INPut 1 IMPedance Comments Executable when initiated Yes e Coupling group none e RST Condition INPut1 IMPedance 50 Example Setting 75 Q input impedance INP IMP 75 Set 75 Q input impedance 3 8 E1446 E1445 Command Reference INPut 1 Subsystem INPut2 Subsystem Syntax ATTenuation Parameters Comments Example IMPedance Parameters The INPut2 subsystem controls the input attenuation and impedance of the Agilent E1446A s Input 2 BNC INPut2 ATTenuation lt attenuation gt IMPedance lt impedance gt INPut2 ATTenuation lt attenuation gt controls the input attenuator of the Input 2 BNC Input attenuation can range from 0 to 31 dB in 1 dB steps Parameter Parameter Range
52. For example INP ATT 6 INP IMP 50 SCPI Command Reference This section describes the SCPI commands for the Agilent E1446A Summing Amplifier DAC Since the E1446A amplifier can be a servant of either the Agilent E1445A Arbitrary Function Generator or the Agilent E1405 Command Module the section has been divided into three parts e Agilent E1446A Agilent E1445A Command Reference Agilent E1446A is a servant to the Agilent E1445A e Agilent E1446A Agilent E1405 Command Reference Agilent E1446A is a servant to the Agilent E1405 e TEEE 488 2 Common Commands same for either commander Agilent E1445A or Agilent E1405 In each part the commands are listed alphabetically by subsystem and alphabetically within each subsystem A command guide is printed in the top margin of each page The guide indicates the first command listed on that page 3 6 Command Reference SCPI Command Reference Agilent E1446 E1445 Commands SCPI Command Reference INPut 1 SubSystem Syntax ATTenuation Parameters Comments Example IMPedance Parameters The INPut 1 subsystem controls the input attenuation and impedance of the Agilent E1446A s Input 1 BNC INPut 1 ATTenuation lt attenuation gt IMPedance lt impedance gt INPut 1 ATTenuation lt attenuation gt controls the input attenuator of the Input 1 BNC Input attenuation can range from 0 to 31 dB in 1 dB steps Parameter Parameter Range of
53. GER In_ctrl Out_imped SET UP E1445A ASSIGN Afg TO 1680 E1445A and V 360 I O path 1E1445A error checking ON INTR 16 CALL Errmsg ENABLE INTR 16 32 100 OUTPUT Afg CLS 110 OUTPUT Afg SRE 32 120 OUTPUT Afg ESE 60 130 140 Reset E1445A and clear status 150 OUTPUT Afg RST CLS OPC 160 ENTER Afg Ready 170 180 OUTPUT Afg SOUR FREQ1 FIX 2E6 freguency 19 OUTPUT Afg SOUR FUNC SHAP SQU function 200 OUTPUT Afg SOUR VOLT LEV IMM AMPL 1VPP lamplitude 210 OUTPUT Afg OUTP IMP 75 loutput impedance 220 OUTPUT Afg OUTP LOAD 75 loutput load 230 240 WAIT 1 250 OFF INTR 16 260 270 BEGIN E1446A CONFIGURATION 280 290 Declare and initialize program variables 300 310 REAL In1_atten Ini_imped In2_atten In2_imped input variables 320 REAL Out1_atten Out1_imped Out1_state Imain output variables 330 REAL Out2_imped Out3_imped Idiff out variables 340 REAL Offset IDC offset variable 350 Continued on Next Page C 20 Register Based Programming Example Programs 360 DATA 4 75 0 50 370 READ Ini atten In1 imped In2 atten In2 imped input atten and imp 380 390 DATA 0 50 1 main output attenuation impedance and state 400 READ Out1_atten Out1_imped Out1_state 410 420 DATA 50 50 differential output impedances 430 READ Out2_imped Out3_imped 440 450 Offset 0 DC offset 460 470 Set E1446A base address and initialize COM variables 480 Set_addr 8
54. IF BIT B 6 THEN lamplifier requested service End of statement if error occurs among coupled commands OUTPUT Amp PRINT E1446A errors PRINT REPEAT OUTPUT Amp SYST ERR read AMP error queue ENTER Amp Code Message PRINT Code Message UNTIL Code 0 END IF STOP SUBEND Summing Two Signals This program uses the E1446A to sum the signals from two E1445A AFGs The AFGs at logical addresses 80 and 88 secondary GPIB addresses 10 and 11 generate 1 Vpp 5 kHz and 100 kHz sine waves respectively The signal from the AFG at logical address 80 is applied to E1446A Input 1 The signal from the AFG at logical address 88 is applied to Input 2 The E1446A is in the servant area of the AFG at logical address 80 The steps of the program are as follows 1 Reset the E1445A AFGs and E1446A amplifier RST 2 Set the E1445As reference oscillator sources to CLK10 SOURce ROSCillator SOURce lt source gt Summing Two Signals Programming the Agilent E1446A 2 31 3 Set the AFG frequency function and amplitude SOURce FREQuency 1 CWl FIXed lt frequency gt SOURce FUNCtion SHAPe lt shape gt SOURce VOLTage LEVel IMMediate AMPLitude lt amplitude gt 4 Couple the AFG output load value to the output impedance value OUTPut 1 LOAD AUTO lt mode gt OUTPut 1 MPedance lt impedance gt 5 Set the amplifier input impedance to match the AFG output load INPut 1 IMPedance lt impedance gt
55. ND Example Programs Register Based Programming C 31 Errmsg Subprogram Program RGBSUM loads gets its subprograms from the file Used with SUMSUBS SUMSUBS rather than from the file E46SUBS The only difference between these subprogram files is the subprogram Errmsg Errmsg in the file SUMSUBS reports errors from two E1445As rather than from one Its listing is shown below 2230 SUB Errmsg 2240 Errmsg Subprogram which displays E1445 programming errors 2250 DIM Messagef 256 2260 Read AFG at logical addr 72 status byte register clear service 2270 request bit 2280 B SPOLL 1672 2290 End of statement if error occurs among coupled commands 2300 OUTPUT 1672 2310 OUTPUT 1672 ABORT abort output waveform 2320 PRINT E1445A logical address 72 2330 PRINT 2340 REPEAT 2350 OUTPUT 1672 SYST ERR read AFG error queue 2360 ENTER 1672 Code Message 2370 PRint Code Message 2380 UNTIL Code 0 2390 PRint 2400 2410 Read AFG at logical addr 80 status byte register clear service 2420 request bit 2430 B SPOLL 1680 2440 End of statement if error occurs among coupled commands 2450 OUTPUT 1680 2460 OUTPUT 1680 ABORT abort output waveform 2470 PRINT E1445A logical address 80 2480 PRINT 2490 REPEAT 2500 OUTPUT 1680 SYST ERR read AFG error queue 2510 ENTER 1680 Code Message 2520 PRint Code Message 2530 UNTIL Code 0 2540 STOP 2550 SUBEND C 32 Register
56. Name Type Values Units number numeric 9 999695 to 10 0 volts MINimum MAXimum MINimum selects 9 999695 MAXimum selects 10 0 The above limits are doubled if OUTPut2 IMPedance 0 is set The combination of input levels and offset voltage must produce a voltage that remains within the Agilent E1446A s output voltage specification Significant distortion of the waveform will occur when the combination of input levels and offset voltage exceeds the specification Example Setting offset voltage Comments Executable when initiated Yes e Coupling group Power amplifier e Related commands OUTPut2 IMPedance e RST Condition SOURce2 VOLTage LEVel IMMediate OFFSet 0 V Example Setting offset voltage SOUR2 VOLT OFFS 3 Set offset voltage to 3 volts SOURce2 VOLTage Subsystem E1446 E1445 Command Reference 3 17 STATus The STATus subsystem controls the SCPI defined Operation and Questionable Signal status registers Each is comprised of a condition register an event register an enable mask and negative and positive transition filters Each status register works as follows when a condition occurs the appropriate bit in the condition register is set or cleared If the the corresponding transition filter is enabled for that bit the same bit is set in the associated event register The contents of the event register and the enable mask are logically ANDed bit for bit if any bit of the result is set the summary
57. Output output OUTPut3 IMPedance lt impedance gt OUTPut3 IMPedance lt impedance gt sets the output impedance Diff Output BNC to either 50Q or 750 Parameter Parameter Range of Default Name Type Values Units impedance numeric 50 75 Ohms MINimum MAXimum MINimum selects 50Q output impedance MAXimum selects 75Q e Coupling group none e RST Condition OUTPut3 IMPedance 50 Setting 75 Q output impedance OUTP3 IMP 75 Set 75 Q output impedance 3 16 E1446 E1405 06 Command Reference OUTPut3 Subsystem SOURce VOLTage The SOURce VOLTage subsystem controls the output offset voltage at the Agilent E1446A Main Output BNC Subsystem Syntax SOURce VOL Tage LEVel IMMediate OFFSet lt voltage gt LEVel IMMediate OFFSet SOURce VOL Tage LEVel IMMediate OFFSet lt voltage gt sets the offset voltage of the Main Output BNC Output offset level is programmed in volts Parameters Parameter Parameter Range of Default Name Type Values Units number numeric 9 999695 to 10 0 volts MINimum MAXimum MINimum selects 9 999695 MAXimum selects 10 0 The above limits are doubled if OUTPut IMPedance 0 is set The combination of input levels and offset voltage must produce a voltage that remains within the Agilent E1446A s output voltage specification Significant distortion of the waveform will occur when the combination
58. R Agilent 75000 Series C Agilent E1446A Summing Amplifier DAC Module Elo _ _ SES EU OA User s Manual and SCPI Programming Guide Where to Find it Online and Printed Information System installation hardware software VXIbus Configuration Guide Agilent VIC VXI installation software Module configuration and wiring This Manual SCPI programming This Manual SCPI example programs This Manual SCPI command reference This Manual Register Based Programming This Manual VXIplug amp play programming VXIplug amp play Online Help VXIplug amp play example programs VXIplug amp play Online Help VXIplug amp play function reference VXIplug amp play Online Help Soft Front Panel information VXIplug amp play Online Help VISA language information Agilent VISA User s Guide Agilent VEE programming information Agilent VEE User s Manual Supplied with Agilent Command Modules Embedded Controllers and VXLink whee Agilent Technologies Manual Part Number E1446 90001 Printed in Malaysia E0506 Table of Contents A A cy Moman PN es ae at Rae Be BE eo att RAR an A Me 5 Safety Symbols 4 20 5 Maa w debt he E le we Pe AN e 6 WARNINGS 3 oh tee 2 0 Sad ASS o Bee Tan Baba eos Sab an BER 6 Declaration of Conformity 2 oo 7 1 Getting Started Chapter Contents si tian ee A dengan Yen bee om Gn So nama a 1 1 General Description ie sedas ok 1 1 Features i ns aa be ties wt e do ts hee Ree
59. SSIGN Afg TO 70910 ASSIGN Amp TO 70911 COM Afg Amp ISet up error checking ON INTR 7 CALL Errmsg 100 ENABLE INTR 7 2 110 OUTPUT Afg CLS 120 OUTPUT Afg SRE 32 130 OUTPUT Afg ESE 60 140 Continued on Next Page 2 12 Programming the Agilent E1446A Generating and Amplifying Sine Waves 150 OUTPUT EAmp CLS 160 OUTPUT Amp SRE 32 170 OUTPUT Amp ESE 60 180 190 Call the subprograms 200 Rst 210 Sine_wave 220 230 WAIT 1 allow interrupt to be serviced 240 OFF INTR7 250 END 260 270 SUB Sine_wave 280 Sine_wave Subprogram which sets the E1445A to output a sine wave 290 COM Afg Amp 300 OUTPUT Afg SOUR FREQ1 FIX 1E3 frequency 310 OUTPUT Afg SOUR FUNC SHAP SIN function 320 OUTPUT Afg SOUR VOLT LEV IMM AMPL 2VPP lamplitude 330 OUTPUT Afg OUTP LOAD AUTO ON Icouple load to impedance 340 OUTPUT Afg OUTP IMP 50 loutput impedance 350 360 Set up the Agilent E1446A 370 OUTPUT Amp INP1 IMP 50 linput impedance 380 OUTPUT Amp INP1 ATT 3 linput attenuation dB 390 OUTPUT Amp OUTP1 IMP 505 Imain output impedance 400 OUTPUT Amp OUTP1 ATT 0 main output attenuation 410 420 OUTPUT Afg INIT IMM 1E1445A wait for arm state 430 SUBEND 440 450 SUB Rst 460 Rst Subprogram which resets the E1445A and E1446A 470 COM Afg Amp 480 OUTPUT Afg RST OPC reset the AFG 490 ENTER Afg Complete 500 OUTPUT OAmp RST OPC reset the AMP
60. Subprogram which displays E1445 E1446 programming errors 550 COM Afg Amp 560 DIM Message 256 570 Read AFG at sec addr 10 status byte register clear service 580 request bit 590 B SPOLL Afg 600 IF BIT B 6 THEN AFG requested service 610 End of statement if error occurs among coupled commands 620 OUTPUT Afg 630 OUTPUT Afg ABORT abort output waveform 640 PRINT E1445A errors 650 PRINT 660 REPEAT 670 OUTPUT Afg SYST ERR read AFG error queue 680 ENTER Afg Code Message 690 PRINT Code Message 700 UNTIL Code 0 710 STOP 720 ENDIF 730 740 Read AMP at sec addr 11 status byte register clear service 750 Irequest bit 760 B SPOLL Amp 770 IFBIT B 6 THEN lamplifier requested service 780 End of statement if error occurs among coupled commands 790 OUTPUT EAmp 800 PRINT E1446A errors 810 PRINT 820 REPEAT 830 OUTPUT Amp SYST ERR read AMP error queue 840 ENTER Amp Code Message 850 PRINT Code Message 860 UNTIL Code 0 870 ENDIF 880 STOP 890 SUBEND Setting DC Voltage Offsets Programming the Agilent E1446A 2 25 Using the Differential small signal Outputs Using the Differential Outputs Agilent E1445A Commander These examples show you how to use the amplifier s differential small signal outputs Note the following when using the outputs e the differential small signal outputs are designed for high frequency and low power source applications e
61. TPut2 IMPedance lt impedance gt OUTPut3 IMPedance lt impedance gt In this example the E1446A is a servant to the E1405 As such commands sent to the amplifier at secondary GPIB address 11 are parsed by the Command Module rather than by the E1445A IRE STORE DIFFOS This program uses the E1446A to generate a 10 mVpp signal from a 10 323738 Vpp signal supplied by the E1445A AFG To accomplish this the AFG signal is attenuated by 30 dB at the amplifier input The output is Itaken from the Diff and Diff outputs whose output impedances lare set to 50 ohms lAssign I O path between the computer and E1445A and E1446A ASSIGN Afg TO 70910 ASSIGN Amp TO 70911 COM Afg Amp ISet up error checking ON INTR 7 CALL Errmsg ENABLE INTR 7 2 OUTPUT Afg CLS OUTPUT OAfg SRE 32 OUTPUT Afg ESE 60 OUTPUT EAmp CLS OUTPUT EAmp SRE 32 OUTPUT Amp ESE 60 ICall the subprograms Rst Diffout WAIT 1 allow interrupt to be serviced OFF INTR 7 END Continued on Next Page Using the Differential small signal Outputs Programming the Agilent E1446A 2 29 240 250 SUB Diffout 260 Diffout Subprogram which sets up the E1445A and E1446A 270 COM Afg Amp 280 OUTPUT OAfg SOUR FREQ1 FIX 1E3 frequency 29 OUTPUT Afg SOUR FUNC SHAP SIN function 300 OUTPUT Afg SOUR VOLT LEV IMM AMPL MIN lamplitude 161869 Vpk 310 OUTPUT Afg OUTP LOAD AUTO ON Icouple l
62. Tenuation A er heh aL Se ee ee er eas 3 9 IMPedanc ft ain En ale oie bade elle Mak doh 3 9 QUT PUt 159 34S A eee ae ae BA EA Ore Be Se 3 11 IE 0 5 25 tate A Tek SVS Ro es ks eA ee hed 3 11 sIMPedance 1 oak eek eee o ee Ad eee BRE 3 12 HOVER oad 4 ie a ie aid Gee ia Be RAN Sa We ede idl Oe iaa 3 12 ESTATE oc tev A a a ae Via bese ape Mi E ee Ge eK at ALS 3 13 ESTATE NACI lt a A Sd BEN E R ee eh Tn 3 13 OUTPUt3 oa a Ee a eR AOE SO A A 3 15 IMPedanc pte a3 A Se EI a ae A BG 3 15 OUT PU 5 15 copes Bah te oe ath o Ga Ae Dat Bb Adee tat ee aed e 3 16 SIMPedance 4 g te La in hyd Boe Bea a OP A eh A Bw SOR ae ald 3 16 SOUR CE2 VOL Tage ech aig Gea PA ae a a ae e aes 3 17 LEVel IMMediate OFFSet ik 3 17 SPA BUS iaa wast Bi deen Tan ge Be BU Ran TA an A a vids ee GE 3 18 OPERationIQUEStionable CONDition o e e e 3 18 OPERationlOUEStionable ENABIe e 2 ee 3 19 OPERation QUEStionable EVENt o 3 19 OPERationIQUEStionable NTRansition 0000000 3 20 OPERationIQUEStionable PTRansition 00000 3 20 PRESO ti A ce EG Ges Ge Rd acai 3 21 SPY STEM toi oc ee elena cw oe chet dae Gls pelt a Sy Os na Ay Pet lige doe Meets 3 22 SER ROR os 5 citys SA Paman ad a E ee ee oo he dan aa an do mt he ce Gi 3 22 VERSION jo ioe pn ae en ee eee Ee ae UU ee ee Kn 3 22 Agilent E1446A E1405 06 DISPIay Cuco ode see hee dee ee ae a BR a
63. The model code of the Agilent E1446 amplifier is 01A316 The following READ WRITE registers are located on the amplifier e Status Control Register base 0416 e DAC Control Register base 0816 e Output Control Register base 0A 16 e Input Attenuation Register base 0C16 Examples and program statements in this appendix use 16 bit reads and writes Register Descriptions Register Based Programming C 7 The Status Register Reading the register at base 0416 reads the amplifier s Status register The Status register monitors the amplifier s input output enable conditions and overload conditions Address 15 14 13 12 11 10 9 8 7 0 not used MODID not used Main Input 1 Input2 Main FF pasem Ong 0 0 Output Enable Enable Output Li Ovid State The Control MODID A zero 0 in bit 14 indicates that the amplifier is selected by a high state on the P2 MODID line A one 1 indicates the amplifier is not selected via the P2 MODID line Main Output Ovid A one 1 in bit 11 indicates an output signal Main Output BNC can not be produced with the current input conditions Input 1 Enable A one 1 in bit 10 indicates the Input 1 BNC port is enabled A zero 0 indicates the input port is disabled Input 2 Enable A one 1 in bit 9 indicates the Input 2 BNC port is enabled A zero 0 indicates the input port is disabled Main Output State A one
64. UTPUT Afg80 RST CLS OPC 240 ENTER Afg80 Ready 250 260 Set up E1445A at logical address 72 270 OUTPUT Afg72 SOUR ROSC SOUR CLK10 Iref osc Source 280 OUTPUT Afg72 SOUR FREQ1 FIX 5E3 Ifrequency 290 OUTPUT Afg72 SOUR FUNC SHAP SIN function 300 OUTPUT Afg72 SOUR VOLT LEV IMM AMPL 1VPP lamplitude 310 OUTPUT Afg72 OUTP LOAD AUTO ON couple load to impedance 320 OUTPUT Afg72 OUTP IMP 50 loutput impedance 330 340 Set up E1445A at logical address 80 350 OUTPUT Afg80 SOUR ROSC SOUR CLK10 lref osc source 360 OUTPUT Afg80 SOUR FREQ1 FIX 100E3 Ifrequency 370 OUTPUT Afg80 SOUR FUNC SHAP SIN function 380 OUTPUT Afg80 SOUR VOLT LEV IMM AMPL 1VPP amplitude 390 OUTPUT Afg80 OUTP LOAD AUTO ON Icouple load to impedance 400 OUTPUT Afg80 OUTP IMP 50 loutput impedance 410 WAIT 1 420 OFF INTR 16 430 440 BEGIN E1446A CONFIGURATION 450 460 Declare and initialize program variables 470 480 REAL In1_atten In1_imped In2_atten In2_imped input variables 490 REAL Out1_atten Out1_imped Out1_state Imain output variables 500 REAL Out2_imped Out3_imped Idiff out variables 510 REAL Offset IDC offset variable 520 Continued on Next Page Example Programs Register Based Programming C 25 530 DATA 0 50 0 50 540 READ In1_atten In1_imped In2_atten In2_imped input atten and imp 550 560 DATA 0 50 1 main output attenuation impedance and state 57
65. _imped Out3_imped Idiff out variables 340 REAL Offset IDC offset variable 350 360 DATA 3 50 0 50 370 READ In1_atten In1_imped In2_atten In2_imped input atten and imp 380 390 DATA 0 50 1 main output attenuation impedance and state 400 READ Out1_atten Out1_imped Out1_state 410 420 DATA 50 50 differential output impedances 430 READ Out2_imped Out3_imped 440 450 Offset 0 DC offset 460 470 Set E1446A base address and initialize COM variables 480 Set_addr 88 490 500 Set up E1446A 510 Setup_e1446 In1_atten Ini_imped In2_atten In2_imped Out1_atten Out1_imped Out1_state Out2_imped Out3_imped Offset 520 530 OUTPUT Afg INIT IMM E1445A wait for arm state 540 END 550 Setting the This program sets the E1446A s input impedance to match the output amplifier Input impedance of the E1445A The signal supplied bythe E1445A isa 1 Impedance Vpp 2 MHz square wave The signal is amplified to 6 3 Vpp Again when the intended output amplitude and the input amplitude are known the amount of attenuation 0 31 dB attenuator is determined by attenuation dB 20 LOG Vo Vi 10 Example Programs Register Based Programming C 19 where Vo is the output amplitude and Vi is the input signal amplitude Vo and Vi units Vpp Vp must be the same Thus attenuation dB 20 LOG 6 3 10 4 dB BASIC RGBIMP IRE STORE RGBIMP LOADSUB ALL FROM E46SUBS COM E1446 Base_addr INTE
66. adjust alone Do not attempt internal service or adjustment unless another person capable of rendering first aid and resuscitation is present DO NOT substitute parts or modify equipment Because of the danger of introducing additional hazards do not install substitute parts or perform any unauthorized modification to the product Return the product to an Agilent Technologies Sales and Service Office for service and repair to ensure that safety features are maintained 6 Agilent E1446A Summing Amplifier DAC User s Manual DECLARATION OF CONFORMITY C According to ISO IEC Guide 22 and CEN CENELEC EN 45014 Manufacturer s Name Agilent Technologies Incorporated Manufacturer s Address 815 14 St SW Loveland Colorado 80537 USA Declares that the product Product Name Summing Amplifier DAC Model Number E1446A Product Options This declaration covers all options of the above product s Conforms with the following European Directives The product herewith complies with the requirements of the Low Voltage Directive 73 23 EEC and the EMC Directive 89 336 EEC including 93 68 EEC and carries the CE Marking accordingly Conforms with the following product standards EMC Standard CISPR 11 1990 EN 55011 1991 IEC 801 2 1991 EN50082 1 1992 IEC 801 3 1984 EN50082 1 1992 IEC 801 4 1988 EN50082 1 1992 Limit Group 1 Class A 4kV CD 8kV AD 3 V m 0 5kV signal lines 1kV power lines T
67. al from the E1445A however the E1446A is in the servant area of the E1405 Command Module Setti ng the Input This program sets the E1446A s input impedance to match the output Impedance impedance of the E1445A The signal supplied by the E1445A is a 1 Vpp 2 A gil ent E1445A MHz square wave The signal is amplified to 6 3 Vpp Again when the intended output amplitude and the input amplitude are known the amount of Commander attenuation 0 31 dB attenuator is determined by 2 14 Programming the Agilent E1446A Setting the Input Impedance attenuation dB 20 LOG V amp Vi 10 where Vo is the output amplitude and Vj is the input signal amplitude Vo and Vj units Vpp Vp must be the same Thus attenuation dB 20 LOG 6 3 10 4 dB Again the main output of the AFG is connected to Input 1 of the amplifier The steps of this program are 1 Reset the E1445A AFG and E1446A amplifier RST Set the AFG frequency function and amplitude SOURce FREQuency 1 CWl FIXed lt frequency gt SOURce FUNCtion SHAPe lt shape gt SOURce VOLTage LEVel IMMediate AMPLitude lt amplitude gt Set the AFG output load and output impedance values OUTPut 1 LOAD lt load gt OUTPut 1 MPedance lt impedance gt Set the amplifier input impedance to match the AFG output load INPut 1 IMPedance lt impedance gt Set the amplifier input attenuation INPut 1 ATTenuation lt at
68. ample Programs 180 Look for illegal values and settings conflicts 190 200 IFIni attenc 0 ORIn1_atten gt 31 5 THEN 210 DISP Invalid INP1 ATT value 220 STOP 230 ENDIF 240 IF Int_imped lt gt 50 AND In1_imped lt gt 75 AND In1_imped lt gt 1 E 6 THEN 250 DISP Invalid INP1 IMP value 260 STOP 270 ENDIF 280 290 IFIn2_atten lt 0 OR In2_atten gt 31 5 THEN 300 DISP Invalid INP2 ATT value 310 STOP 320 ENDIF 330 IF In2_imped lt gt 50 AND In2_imped lt gt 75 AND In2_imped lt gt 1 E 6 THEN 340 DISP Invalid INP2 IMP value 350 STOP 360 ENDIF 370 380 IF Out1 attenc gt 0 AND Out1_atten lt gt 20 THEN 390 DISP Invalid OUTP1 ATT value 400 STOP 410 ENDIF 420 IF Out1_imped lt gt 0 AND Out1_imped lt gt 50 AND Out1_imped lt gt 75 THEN 430 DISP Invalid OUTP1 IMP value 440 STOP 450 ENDIF 460 IF Out1_imped 0 AND Out1_atten 20 THEN 470 DISP OUTP1 ATT 20 not allowed with OUTP1 IMP 0 480 STOP 490 ENDIF 500 510 IF Out2_imped lt gt 50 AND Out2_imped lt gt 75 THEN 520 DISP Invalid OUTP2 IMP value 530 STOP 540 ENDIF 550 560 IF Out3_imped lt gt 50 AND Out3_imped lt gt 75 THEN 570 DISP Invalid OUTP2 IMP value 580 STOP 590 ENDIF 600 610 Out imped Out1_imped 620 Set e46 offset Offset 630 Continued on Next Page Example Programs Register Based Programming C 27 640 If output relay open disabled but should be clo
69. ance 1060 CASE 50 1070 Out_ctrl BINIOR Out_ctrl 8 Close 50 Ohm relay 1080 CASE 75 109 Out_ctrl BINIOR Out_ctrl 0 75 Ohm no action 1100 END SELECT 1110 1120 SELECT Out3_imped Set Diff output impedance 1130 CASE 50 1140 Out ctrl BINIOR Out_ctrl 4 Close 50 Ohm relay 1150 CASE 75 1160 Out_ctrl BINIOR Out_ctrl 0 75 Ohm no action 1170 END SELECT 1180 1190 WRITEIO 16 Base_addr 10 Out ctrl Start output relay closings 1200 1210 Now do input side 1220 1230 In ctri BINIOR In_ctrl SHIFT In1_atten 11 Set Input 1 attenuation 1240 1250 SELECT In1_imped Set Input 1 impedance 1260 CASE 50 1270 In ctri BINIOR In_ctrl 512 Close 50 Ohm relay 1280 CASE 75 1290 In ctri BINIOR In_ctrl 1024 Close 75 Ohm relay 1300 CASE 1 E 6 1310 In ctri BINIOR In_ctrl 0 1 MOhm no action 1320 END SELECT 1330 1340 In ctri BINIOR In_ctrl SHIFT In2_atten 3 Set Input 2 attenuation 1350 1360 SELECT In2 imped Set Input 2 impedance 1370 CASE 50 1380 In_ctrl BINIOR In_ctrl 2 Close 50 Ohm relay 1390 CASE 75 1400 In_ctrl BINIOR In_ctrl 4 Close 75 Ohm relay 1410 CASE 1 E 6 1420 In_ctrl BINIOR In_ctrl 0 1 MOhm no action 1430 END SELECT 1440 1450 In_ctrl BINAND In_ctrl 2 Enable inverter 1460 WRITEIO 16 Base_addr 12 In_ctrl Start input relay closings 1470 WAIT 01 Wait for relay closings to finish 1480 1490 Remove previous configura
70. ander 2 20 Setting Logical Address 1 3 Standard Commands for Programmable Instruments SCPI 3 6 Status register C 8 Subprograms used by example programs register based C 26 System Configuration 2 4 T Throughput speed C 4 V Voltage Gain 1 9 4 Index
71. ands OUTPUT Afg OUTPUT Afg ABORT abort output waveform REPEAT OUTPUT Afg SYST ERR read AFG error queue ENTER Afg Code Message PRINT Code Message UNTIL Code 0 STOP SUBEND Setting DC Offsets This program uses the same commands and sequence as previously Agile nt E1405 described except for the OUTPut 1 and SOURCe VOL Tage commands Commander shown below 6 Set the amplifier main output impedance OUTPut 1 MPedance lt impedance gt 7 Set the amplifier main output attenuation OUTPut 1 ATTenuation lt attenuation gt 8 Set the DC offset value SOURce VOLTage LEVel IMMediate OFFSet lt offset gt In this example the E1446A is a servant to the E1405 As such commands sent to the amplifier at secondary GPIB address 11 are parsed by the Command Module rather than by the E1445A OFFS05 IRE STORE OFFS05 This program uses the E1446A to generate an 8V DC offset for a 10 4 Vpp signal supplied by the E1445A AFG To accomplish this the AFG signal is attenuated by 20 dB at the amplifier input The amplifier loffset is set to 8V the output impedance to 50 ohms and the output lattenuation to O dB Into 50 ohms the 0 4 Vpp signal is centered on 18 volts 8 10 Assign I O path between the computer and E1445A and E1446A 20 ASSIGN Afg TO 70910 30 ASSIGN Amp TO 70911 Continued on Next Page Setting DC Voltage Offsets Programming the Agilent E1446A 2 23 COM Afg Amp ISet
72. anying product changes Therefore do not expect a one to one correspondence between product updates and manual updates Edition 1 Part Number E1446 90001 0 May 1992 Edition 1 Rev 2 Part Number E1446 90001 May 2006 Safety Symbols Instruction manual symbol affixed to product Indicates that the user must refer to the man Ny Alternating current AC ual for specific WARNING or CAUTION information to avoid personal injury or dam age to the product Direct current DC AN Indicates hazardous voltages Indicates the field wiring terminal that must _ be connected to earth ground before operating the equipment protects against electrical Calls attention to a procedure practice or con shock in case of fault WARNING dition that could cause bodily injury or death i i Calls attention to a procedure practice or con or Frame or chassis ground terminal typically CAUTION dition that could possibly cause damage to connects to the equipment s metal frame equipment or permanent loss of data WARNINGS The following general safety precautions must be observed during all phases of operation service and repair of this product Failure to comply with these precautions or with specific warnings elsewhere in this manual violates safety standards of design manufacture and intended use of the product Agilent Technologies assumes no liability for the customer s failure to comply wi
73. arameter Range of Default Name Type Values Units unmask numeric or O through 32767 none non decimal numeric The non decimal numeric forms are the H Q or B formats specified by TEEE 488 2 Comments Executable when initiated Yes e Coupling group none e Related commands STATus subsystem SRE STB e RST Condition unaffected e Power on Condition STATUS OPERationIQUEStionable NTRansition 0 OPERation QUEStionable PTRansition STATus OPERation IQUEStionable PTRansition lt unmask gt sets the positive transition mask For each bit unmasked a 0 to 1 transition of that bit in the associated condition register will set the same bit in the associated event register Palametets Parameter Parameter Range of Default Name Type Values Units unmask numeric or O through 32767 none non decimal numeric The non decimal numeric forms are the H Q or B formats specified by TEEE 488 2 3 20 E1446 E1445 Command Reference STATus Subsystem Comments PRESet Comments STATus PRESet e Executable when initiated Yes e Coupling group none e Related commands STATus subsystem SRE STB e RST Condition unaffected e Power on Condition STATUS OPERationIQUEStionable PTRansition 32767 STATus PRESet initializes the enable registers and transition masks for the Operation and Questionable Signal status registers and sets STATus OPC INITiate ON For both status registers
74. bit for that register is set in the status byte The status byte summary bit for the Operation status register is bit 7 for the Questionable Signal status register bit 3 Operation Status Register All bits are always 0 This register is implemented only for SCPI compatibility purposes Questionable Signal Status Register All bits are always 0 This register is implemented only for SCPI compatibility purposes Subsystem Syntax STATus OPERation QUEStionable CONDition query only ENABle lt unmask gt EVENt query only NTRansition lt unmask gt PTRansition lt unmask gt PRESet no query OPERation QUEStionable CONDition STA Tus OPERation IQUEStionable CONDition returns the contents of the appropriate condition register Reading the register does not affect its contents Comments Executable when initiated Yes e Coupling group none e Related commands STATus subsystem SRE STB e RST Condition all bits of both condition registers are cleared as a result of the state present after RST 3 18 E1446 E1445 Command Reference STATus Subsystem STATus OPERation QUEStionable ENABle Example Querying the Operation condition register STAT OPER Query Operation condition register OPERation QUEStionable ENABle STATus OPERationIQUEStionable ENABle lt unmask gt specifies which bits of the associated event register are included in its summary bit The summary bit is the bit for bit logical AN
75. ble when initiated Yes Coupling group none RST Condition none SAV lt number gt stores the current programming state into one of the 10 possible stored state areas Number indicates which of the stored state areas should be used Parameters Comments Parameter Parameter Range of Default Name Type Values Units number numeric O through 9 none Executable when initiated No Coupling group none Related Commands LRN RCL RST RST Condition unaffected Power on Condition all saved states set to the same state as the RST state 3 32 Command Reference IEEE 488 2 Common Commands SRE and SRE STB Parameters Comments Example Comments SRE and SRE SRE lt mask gt specifies which bits of the Status Byte Register are enabled to generate a service request Event and summary bits are always set and cleared in the Status Byte Register regardless of the enable mask Mask is the sum of the decimal weights of the bits to be enabled The query form returns the current enable mask Parameter Parameter Range of Default Name Type Values Units mask numeric O through 255 none A 1 in a bit position enables service request generation when the corresponding Status Byte Register bit is set a 0 disables it e Executable when initiated Yes e Coupling group none e RST Condition unaffected e Power On Condition no bits are enabled Enable service requ
76. data positive select code byte read or write negative select code word read or write READIO 8 Base_addr reg number WRITEIO 8 Base_addr reg number data Base_addr 1FC000 5 LADDR 64 6 or 2 080 768 LADDR 64 offset register offset Figure C 1A Base_addr LADDR 256 reg number offset Figure C 1A 2 External Computer over GPIB to E1405 06 Command Module VXI READ logical_address offset VXI WRITE logical_address offset data DIAG PEEK Base_addr offset width DIAG POKE Base_addr offset width data Amplifier logical address setting LADDR offset register offset Figure C 1A Base_addr 1FC00016 LADDR t 64 16 or 2 080 768 LADDR 64 offset register offset Figure C 1A LADDR Amplifier logical address LADDR 64 6 multiply quantity then convert to a hexadecimal number e g 88 64 15 160016 When using DIAG PEEK and DIAG POKE the width number of bits is 8 or 16 Register Addressing Register Based Programming C 3 Computer Configurations This section contains performance and functional information on the computer configurations that can be used with register based programming Th roughput Speed Throughput speed is based on the amount of command parsing and whether the registers are accessed from the VXI backplane or from the GPIB The computer configurations which allow faster throughput relative to each
77. delivered and licensed as commercial computer software as defined in DFARS 252 227 7013 Oct 1988 DFARS 252 211 7015 May 1991 or DFARS 252 227 7014 Jun 1995 as a commercial item as defined in FAR 2 101 a or as Restricted computer software as defined in FAR 52 227 19 Jun 1987 or any equivalent agency regulation or contract clause whichever is applicable You have only those rights provided for such Software and Documentation by the applicable FAR or DFARS clause or the Agilent standard software agreement for the product involved Agilent E1446A Summing Amplifier DAC User s Manual Edition 1 Rev 2 Copyright 1992 2006 Agilent Technologies Inc All Rights Reserved Agilent E1446A Summing Amplifier DAC User s Manual 5 Printing History The Printing History shown below lists all Editions and Updates of this manual and the printing date s The first printing of the manual is Edition 1 The Edition number increments by 1 whenever the manual is revised Updates which are issued between Editions contain replacement pages to correct the current Edition of the manual Updates are numbered sequentially starting with Update 1 When a new Edition is created it contains all the Update information for the previous Edition Each new Edition or Update also includes a revised copy of this printing history page Many product updates or revisions do not require manual changes and conversely manual corrections may be done without accomp
78. e INP IMP 50 sets the impedance of the Input 1 port to 500 The value can be queried by executing INP IMP The MINimum or MAXimum value of a parameter is determined as follows INP IMP MIN INP IMP MAX SCPI Command Execution Command Coupling The following information should be remembered when executing SCPI commands The following amplifier commands are value coupled E1446 with E1405 06 OUTPut1 ATTenuation lt attenuation gt OUTPut1 IMPedance lt impedance gt SOURce VOLTage LEVel IMMediate OF FSet lt voltage gt E1446 with E1445 OUTPut2 ATTenuation lt attenuation gt OUTPut2 IMPedance lt impedance gt SOURce2 VOLTage LEVel IMMediate OFFSet lt voltage gt SCPI Command Execution Command Reference 3 5 Linking Commands This means that sending one of these commands can change the value set previously by another one of these commands Often this results in Settings Conflict errors when the program executes To prevent these errors these commands must be executed in a Coupling Group Refer to Chapter 2 for information on executing coupled commands Linking IEEE 488 2 Common Commands Use a semicolon between the commands For example RST CLS OPC Linking Multiple SCPI Commands Use a semicolon and a colon to link commands within different subsystems For example INP IMP 50 OUTP2 IMP 50 Commands within the same subsystem are linked with a semicolon
79. e or by suppressing the end of line terminator until the last coupled command has been sent To send multiple commands in a single line or in a single statement the commands are linked as described previously with a semicolon and a colon For example OUTP2 IMP 50 OUTP2 ATT 6 or OUTP2 IMP 50 OUTP2 ATT 6 In BASIC programs the end of line EOL terminator is suppressed by placing a semicolon following the quotation mark which closes the command string For example OUTPUT 70910 OUTP2 IMP 50 OUTPUT 70910 OUTP2 ATT 6 OUTPUT 70910 OUTP2 STAT ON As shown the first two lines are coupled together The third line is not a coupled command therefore the EOL terminator is not suppressed on the second line e Commands not in the coupling group must either preceed or follow commands in the coupling group e Un coupled commands executed in a coupling group break the coupling e Error checking occurs at the end of the coupling group e Hardware updates occur at the end of the coupling group Instrument and Programming Languages Programming the Agilent E1446A 2 3 Instrument Driver The E1446A instrument driver and the example programs contained in this and Example manual are located on the following disks Prog rams Disks e Agilent E1446A Instrument Driver and BASIC Example Programs 3 5 720 kbyte disk LIF Format E1446 10031 e Agilent E1446A Instrument Driver and BASIC Example Programs 3 5 1
80. e Agilent E1446A Setting DC Voltage Offsets 5 Set the amplifier input attenuation INPut 1 ATTenuation lt attenuation gt 6 Set the amplifier main output impedance OUTPut2 IMPedance lt impedance gt 7 Set the amplifier main output attenuation OUTPut2 ATTenuation lt attenuation gt 8 Set the DC offset value SOURce2 VOLTage LEVel MMediate OFFSet lt offset gt 9 Place the AFG in the wait for arm state INITiate IMMediate Note Resetting the amplifier sets many of the same conditions set by subseguent amplifier commands in the program These commands are included however to show other parts of the amplifier configuration OFFS45 IRE STORE OFFS45 This program uses the E1446A to generate an 8V DC offset for a 10 4 Vpp signal supplied by the E1445A AFG To accomplish this the AFG signal is attenuated by 20 dB at the amplifier input The amplifier loffset is set to 8V the output impedance to 50 ohms and the output lattenuation to O dB Into 50 ohms the 0 4 Vpp signal is centered on 18 volts Assign I O path between the computer and E1445A As the commander of Ithe Agilent E1446A the E1445A sends the amplifier its commands ASSIGN Afg TO 70910 COM Afg 4 2 3 4 5 6 7 8 1 Continued on Next Page Setting DC Voltage Offsets Programming the Agilent E1446A 2 21 60 Set up error checking 70 ONINTR 7 CALL Errmsg 80 ENABLE INTR 7 2 90 OUTPUT Afg CLS 100 OUTPUT Af
81. e amplifier The steps of this program are 1 Reset the E1445A AFG and E1446A amplifier RST 2 Set the AFG frequency function and amplitude SOURce FREQuency 1 CWl FIXed lt frequency gt SOURce FUNCtion SHAPe lt shape gt SOURce VOLTage LEVel IMMediate AMPLitude lt amplitude gt 3 Couple the AFG output load value to the output impedance value OUTPut 1 LOAD AUTO lt mode gt OUTPut 1 IMPedance lt impedance gt Generating and Amplifying Sine Waves Programming the Agilent E1446A 2 9 4 Set the amplifier input impedance to match the AFG output load INPut 1 IMPedance lt impedance gt 5 Set the amplifier input attenuation INPut 1 ATTenuation lt attenuation gt 6 Set the amplifier output impedance OUTPut2 IMPedance lt impedance gt 7 Set the amplifier output attenuation OUTPut2 ATTenuation lt attenuation gt 8 Place the AFG in the wait for arm state INITiate IMMediate Note Resetting the amplifier sets many of the same conditions set by subseguent amplifier commands in the program These commands are included however to show other parts of the amplifier configuration Note For more information on how to program the Agilent E1445A AFG refer to the Agilent E1445A Arbritrary Function Generator User s Manual AMPL45 IRE STORE AMPL45 The following program uses the E1445A to generate a 1 kHz 2Vpp Isine wave The Agilent E1446A amplifies the signal to approx
82. e gt enables and disables macro usage When enable is zero macros usage is disabled Any non zero value enables macro usage The query form returns 1 if macro usage is enabled 0 if disabled Comments Macro definitions are not affected by this command e Executable when initiated Yes e Coupling group none e RST Condition macro usage is disabled e Power On Condition macro usage is enabled ESE and ESE ESE lt mask gt enables one or more event bits of the Standard Event Status Register to be reported in bit 5 the Standard Event Status Summary Bit of the Status Byte Register Mask is the sum of the decimal weights of the bits to be enabled The query form returns the current enable mask Parameters Parameter Parameter Range of Default Name Type Values Units mask numeric O through 255 none A 1 ina bit position enables the corresponding event a O disables it Comments e Executable when initiated Yes e Coupling group none e RST Condition unaffected Related Commands ESR SRE STB IEEE 488 2 Common Commands Command Reference 3 27 ESR e Power On Condition no events are enabled Example Enable all error events ESE 60 ESR Enable error events ESR returns the value of the Standard Event Status Register The register is then cleared all bits 0 Comments Executable when initiated Yes e Coupling group none e RST Condition none e P
83. e output attenuator of the Main Output BNC Either no attenuation or 20 dB may be selected when OUTPut2 IMPedance is set to either 50Q or 75Q OUTPut2 ATTenuation must be set to 0 dB when OUTPut2 IMPedance is set to 00 Parameigrs Parameter Parameter Range of Default Name Type Values Units impedance numeric 0 20 0 dB MINimum MAXimum MINimum selects 0 dB attenuation MAXimum selects 20 dB Comments Executable when initiated Yes e Coupling group Power amplifier e RST Condition OUTPut2 ATTenuation O Example Setting 20 dB output attenuation OUTP2 ATT 20 Set 20 dB output attenuation OUTPut2 Subsystem E1446 E1445 Command Reference 3 11 OUTPut2 IMPedance IMPedance OUTPut2 IMPedance lt impedance gt sets the output impedance of the Main Output BNC to either 0Q 500 or 750 OUTPut2 IMPedance 0 should be selected when an open circuit or high impedance load is connected to the output of the Agilent E1446A The matching impedance is removed from the amplifier output Also the offset voltage into an open circuit is twice that into a matched load Setting OUTPut2 IMPedance 0 compensates for this effect so that the SOURce2 VOL Tage LEVel IMMediate OFFSet command will output the specified voltage into an open circuit When OUTPut2 IMPedance is set to either 50Q or 750 either no output attenuation or 20 dB may be set OUTPut2 ATTenuation must be set to 0 dB when OUTPut2 IMPedance is set
84. e same conditions set by subseguent amplifier commands in the program These commands are included however to show other parts of the amplifier configuration DIFF45 IRE STORE DIFF45 This program uses the E1446A to generate a 10 mVpp signal from a 10 323738 Vpp signal supplied by the E1445A AFG To accomplish this the AFG signal is attenuated by 30 dB at the amplifier input The output is Itaken from the Diff and Diff outputs whose output impedances lare set to 50 ohms Assign I O path between the computer and E1445A As the commander of Ithe Agilent E1446A the E1445A sends the amplifier its commands ASSIGN Afg TO 70910 COM Afg NO OP WD ISet up error checking ON INTR 7 CALL Errmsg ENABLE INTR 7 2 OUTPUT Afg CLS 100 OUTPUT Afg SRE 32 110 OUTPUT Afg ESE 60 120 130 Call the subprograms 140 Rst 150 Diffout 160 Continued on Next Page Using the Differential small signal Outputs Programming the Agilent E1446A 2 27 170 WAIT 1 allow interrupt to be serviced 180 OFF INTR 7 190 END 200 210 SUB Diffout 220 Diffout Subprogram which sets up the E1445A and E1446A 230 COM Afg 240 OUTPUT Afg SOUR FRE 1 FIX 1E3 frequency 250 OUTPUT Afg SOUR FUNC SHAP SQU function 260 OUTPUT Afg SOUR VOLT LEV IMM AMPL MIN lamplitude 161869 Vpk 270 OUTPUT Afg OUTP LOAD AUTO ON Icouple load to impedance 280 OUTPUT Afg OUTP IMP 50 limpedance 290
85. each WRITEIO Programming the Amplifier Register Based Programming C 15 Check output relay clear main output enable bit Set main output attenuation base A bits 7 6 Set main output impedance base A bit 5 Open main output relay if final state open base A bit 4 Set DIFF output impedance base A bit 3 Set DIFF output impedance base A bit 3 Close output relays WRITEIO base A Set Input1 attenuation base C bits 15 11 Set Input impedance base C bits 10 9 Set Input2 attenuation base C bits 7 3 Set Input2 impedance base C bits 2 1 Close input relays WRITEIO base C Set output relay state base A bit 4 Remove previous output attenuation base A bits 7 6 Open output relays previous config WRITEIO base A Remove previous Input1 attenuation and impedance base C bits 15 9 Remove previous Input2 attenuation and impedance base C bits 7 1 Open Input relays previous config WRITEIO base C Set relay inactive state WRITEIO base C Set DC Offset base 8 bits 15 0 Figure C 4 Amplifier Register based Programming Flowchart C 16 Register Based Programming Programming the Amplifier Example Programs System Configuration The program listings in this section are BASIC programs in LOAD STORE format and are contained on the example programs disk Agilent
86. ed 240 OFF INTR7 250 END 260 270 SUB Afg_setup 280 Afg_setup Subprogram which sets up the E1445As and E1446A 290 COM Afg80 Afg8g 300 Set up E1445A at secondary address 10 310 OUTPUT Afg80 SOUR ROSC SOUR CLK10 Iref osc source 320 OUTPUT Afg80 SOUR FREQ1 FIX 5E3 frequency 330 OUTPUT Afg80 SOUR FUNC SHAP SIN function 340 OUTPUT Afg80 SOUR VOLT LEV IMM AMPL 1VPP lamplitude 350 OUTPUT Afg80 OUTP LOAD AUTO ON Icouple load to impedance 360 OUTPUT Afg80 OUTP IMP 50 limpedance 370 380 Setup E1445A at secondary address 11 390 OUTPUT Afg88 SOUR ROSC SOUR CLK10 Iref osc source 400 OUTPUT Afg88 SOUR FREQ1 FIX 100E3 frequency 410 OUTPUT Afg88 SOUR FUNC SHAP SIN function 420 OUTPUT Afg88 SOUR VOLT LEV IMM AMPL 1VPP lamplitude 430 OUTPUT Afg88 OUTP LOAD AUTO ON Icouple load to impedance 440 OUTPUT Afg88 OUTP IMP 50 limpedance 450 Continued on Next Page Summing Two Signals Programming the Agilent E1446A 2 33 460 Set up the Agilent E1446A 470 OUTPUT Afg80 INP1 IMP 50 linput 1 impedance 480 OUTPUT Afg80 INP1 ATT 0 linput 1 attenuation dB 490 OUTPUT Afg80 INP2 IMP 50 linput 2 impedance 500 OUTPUT Afg80 INP2 ATT 0 linput 2 attenuation dB 510 OUTPUT Afg80 OUTP3 IMP 50 IDiff output impedance 520 530 OUTPUT Afg80 INIT IMM 1E1445A wait for arm state 10 540 OUTPUT Afg88 INIT IMM 1E1445A wait for arm state 11 550 SUBEND 560 570 SUB Rst
87. ed with the command PROGram MALLocate lt nbytes gt see the Instrument BASIC user s manual for more information When the amplifier is programmed by an external computer through the E1405 06 Command Module the registers are accessed using DIAG PEEK and DIAG POKE or VXI READ and VXI WRITE DIAG PEEK DIAG POKE and VXI READ VXI WRITE Throughput speed using DIAG PEEK and DIAG POKE is faster than VXI READ and VXI WRITE because the complete register address including the A16 starting location 1FC00016 is specified VXI READ and VXI WRITE specify the device logical address and register offset only Thus the E 1405 06 processor must calculate the complete register address which decreases throughput speed Computer Configurations Register Based Programming C 5 IBASIC programming using absolute addressing or select code 8 is faster than either DIAG PEEK and DIAG POKE or VXI READ and VXI WRITE because the registers are accessed from the VXIbus backplane rather than from the GPIB Also READIO and WRITEIO do not need to be repetitively parsed at runtime Register Descriptions The READ Registers The ID Register There are two READ and four READ WRITE registers on the amplifier This section contains a description and a bit map of each register The following READ registers are located on the amplifier e ID Register base 0016 e Device Type Register base 0216 Examples and program statements in this appe
88. ence Subsystem Commands DISPlay DISPlay MONitor STATe lt mode gt INPut 1 INPut 1 ATTenuation lt attenuation gt INPut 1 IMPedance lt impedance gt INPut2 INPut2 ATTenuation lt attenuation gt INPut2 IMPedance lt impedance gt OUTPut1 OUTPut1 ATTenuation attenuation gt OUTPut1 IMPedance lt impedance gt OUTPut1 OVERload OUTPut1 STATe lt mode gt OUTPut1 STATe ACTual OUTPut2 OUTPut2 IMPedance lt impedance gt OUTPut3 OUTPut3 IMPedance lt impedance gt SOURce VOLTage SOURce VOLTagel LEVelJI IMMediate OFFSet lt voltage gt STATus STATus OPERation QUEStionable CONDition STATus OPERation QUEStionable ENABle lt unmask gt STATus OPERation QUEStionable EVENt STATus OPERation QUEStionable NTRansition lt unmask gt STATus OPERation QUEStionable PTRansition lt unmask gt STATus PRESet SYSTem SYSTem ERRor SYSTem VERsion 3 24 E1446 E1445 Command Quick Reference IEEE 488 2 Common Commands and SCPI Conformance Information SCPI Command Reference IEEE 488 2 Common Commands This section describes the IEEE 488 2 Common Commands implemented in the Agilent E1446A The table below shows the commands listed by functional group however commands are listed alphabetically in the reference Examples are shown in the reference when the command has parameters or returns a non trivial response otherwise the command string is as
89. ent gt 200 mA Short circuit maximum lt 400 mA Agilent E1446A Specifications A 1 Differential Outputs Gain Characteristics Offset Protection Relay Trip This disconnects the main output after either a voltage or a current overload of non transient duration The relay s state can be queried and reset by software control These are two outputs nominally out of phase Connectors The in phase and antiphase outputs have separate ground referenced BNC connectors Impedance 50 or 75 Q each side to ground Drive Capability 1V into 50 or 75 Q Maximum voltage gain from either input with all attenuators set to 0 dB accuracies shown are for DC Output 50 75 Q load High Z load Main 10 10 20 1 0 Differential 1 10 2 1 0 Differential 1 1 0 2 1 0 Input channel attenuators Each input channel has an independent attenuator adjustable from 0 to 31 dB in steps of 1 dB Main output attenuator Two settings 0 or 20 dB attenuation 20 dB setting is not applicable when Rout Low Z Attenuator DC accuracy 0 1 dB for each attenuator Main Output Offset is adjustable with a DAC Nominal Range to maximum output voltage i e 10V or 20V Resolution 16 bits Accuracy 0 5 of full scale plus 0 7 of setting Differential Outputs Offset accuracy is 1 of maximum output A 2 Agilent E1446A Specifications AC Characteristics General VXI Characteristics Frequency
90. es C mainframe address the module and download the SCPI driver Note The following VXIbus configuration information pertains to the Agilent E1446A Summing Amplifier DAC For more VX Ibus system configuration information refer to the C Size VXIbus Systems Installation and Getting Started Guide Agilent P N E1405 90021 Co nfigu ring the The Agilent E1446A Summing Amplifier DAC can be configured as a Amplifier servant of the Agilent E1445A Arbitrary Function Generator or as a stand alone Power Amplifier DAC Logical Address The Agilent E1446A logical address is used as follows e to place the amplifier in the servant area of a commander such as the Agilent E1445A AFG Agilent E1405 Command Module or an embedded controller In Agilent VXIbus systems the servant area is defined as Servant area logical address 1 through logical address servant area switch setting For example to place the amplifier in the servant area of the Agilent E1445A Agilent E1445A Logical address 80 Agilent E1445A Servant Area setting 8 Agilent E1446A Logical address 88 Servant Area 80 1 through 80 8 e to address the Agilent E1446A see Addressing the Amplifier later in this chapter The logical address factory setting is 88 You can change the setting during module installation Valid addresses are from 1 to 255 The amplifier s logical address switch is shown in Figure 1 2 Note The Agilent E1446A can be set to an
91. est on Message Available bit SRE 16 Enable request on MAV STB returns the value of the Status Byte Register Bit 6 decimal weight 64 is set if a service request is pending STB should not be used to read the Status Byte register if a service request is generated by a message available MAV condition e STB is a query Thus sending the command in response to a MAV condition will generate Error 410 Query interrupted e Executable when initiated Yes e Coupling group none e Related commands SRE e RST Condition none IEEE 488 2 Common Commands Command Reference 3 33 TST TST TST causes the E1446A to execute its internal self test and return a value indicating the results of the test Only communication between the command module and the on card registers is tested A zero 0 response indicates that the self test passed A one 1 response indicates that the test failed The failure also generates an error message with additional information on why the test failed When the test completes all other commands are restored to their current values when the E1446A is used with the E1405 06 When the E1446A is used with the E1445A the commands are set to their RST values Comments Executable when initiated No e Coupling group none e RST Condition none WAI WAI causes the E1446A to wait for all pending commands to complete before executing any further commands Comments Executable when i
92. g SRE 32 110 OUTPUT Afg ESE 60 120 130 Call the subprograms 140 Rst 150 Offset 160 170 WAIT 1 allow interrupt to be serviced 180 OFF INTR 7 190 END 200 210 SUB Offset 220 Offset Subprogram which sets up the E1445A and E1446A 230 COM Afg 240 OUTPUT Afg SOUR FREQ1 FIX 1E3 frequency 250 OUTPUT Afg SOUR FUNC SHAP SIN function 260 OUTPUT Afg SOUR VOLT LEV IMM AMPL 4VPP amplitude 270 OUTPUT Afg OUTP LOAD AUTO ON Icouple load to impedance 280 OUTPUT Afg OUTP IMP 50 limpedance 290 300 Set up the Agilent E1446A 310 OUTPUT Afg INP1 IMP 50 linput impedance 320 OUTPUT Afg INP1 ATT 20 linput attenuation dB 330 OUTPUT Afg OUTP2 IMP 50 Imain output impedance 340 OUTPUT Afg OUTP2 ATT 0 Imain output attenuation dB 350 OUTPUT Afg SOUR2 VOLT LEV IMM OFFS 8 DC offset 360 370 OUTPUT Afg INIT IMM 1E1445A wait for arm state 380 SUBEND 390 400 SUB Rst 410 Rst Subprogram which resets the E1445A and E1446A 420 COM Afg 430 OUTPUT Afg RST OPC reset the AFG 440 ENTER Afg Complete 450 SUBEND 460 470 SUB Errmsg 480 Errmsg Subprogram which displays E1445 E1446 programming errors 490 COM Afg 500 DIM Message 256 Continued on Next Page 2 22 Programming the Agilent E1446A Setting DC Voltage Offsets Read AFG status byte register and clear service request bit B SPOLL Afg End of statement if error occurs among coupled comm
93. g the energizing source setting bit 0 to 1 these bits must be written to again to preserve their intended setting Register Descriptions Register Based Programming C 11 Programming the Amplifier Figure C 2 is a block diagram of the Agilent E1446A Summing Amplifier D AC The diagram shows the portions of the summing amplifier D AC configured with register based programming The following information covers the sequence used to program the amplifier Base 0816 Bits 15 0 DAC control code Base 0A16 Base 0C16 Els 7 oe 20dB pen Bits 10 9 Input 1 impedance 16 bit Resolution Bras Mal Sans Bits 2 1 Input 2 impedance Bit 4 Main output enable Main power Output soo 9 or MT 2008 Atten 750 0 or MW 2008 Atten on Base 0416 Bits 3 2 output impedance of non inverting and inverting za differential output Differential small signal Base 0C16 Output Bits 15 11 Input 1 attenuation E1446A FIG1I 4 Bits 7 3 Input 2 attenuation Figure C 2 Register Programming the Summing Amplifier DAC C 12 Register Based Programming Programming the Amplifier Table C 2 E1446A Register Bit Weights
94. ges Appendix C Register Based Programming Appendix Contents The Agilent E1446A Summing Amplifier DAC amplifier is a register based device which does not support the VXIbus word serial protocol When a SCPI command is sent to the amplifier the amplifier driver in the Agilent E1445A Arbitrary Function Generator AFG or in the Agilent E1405 06 Command Module parses the command and writes the information to the amplifier registers Register based programming is a series of reads and writes directly to the amplifier registers This increases throughput speed since command parsing is eliminated and the registers can be accessed from the VXI backplane with an embedded controller or Instrument BASIC This appendix contains the information you need for register based programming The contents include e Register Addressing 0 cee eee eee o C 1 e Computer Configurations 0000 008 C 4 e Register Descriptions 00 0 0 eee C 6 e Programming the Amplifier io C 12 e Example Programs 0 0c eee ee eee eee C 17 Register Addressing The Base Address Register addresses for register based devices are located in the upper 25 of VXI A16 address space Every VXI device up to 256 devices is allocated a 32 word 64 byte block of addresses The amplifier uses six of the 32 word addresses allocated Figure C 1A shows the register address location within A16 Figure C 1B shows
95. gilent E1405 Command Module Refer to Chapter 3 Command Reference for a detailed description of the Agilent E1446A commands Refer to Chapter 8 of the Agilent E1445A Arbitrary Function Generators User s Manual for a detailed description of the Agilent E1445A commands 16 bit Resolution Main power Output 508 0 or Atten 750 ro ANN Tan oro Atten A on Differential small signal Output E1446A FIG1 4 Figure 2 6 E1446A Functional Block Diagram 2 8 Programming the Agilent E1446A Example Programs Generating and Amplifying Sine Waves The examples in this section show you how to amplify a sine wave generated by the Agilent E1445A In the first program the E1446A is a servant of the E1445A AFG In the second program the E1446A amplifies the signal from the E1445A however the E1446A is in the servant area of the E1405 Command Module Amplifying Sine This program uses the E1446A to amplify a 2 Vpp E1445A AFG signal to i 14 15 Vpp Since the intended output amplitude and the input amplitude are Waves Agilent pp tput amp put amp E1445A known the amount of attenuation 0 31 dB attenuator is determined as Commander attenuation dB 20 LOG Vo Vi 10 where Vo is the output amplitude and Vj is the input signal amplitude Vo and Vj units Vpp Vp must be the same Thus attenuation dB 20 LOG 14 20 3 dB The main output of the AFG is connected to Input 1 of th
96. gle binary condition that is either true or false Any non zero value is considered true ON OFF 1 0 e Discrete Selects from a finite number of values These parameters use mnemonics to represent each valid setting e Arbitrary Block Program Data This parameter type is used to transfer a block of data in the form of bytes The block of data bytes is preceded by a header which indicates either 1 the number of data bytes which follow definite length block or 2 that the following data block will be terminated upon receipt of a New Line message with the EOI signal true indefinite length block The syntax for data in the blocks is as follows Definite length block lt non zero digit gt lt digit s gt lt data byte s gt Where the value of lt non zero digit gt equals the number of lt digit s gt The value of lt digit s gt taken as a decimal integer indicates the number of lt data byte s gt in the block 3 4 Command Reference SCPI Command Parameters Querying Parameter Settings Indefinite length block 0 lt data byte s gt lt NL END gt Examples of sending 4 data bytes 14 lt byte gt lt byte gt lt byte gt lt byte gt 3004 lt byte gt lt byte gt lt byte gt lt byte gt 0 lt byte gt lt byte gt lt byte gt lt byte gt lt NL END gt Unless otherwise noted in the reference section parameter settings can be queried by adding a question mark to the command which set the parameter For exampl
97. he impedance to 500 If both bits are set to one 1 the impedance is 500 Setting both bits to zero 0 sets the input impedance to 1 MQ At power on the input impedance is undefined Bits 7 3 Bits 7 3 set the Input 2 attenuation from OdB to 31dB Zeros 0 in bits 7 3 set OdB attenuation Ones 1 in bits 7 3 set up to 31dB of attenuation At power on the input attenuation is undefined Bits 2 1 Bits 2 1 set the input impedance of Input 2 Setting bit 2 to one 1 sets the impedance to 752 Setting bit 1 to one 1 sets the impedance to 500 If both bits are set to one 1 the impedance is 500 Setting both bits to zero 0 sets the input impedance to 1 MQ At power on the input impedance is undefined C 10 Register Based Programming Register Descriptions Bit 0 The attenuation relays bits 15 11 and bits 7 3 are latching relays When energized these relays will latch to an open bit 0 or closed bit 1 state and remain in that state after the energizing power is removed Bit 0 is used to energize the latching relays Setting bit Oto zero 0 when setting the input attenuation energizes the relays Setting bit 0 to one 1 after the attenuation has been set removes the energizing source thus conserving power Note that bits 15 11 and 7 3 should all be set to 0 as bit 0 is set to 1 The relays associated with bits 10 9 and bits 2 1 are not latching relays Therefore when removin
98. he Self Test Agilent E1446A Self test ISend the self test command enter and display the result OUTPUT 70911 TST ENTER 7091 1 Rsit PRINT Rslt END Introductory Programs Programming the Agilent E1446A 2 5 Resetti ng and The commands to reset and clear the amplifier are Clearing the Agilent RST E1446A is Resetting the amplifier sets it to its power on configuration Clearing status on the amplifier clears the error queue Resetting and Clearing the Agilent E1446A Resetting and clearing the Agilent E1446A Assign an I O Path for the computer command module and the IE1446A Send the appropriate commands and wait for completion ASSIGN Amp to 70911 OUTPUT Amp RST CLS OPC ENTER Amp Complete END Querying the The command used to query each Agilent E1446A setting is Power on Reset rete Configuration i The LRN command queries the power on reset configuration and returns a sequence of commands that may be re sent to the amplifier 2 6 Programming the Agilent E1446A Introductory Programs LRN 1 10 20 30 40 50 60 70 80 Lrn_conf 90 100 110 120 130 140 150 160 170 180 IRE STORE LRN Assign an I O path between the computer and the amplifier ASSIGN Amp TO 70911 Call the subprogram Lrn_conf Amp END SUB Lrn conf Amp Isubprogram which gueries the amp reset configuration DIM Lrn 1000 OUTPUT EAmp LRN ENTER Amp Lrn Lrn Lrn amp REPEAT I POS Lrn
99. he produt was tested in a typical configuration with Agilent Technologies or Hewlett Packard Company test systems Safety IEC 1010 1 1990 A2 1996 EN 61010 1 1993 Canada CSA C22 2 No 1010 1 1992 UL 3111 1 3 May 2001 Date Ray Corson Product Regulations Program Manager For further information please contact your local Agilent Technologies sales office agent or distributor Authorized EU representative Agilent Technologies Deutschland GmbH Herrenberger Stra e 130 D 71034 B blingen Germany Agilent E1446A Summing Amplifier DAC User s Manual 7 Notes 8 Agilent E1446A Summing Amplifier DAC User s Manual Chapter 1 Getting Started Chapter Contents This chapter provides a description of the Agilent E1446A Summing Amplifier DAC module and describes how to install configure and program it The main sections of this chapter are e General Description Lo 1 1 e Preparation for Use io 1 3 e Basic Operation ii 1 8 General Description Features The Agilent E1446A Summing Amplifier DAC is a multifunction register based VXIbus C size module It is designed to work with either the Agilent E1445A Arbitrary Function Generator AFG or to function stand alone with the Agilent E1405 06 Command Module as a power amplifier DAC The Agilent E1446A allows you to amplify or attenuate sum and offset signals via the main output The differential small signal out
100. hen the product is integrated into becomes a part of other Agilent products During the warranty period Agilent Technologies will at its option either repair or replace products which prove to be defective For warranty service or repair this product must be returned to a service facility designated by Agilent Technologies Buyer shall prepay shipping charges to Agilent and Agilent shall pay shipping charges to return the product to Buyer However Buyer shall pay all shipping charges duties and taxes for products returned to Agilent from another country Agilent warrants that its software and firmware designated by Agilent for use with a product will execute its programming instructions when properly installed on that product Agilent does not warrant that the operation of the product or software or firmware will be uninterrupted or error free Limitation Of Warranty The foregoing warranty shall not apply to defects resulting from improper or inadequate maintenance by Buyer Buyer supplied products or interfacing unauthorized modification or misuse operation outside of the environmental specifications for the product or improper site preparation or maintenance The design and implementation of any circuit on this product is the sole responsibility of the Buyer Agilent does not warrant the Buyer s circuitry or malfunctions of Agilent products that result from the Buyer s circuitry In addition Agilent does not warrant any damage that
101. imately 14 Vpp lAssign I O path between the computer and E1445A As the commander of Ithe Agilent E1446A the E1445A sends the amplifier its commands ASSIGN Afg TO 70910 COM Afg ISet up error checking ON INTR 7 CALL Errmsg 80 ENABLE INTR 7 2 Continued on Next Page 2 10 Programming the Agilent E1446A Generating and Amplifying Sine Waves 90 OUTPUT Afg CLS 100 OUTPUT Afg SRE 32 110 OUTPUT Afg ESE 60 120 130 Call the subprograms 140 Rst 150 Sine_wave 160 170 WAIT 1 allow interrupt to be serviced 180 OFF INTR 7 190 END 200 210 SUB Sine_wave 220 Sine_wave Subprogram which sets the E1445A to output a sine wave 230 COM Afg 240 OUTPUT Afg SOUR FREQ1 FIX 1E3 frequency 250 OUTPUT Afg SOUR FUNC SHAP SIN function 260 OUTPUT Afg SOUR VOLT LEV IMM AMPL 2VPP lamplitude 270 OUTPUT Afg OUTP LOAD AUTO ON Icouple load to impedance 280 OUTPUT Afg OUTP IMP 50 loutput impedance 290 300 Set up the Agilent E1446A 310 OUTPUT Afg INP1 IMP 50 linput impedance 320 OUTPUT Afg INP1 ATT 3 linput attenuation dB 330 OUTPUT Afg OUTP2 IMP 50 Imain output impedance 340 OUTPUT Afg OUTP2 ATT 0 Imain output attenuation 350 360 OUTPUT Afg INIT IMM 1E1445A wait for arm state 370 SUBEND 380 390 SUB Rst 400 Rst Subprogram which resets the E1445A and E1446A 410 COM Afg 420 OUTPUT Afg RST OPC reset the AFG 430 ENTER Afg Complete 440 SU
102. irmware revision A 06 00 or later To verify the firmware revision of the Command Module you can use the IDN Command 10 DIM A 40 20 OUTPUT 70900 IDN 30 ENTER 70900 A 40 PRINT A 50 END IDN returns identification information for the Agilent E1405 Command Module The result of this command is HEWLETT PACKARD E1405B 0 A 06 00 For information on how to download the SCPI driver refer to the Downloading Device Drivers Installation Note Agilent P N E1400 90021 or the Agilent E1405B Command Module User s Manual Agilent P N E1405 90004 This section provides a block diagram and description of the basic operation of the Agilent E1446A Summing Amplifier DAC The description is divided into three parts e Input e Output e Offset DAC Additionally the Output section is subdivided into two parts e Main Output e Differential small signal Output Refer to Appendix A Agilent E1446A Specifications for operating specifications 1 8 Getting Started Basic Operation Input 1 o 500 75 1M0 Input 2 16 bit Resolution Main power Output 500 0 or Atten 750 ro AW eae oro Atten To og Differential small signal Output E1446A FIG1 4 Figure 1 4 E1446A Summing Amplifier DAC Block Diagram Amplifier Block Diagram Input Output Main Output Figure 1 4 shows a block diagram of the Agilent E1446A Summing Amplifier DAC The Agilent E144
103. ition STATUS OPERationIQUEStionable ENABLE 0 OPERation QUEStionable EVENt STATus OPERation IQUEStionable EVENt returns the contents of the appropriate event register Reading the register clears it to 0 e Both event registers are also cleared to O by the CLS common command e Executable when initiated Yes e Coupling group none e Related commands STATus subsystem SRE STB e RST Condition unaffected e Power on Condition Both event registers are cleared to 0 Querying the Operation event register STAT EVEN Query Operation event register STATus Subsystem E1446 E1405 06 Command Reference 3 19 STATus OPERation QUEStionable NTRansition OPERation QUEStionable NTRansition STA Tus OPERationlOUEStionable NTRansition lt unmask gt sets the negative transition mask For each bit unmasked a 1 to 0 transition of that bit in the associated condition register will set the same bit in the associated event register Parameters Parameter Parameter Range of Default Name Type Values Units unmask numeric or O through 32767 none non decimal numeric The non decimal numeric forms are the H Q or B formats specified by TEEE 488 2 Comments Executable when initiated Yes e Coupling group none e Related commands STATus subsystem SRE STB e RST Condition unaffected e Power on Condition STATUS OPERationIQUEStionable NTRansition 0 OPERation QUEStionable PTRansitio
104. low OUTP2 STAT ACT A semicolon is used to separate two or more commands within the same subsystem and can also save typing For example sending this command message OUTP2 IMP 50 OUTP2 ATT 6 OUTP2 STAT ON is the same as sending these three commands OUTP2 IMP 50 OUTP2 ATT 6 OUTP2 STAT ON A semicolon and a colon are used to separate two or more commands from different subsystems in the same command message For example INP1 IMP 50 OUTP2 IMP 50 Command Cou pling The following amplifier commands are value coupled E1446 with E1405 06 OUTPut1 ATTenuation lt attenuation gt OUTPut1 IMPedance lt impedance gt SOURce VOLTage LEVel IMMediate OF FSet lt voltage gt E1446 with E1445 OUTPut2 ATTenuation lt attenuation gt OUTPut2 IMPedance lt impedance gt SOURce2 VOLTage LEVel IMMediate OF FSet lt voltage gt This means that sending one of these commands can change the value set previously by another one of these commands Often this results in Settings Conflict errors when the program executes To prevent these errors these commands must be executed in a coupling group 2 2 Programming the Agilent E1446A Instrument and Programming Languages Executing Coupled The list below identifies rules to follow when executing coupled commands Commands e Coupled commands must be contiguous and executed in the same program statement This done by placing the commands in the same program lin
105. lowed A macro label in the DMC command could not be executed because the macro label was already defined 330 Self test failed Note the information associated with the message for a description of the failure 350 Too many errors The Agilent E1446A error queue is full and additional errors have occurred 410 Query INTERRUPTED The Agilent E1446A was sent a command before it was finished responding to a query command 420 Query UNTERMINATED The controller computer attempts to read a query response from the Agilent E1446A without having first sent a complete query command 430 Query DEADLOCKED The Agilent E1446A s input and output buffers are full and the Amplifier cannot continue 440 Query UNTERMINATED after Occurs when the IDN query is not the last query indefinite response executed in a command string Agilent E1446A Error Messages B 3 Table B 2 Agilent E1446A Settings Conflict Errors with the Agilent E1405 06 Command Module OUTP ATT 20 and OUTP IMP 0 OUTP IMP 50 set SOUR VOLT OFFS lt minimum SOUR VOLT OFFS MIN set SOUR VOLT OFFS gt maximum SOUR VOLT OFFS MAX set Table B 3 Agilent E1446A Settings Conflict Errors with the Agilent E1445A AFG OUTP2 ATT 20 and OUTP2 IMP 0 OUTP2 IMP 50 set SOUR2 VOLT OFFS lt minimum SOUR2 VOLT OFFS MIN set SOUR2 VOLT OFFS gt maximum SOUR2 VOLT OFFS MAX set B 4 Agilent E1446A Error Messa
106. lt voltage gt STATus OPERation QUEStionable CONDition ENABle lt unmask gt NTRansition lt unmask gt PTRansition lt unmask gt PRESet SYSTem ERRor VERSion SCPI Conformance Information Command Reference 3 35 Table 3 4 Non SCPI Commands Agilent E1446A E1445A Agilent E1446A E1405 06 OUTPut2 DISPlay OVERIoad MONitor STATe STATe ACTual OUTPut1 OVERIoad STATe ACTual 3 36 Command Reference SCPI Conformance Information Appendix A Specifications Appendix Contents This appendix contains the Agilent E1446A Summing Amplifier DAC operating specifications Except as noted the specifications apply under the following conditions e Period 1 year e Temperature 0 55 C e Relative humidity lt 65 0 40 C e Warm up time 1 hour Typical typ or nominal values are non warranted supplementary information provided for applications assistance Inputs Number of Inputs 2 Function These inputs have independently adjustable attenuators see below and are summed into all outputs Connectors BNC ground referenced Impedance 500 750 or 1 MQ I 20pF nominal Outputs Main Output Connector BNC ground referenced Impedance 50Q 750 or Low Z less than 12 nominal Drive Capability 10 volts DC into 50 or 75 Q Rout 50 or 75 respectively 20 volts DC into gt 100Q Rout Low Z Output curr
107. m MAXimum MINimum selects 0 dB attenuation MAXimum selects 31 dB e Coupling group none e RST Condition INPut2 ATTenuation 0 Setting 20 dB input attenuation INP2 ATT 20 Set 20 dB input attenuation INPut2 IMPedance lt impedance gt sets the input impedance of the Input 2 BNC to either 50Q 750 or 1 MQ Parameter Parameter Range of Default Name Type Values Units impedance numeric 50 75 1 0E6 Ohms MINimum MAXimum MINimum selects 50Q input impedance MAXimum selects 1 MQ 3 10 E1446 E1405 06 Command Reference INPut2 Subsystem INPut2 IMPedance Comments Coupling group none e RST Condition INPut2 MPedance 50 Example Setting 75 Q input impedance INP2 IMP 75 Set 75 Q input impedance INPut2 Subsystem E1446 E1405 06 Command Reference 3 11 OUTPut1 The OUTPutl subsystem controls the characteristics of the Agilent E1446A s Main Output BNC The subsystem sets the output attenuation sets the output source impedance monitors overload conditions and enables or disables the output Subsystem Syntax OUTPut1 ATTenuation lt attenuation gt IMPedance lt impedance gt OVERload query only STATe lt mode gt ACTual query only ATTenuation OUTPut1 ATTenuation lt attenuation gt controls the output attenuator of the Main Output BNC Either no attenuation or 20 dB may be selected when OUTPut1 IMPedance is set to either 500 or
108. minal may be enabled or disabled under user control When disabled the output appears as an open circuit This output is also overload protected via an output relay The output relay automatically opens when an overload condition is detected and disconnects the output from the load An overload occurs if the sum of the inputs plus the output of the offset DAC is excessive or if the output current limit is reached The relay remains open until the overload condition is corrected and the output is reset by the user Refer to Appendix A of this manual for these specifications Differential Small The differential small signal output sums the two input channels to obtain Signal Output a maximum output level of 1 Vpeak into a 50 75Q load One of the outputs is a non inverting amplifier same polarity as the input whereas the other is an inverting amplifier opposite polarity as the input Into a high impedance each input has a maximum gain of two The output impedance of each amplifier can be independently set to either 50Q or 750 With two low level output terminals output signals can be taken from either of the terminals with respect to ground or across the two terminals in series Output signals taken across the two terminals will result in two times the input voltage Figure 1 5 shows the circuitry of the output signal taken across the two terminals E1400 MAINFRAME E1406 Command Module
109. mming SCPI Command Structure Though the E1446A amplifier is a register based device this module can be programmed with SCPI commands using the Agilent E1445A AFG or Agilent E1405 Command Module This section describes the SCPI programming environment SCPI Standard Commands for Programmable Instruments is an ASCll based instrument command language designed for test and measurement instruments The Agilent E1445A AFG or the Agilent E1405 Command Module with the amplifier driver installed interprets the ASCII command strings and sets the amplifier accordingly The AFG and Command Module do this by writing to the amplifier registers The Agilent E1446A SCPI command set is found in Chapter 3 SCPI commands are based on a hierarchical structure also known as a tree system In this system associated commands are grouped together under a common node or root thus forming subtrees or subsystems An example is the amplifier s OUTPut2 subsystem shown on the following page Instrument and Programming Languages Programming the Agilent E1446A 2 1 OUTPut2 ATTenuation lt attenuation gt IMPedance lt impedance gt OVERload query only STATe lt mode gt ACTual query only OUTPut2 is the root keyword of the command ATTenuation IMPedance OVERload and STATe are second level keywords and ACTual is the third level keyword A colon always separates a command keyword from a lower level keyword as shown be
110. mming Two Signals Programming the Agilent E1446A 2 35 2 36 Programming the Agilent E1446A Summing Two Signals Chapter 3 Command Reference Chapter Contents This chapter describes the Standard Commands for Programmable Instruments SCPI command set and the IEEE 488 2 Common Commands for the Agilent E1446A Summing Amplifier DAC Included in this chapter are the following sections e Command Types 0 eee cece eee eee 3 2 e SCPI Command Format 0 0000 0000 3 2 e SCPI Command Parameters 0000005 3 4 e SCPI Command Execution LL 3 5 e SCPI Command Reference 3 6 e EEE 488 2 Common Commands 05 3 25 e SCPI Conformance Information3 35 Agilent E1446A Agilent E1445A Commands INPUT oes cdi aci n 3 7 ATTenuation 3 7 IMPedance 3 7 INPUt soda dana e hilo 3 9 ATTenuation 3 9 IMPedance 3 9 OUTPut2 on 3 11 ATTenuation 3 11 IMPedance 05 3 12 OVER 0a sie Mete dd 3 12 ESTA TO aia os alee 3 13 ACTUA ooo 3 13 OUT PURI ecuacion oi mah 3 15 IMPedance 3 15 OUT PU Lonas a an an 3 16 IMPedance 3 16 SOURce2 VOLTage 3 17 LEVel IMMediate OFFset 3 17 STATUS cried cn epale ns dde 3 18 OPERation QUEStionable 3 18
111. n STATus OPERation IQUEStionable PTRansition lt unmask gt sets the positive transition mask For each bit unmasked a 0 to 1 transition of that bit in the associated condition register will set the same bit in the associated event register Parameters Parameter Parameter Range of Default Name Type Values Units unmask numeric or O through 32767 none non decimal numeric The non decimal numeric forms are the H Q or B formats specified by TEEE 488 2 Comments Executable when initiated Yes e Coupling group none e Related commands STATus subsystem SRE STB 3 20 E1446 E1405 06 Command Reference STATus Subsystem PRESet Comments STATus PRESet e RST Condition unaffected e Power on Condition STATUS OPERationlOUEStionable PTRansition 32767 STATus PRESet initializes the enable registers and transition masks for the Operation and Questionable Signal status registers and sets STATus OPC INITiate ON For both status registers the enable registers are set to 0 the negative transition masks are set to 0 and the positive transition masks are set to 32767 e Executable when initiated Yes e Coupling group none e Related commands STATus subsystem SRE STB e RST Condition none STATus Subsystem E1446 E1405 06 Command Reference 3 21 SYSTem The SYSTem subsystem returns error messages and the SCPI version number to which the Agilent E1446A complies Subsystem
112. n in Figure C 3 Previous Amplifier Configuration Close relays corresponding to new Set New Configuration configuration Combined Relays from previous configuration and new configuration closed Previous New Configuration Remove Open relays corresponding to previous configuration Previous Configuration Figure C 3 Recommended Amplifier Configuration Sequence Programming begins with the amplifier in its previous current configuration This may be the reset configuration or some other preset condition The register based program sets the new configuration while maintaining the previous configuration This prevents a possible momentary all relay open situtation which could output a high voltage glitch Once the relays especially the attenuation and impedance relays of the new configuration are closed the relays corresponding to the previous configuration are opened C 14 Register Based Programming Programming the Amplifier Program Execution The new amplifier configuration is set as shown in Figure C 4 The execution sequence shown configures the amplifier from right to left relative to Figure C 2 Note Unlike other register based devices there is not a status bit which can be monitored to determine when the amplifier registers can be written to WRITEIO To allow the relays to close or open a 5 mS wait period BASIC has 10 mS resolution should be included following
113. ndix use 16 bit reads In most cases however only the lower eight bits are used The amplifier s ID register indicates the classification addressing mode and the manufacturer of the device Address 15 14 13 12 11 0 base 0016 Device Address Manufacturer ID Class Mode Device Classification Bits 15 and 14 classify a device as one of the following memory device extended device message based device register based device pl Oo SO m m The Agilent E1446 Summing Amplifier D AC is a register based device C 6 Register Based Programming Register Descriptions The Device Type Addressing Mode Bits 13 and 12 indicate the addressing mode used by the device 0 0 A16 A24 address mode 0 1 A16 A32 address mode 10 RESERVED 1 1 A16 address mode The Agilent E1446 amplifier uses the A16 address mode Manufacturer ID Bits 11 through 0 identify the manufacturer of the device Agilent Technologie s ID number is 4095 which corresponds to bits 11 0 being set to 1 Given the device classification addressing space and manufacturer of the Agilent E1446 reading the ID register returns FFFF 16 The Device Type register contains a model code which identifies the Reg ister device Address 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 base 0216 Model Code The READ WRITE Registers Model Code
114. ng a space or comma between parameters 103 Invalid separator Parameter is separated by a character other than a comma 104 Data type error The wrong data type number character string expression was used when specifying the parameter 108 Parameter not allowed Parameter specified in a command which does not require one 109 Missing parameter Command requires a parameter s 112 Program mnemonic too long Command keyword gt 12 characters 113 Undefined header Command header keyword was incorrectly specified 121 Invalid character in number A character other than a comma or number is in the middle of a number 123 Numeric overflow A parameter value is greater than what can be represented with the number format 124 Too many digits More than 256 digits were used to specify a number 128 Numeric data not allowed A number was specified when a letter was required 131 Invalid suffix Parameter suffix incorrectly specified e g VO rather than VP 138 Suffix not allowed Parameter suffix is specifed when one is not allowed 141 Invalid character data Discrete parameter specified is not a valid choice 144 Character data too long A segment or sequence name is too long or a discrete parameter is gt 12 characters Segment and sequence names must be 12 characters or less 148 Character data not allowed Discrete parameter was specified when another type e g numeric boolean is required 158 String data not allowed A st
115. nitiated Yes e Coupling group none e Related commands OPC OPC e RST Condition none 3 34 Command Reference IEEE 488 2 Common Commands The Agilent E1446A Summing Amplifier DAC conforms to the SCPI Conformance Information SCPI 1991 0 standard The following tables list all the SCPI confirmed approved and non SCPI commands that the Agilent E1446A can execute Table 3 2 SCPI Confirmed Commands E1446A E1445A INPut 1 ATTenuation lt attenuation gt IMPedance lt impedance gt INPut2 ATTenuation lt attenuation gt IMPedance lt impedance gt OUTPut2 ATTenuation lt attenuation gt IMPedance lt impedance gt STATe lt mode gt OUTPut3 IMPedance lt impedance gt OUTPut4 IMPedance lt impedance gt SOURce2 VOLTage LEVel IMMediate OFFSet lt voltage gt STATus OPERation QUEStionable CONDition ENABle lt unmask gt NTRansition lt unmask gt PTRansition lt unmask gt PRESet SYSTem ERRor VERSion Table 3 3 SCPI Confirmed Commands E1446A E1405 06 INPut 1 ATTenuation lt attenuation gt IMPedance lt impedance gt INPut2 ATTenuation lt attenuation gt IMPedance lt impedance gt OUTPut1 ATTenuation lt attenuation gt IMPedance lt impedance gt STATe lt mode gt OUTPut2 IMPedance lt impedance gt OUTPut3 IMPedance lt impedance gt SOURce VOL Tage LEVel IMMediate OFFSet
116. nt E1446A User s Manual Contents 3 A Specifications Appendix Contents un A 1 A E A A 1 QUIPULS as a A ee a ee a Aa a a Ra A 1 Gain Characteristics d ta a oe A ed See Ban es A 2 Offset Fk a ee a aR es oy aed ht ett Se oath Anak 8 A 2 AC Characteristics g And 208 Soke on ee Shae Se ees tia OSes A 3 General VXI Characteristics o oo oea a a A 3 B Error Messages Table B 1 Agilent E1446A Error Messages o o Lo B 2 Table B 2 Agilent E1446A Settings Conflict Errors with the Agilent E1405 06 B 4 Table B 3 Agilent E1446A Settings Conflict Errors with the Agilent E1445A B 4 C Register Based Programming Appendix Contents 44 0 wines a E OR e hw BN oe C 1 Register Addressihg iii de a Pa ee Bk ee Roe ae els BO Pe ed C 1 The Base Addr ss ici Sete teh bleh a ER RA ee alee C 1 Computer Configurations ee ee C 4 Throughput Speed socso each da See ee eae eee a ab As C 4 Embedded Computer Programming C Size Systems C 4 IBASIC Programming 24 pe ee eke Papa eee Ba ae en es C 4 External Computer Programming 0 000 eee eee C 5 Register Descriptions oa C 6 The READ Registers e Tenri ea 8 a ben ace e a a C 6 The ID Register aaia a ws ea a Aa ee Ra C 6 The Device Type Register 523 s pets ward a ed ee she C 7 The READ WRITE Registers 2 0 2 o a C 7 The Status Register ee ee C 8 The Control Register tii at sa fae Be A We aw
117. ntroller external controller or by an embedded controller This section describes how to address the amplifier using an external controller with the Agilent E1445A AFG with the Agilent E1405 06 Command Module and with an embedded controller The Agilent E1446A can be programmed from an external controller via the Agilent E1445A AFG or the Agilent E1405 06 Command Module In an Agilent VXIbus system using an external controller the amplifier is located by an GPIB address which consists of an interface select code a primary GPIB address and a secondary GPIB address Interface Select Code Determined by the address of the GPIB interface card in the controller For most Agilent Technologies controllers this card has a factory set address of 7 Primary GPIB Address Determined by the address of the GPIB port on the Agilent E1405 Command Module Valid addresses for the Command Module are 0 to 30 The Command Module has a factory set address of 9 Preparation for Use Getting Started 1 5 Secondary GPIB Address Determined by dividing the logical address of the device by 8 If the amplifier is used with the Agilent E1445A the secondary address is the E1445A logical address 8 If the amplifier is used with the Agilent E1405 06 Command Module the secondary address is the E1446A logical address 8 Agilent E1445A AFG An example of the GPIB address in an BASIC statement when the amplifier is a servant of the Agilent E1445A is
118. oad to impedance 320 OUTPUT Afg OUTP IMP 50 limpedance 330 340 Set up the Agilent E1446A 350 OUTPUT Amp INP1 IMP 50 linput impedance 360 OUTPUT Amp INP1 ATT 30 linput attenuation dB 370 OUTPUT Amp OUTP2 IMP 50 IDiff output impedance 380 OUTPUT Amp OUTP3 IMP 50 IDiff output impedance 390 400 OUTPUT Afg INIT IMM 1E1445A wait for arm state 410 SUBEND 420 430 SUB Rst 440 Rst Subprogram which resets the E1445A and E1446A 450 COM Afg Amp 460 OUTPUT Afg RST OPC reset the AFG 470 ENTER Afg Complete 480 OUTPUT Amp RST OPC reset the amplifier 490 ENTER Amp Complete 500 SUBEND 510 520 SUB Errmsg 530 Errmsg Subprogram which displays E1445 E1446 programming errors 540 COM Afg Amp 550 DIM Message 256 560 Read AFG at sec addr 10 status byte register clear service 570 reguest bit 580 B SPOLL Afg 590 IF BIT B 6 THEN AFG requested service 600 End of statement if error occurs among coupled commands 610 OUTPUT Afg 620 OUTPUT Afg ABORT abort output waveform 630 PRINT E1445A errors 640 PRINT 650 REPEAT 660 OUTPUT Afg SYST ERR read AFG error queue 670 ENTER Afg Code Message 680 PRINT Code Message 690 UNTIL Code 0 Continued on Next Page 2 30 Programming the Agilent E1446A Using the Differential small signal Outputs STOP END IF IRead AMP at sec addr 11 status byte register clear service Ireguest bit B SPOLL Amp
119. occurs as a result of the Buyer s circuit or any defects that result from Buyer supplied products NO OTHER WARRANTY IS EXPRESSED OR IMPLIED Agilent SPECIFICALLY DISCLAIMS THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE Exclusive Remedies THE REMEDIES PROVIDED HEREIN ARE BUYER S SOLE AND EXCLUSIVE REMEDIES Agilent SHALL NOT BE LIABLE FOR ANY DIRECT INDIRECT SPECIAL INCIDENTAL OR CONSEQUENTIAL DAMAGES WHETHER BASED ON CON TRACT TORT OR ANY OTHER LEGAL THEORY Notice The information contained in this document is subject to change without notice Agilent Technologies MAKES NO WARRANTY OF ANY KIND WITH REGARD TO THIS MATERIAL INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE Agilent shall not be liable for errors contained herein or for incidental or consequential damages in connection with the furnishing performance or use of this material This document contains proprietary information which is protected by copyright All rights are reserved No part of this document may be photocopied reproduced or translated to another language without the prior written consent of Agilent Technologies Inc Agilent assumes no responsibility for the use or reliability of its software on equipment that is not furnished by Agilent U S Government Restricted Rights The Software and Documentation have been developed entirely at private expense They are
120. ower On Condition register is cleared GMC GMC lt name gt returns the definition of the specified macro in IEEE 488 2 definite block format Parameters Parameter Parameter Range of Default Name Type Values Units name string defined macro name none data Comments e Executable when initiated Yes e Coupling group none e Related Commands DMC e RST Condition none e Power On Condition no macros are defined 3 28 Command Reference IEEE 488 2 Common Commands IDN LMC Example Note Comments Comments IDN Query macro definition GMC RESTART Query macro definition IDN returns identification information for the E1446A The response consists of four fields HEWLETT PACKARD E1446A 0 A 01 00 The first two fields identify this instrument as model number E1446A manufactured by Agilent Technologies The third field is 0 since the serial number of the E1446A is unknown to the firmware The last field indicates the revision level of the firmware The firmware revision field will change whenever the firmware is revised A 01 00 is the initial revision The first two digits indicate the major revision number and increment when functional changes are made The last two digits indicate bug fix level e Executable when initiated Yes e Coupling group none e RST Condition none LMC returns a comma separated list of quoted strings each containing the name of a
121. plifier 1 10 Operation Basic description 1 10 Small signal 1 10 Disks Instrument driver and example programs 2 4 Downloading 1 7 SCPI Driver 1 7 1 8 E Embedded computer programming C 4 Errmsg subprogram C 32 Example programs summing two signals 2 31 2 35 disks 2 4 Index 1 generating a sine wave C 18 Generating amplifying Sine Waves 2 9 2 13 setting a DC voltage offset C 21 Setting DC Offsets 2 20 2 25 Setting Input Impedance 2 14 2 19 setting the input impedance C 19 summing two signals C 24 using the differential outputs C 23 Example programs subprograms C 26 Example Programs register based C 16 C 32 External computer programming C 5 F Format Common Command 3 2 SCPI Command 3 2 3 3 G Gain Voltage 1 9 General Description Block diagram 1 9 Device information 1 2 Features 1 1 1 2 IBASIC programming C 4 absolute addressing C 4 select code 8 C 4 IBASIC variables C 5 ID register C 6 Impedance Input Values 1 9 Impedance Output Differential Small signal values 1 10 Main Power 1 9 Main Power values 1 10 Implied keywords 3 3 Input attenuation register C 10 Input signals summing two 2 31 2 35 Interface Select Code 1 5 Introductory Programs Executing Self Test 2 5 Querying the Power on Reset 2 6 Resetting Clearing status registers 2 6 2 Index K Keywords optional 3 3 implied 3 3 L Linking Commands 3 6 Logical Address Setting 1 3 System configu
122. put allows you to invert a signal The Agilent E1446A Summing Amplifier DAC has the following features e provides two input channels that have independently controlled input impedance independently controlled input attenuators of O to 31 dB in 1 dB steps e sums the two input channels e provides output channels that include single ended main output power amplifier differential small signal output one inverting one non inverting functions as stand alone offset DAC provides a DAC for offset control of the main output acts as a servant to the Agilent E1445A AFG has SCPI language commands using the Agilent E1405 06 Command Module or using the Agilent E1445A AFG e uses 1 slot in the Agilent 75000 Series C mainframe General Description Getting Started 1 1 UN E O Ol Ue AMPLIFIER Orseess MAIN OUTPUT ENABLED Logical Address 1 LITE Ji 0 Device Information DIFF oe n Device type register based C size 1 slot Addressing modes A16 VXIbus Revision Compliance 1 3 SCPI Revision 1991 0 See side of module for power cooling E1446A requirements bu E1446A fig1 1 2 Figure 1 1 The E1446A Summing Amplifier DAC 1 2 Getting Started General Description Preparation for Use This section shows you how to configure the module install it in the Agilent 75000 Seri
123. ration 2 4 Valid 1 3 Main output 1 9 Attenuation 1 10 Block diagram of amplifier 1 9 Features of amplifier 1 1 Impedance 1 10 Operation Basic description 1 9 O Offset DAC 1 11 Block diagram of amplifier 1 8 Digital to Analog Converter 1 11 Features of amplifier 1 1 Offset binary code 1 11 Operation Basic description 1 11 Open circuit 1 10 Operation Basic description of 1 8 Block diagram 1 8 Input 1 9 Output 1 9 Optional keywords 3 3 Output channels Differential 1 1 1 8 1 10 Main 1 1 1 8 1 9 Power 1 9 Small signal 1 9 1 10 Output control register C 9 P Parameter types SCPI 3 4 Parameters querying settings 3 5 Preparation Addressing 1 5 Configuring 1 2 1 3 Installing 1 4 Logical Address 1 3 Logical Address setting 1 3 Primary GPIB 1 5 Program execution register based C 15 Program sequence and execution C 14 Programming the amplifier register based programming C 12 C 15 Programs Application Selecting Input Impedance 2 17 Programs Example Amplifying Sine Waves 2 9 Programs Introductory Executing Self Test 2 5 Resetting Clearing the status registers 2 6 Programs register based examples C 16 C 32 Q Querying parameter settings 3 5 Querying the Power on Reset LRN 2 6 R READ registers C 6 READ WRITE registers C 7 Register addressing C 1 C 3 Register descriptions C 6 C 11 Control C 8 DAC control C 9 Device Type C 7 ID C 6 Input attenuation C 10 O
124. ring was specified when another parameter type i e discrete numeric boolean is required 161 Invalid block data The number of bytes in a definite length data block does not equal the number of bytes indicated by the block header 168 Block data not allowed Block data was specified when another parameter type i e discrete numeric boolean is required B 2 Agilent E1446A Error Messages Table B 1 Agilent E1446A Error Messages Con t Code Message Description 178 Expression data not allowed Expression data was specified when another parameter type is required 183 Macro execution error Macro program data sequence could not be executed due to invalid data inside the macro definition 221 Settings conflict See Settings Conflict Error Messages at the end of this table 222 Data range error Data out of range 270 Macro error RMC lt name gt was executed and name is not defined 272 Macro execution error Macro program data sequence could not be executed due to a syntax error within the macro definition 273 Ilegal macro label The macro label defined in the DMC command was too long the same as a common command keyword or contained invalid header syntax 276 Macro recursion error A macro program data sequence could not be executed because the sequence leads to the execution of a macro being defined 277 Macro redefinition not al
125. s the impedance to 750 At power on the impedance of both outputs is undefined Bit 1 Setting bit 1 to one 1 sets the Main output impedance to 0Q Setting bit 1 to zero 0 opens the 0Q path The output attenuation must be set to 0 dB bit 7 if the impedance is set to OQ Bit 5 must also be set to one 1 to get OQ output impedance At power on the Main output impedance is undefined Bit 0 Bit 0 is a reserved bit and must remain set to one 1 At power on the bit setting is undefined The Input The Input Attenuation register controls the attenuation and impedance Attenuation Register of the amplifier s inputs Input 1 and Input 2 Address 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 Input 1 attenuation and impedance X Input 2 attenuation and impedance base OCig 16dB 8dB 4dB 2dB 1dB 75Q 500 not 16dB 8dB 4dB 2dB 1B 750 500 relay atten atten atten atten atten in in Jused atten atten atten atten atten in in act imp imp imp imp Bits 15 11 Bits 15 11 set the Input 1 attenuation from OdB to 31dB Zeros 0 in bits 15 11 set OdB attenuation Ones 1 in bits 15 11 set up to 31dB of attenuation At power on the input attenuation is undefined Bits 10 9 Bits 10 9 set the input impedance of Input 1 Setting bit 10 to one 1 sets the impedance to 750 Setting bit 9 to one 1 sets t
126. sed clear main 650 output enable bit 660 670 IF Out1 state AND NOT BINAND READIO 16 Base_addr 4 256 THEN 680 WRITEIO 16 Base_addr 10 BINAND READIO 16 Base_addr 10 17 690 ENDIF 700 710 Set up output and input relays Close new relays particularly the 720 attenuation and impedance relays before opening old relays to prevent 730 apossible momentary all open situation which could output a high 740 voltage glitch 750 760 Do output side first 770 780 SELECT Out1_atten Set main output attenuation 790 CASE 0 800 Out ctrl 128 Close 0 dB path relay 810 CASE 20 820 Out ctrl 64 Close 20 dB path relay 830 END SELECT 840 850 SELECT Out1_imped Set main output impedance 860 CASE O 870 Out_ctrl BINIOR Out ctrl 34 Close 0 Ohm relay 880 CASE 50 890 Out ctrl BINIOR Out ctrl 32 Close 50 Ohm relay 900 CASE 75 910 Out_ctrl BINIOR Out_ctrl 0 75 Ohm no action 920 END SELECT 930 940 If output relay was closed enabled set new state here If it 950 was open close it before previous configuration is removed 960 970 IF BINAND READIO 16 Base_addr 4 256 THEN 980 IF Out1 state THEN 990 Out_ctrl BINIOR Out ctrl 16 Relay close 1000 ELSE 1010 Out_ctrl BINAND Out_ctrl 17 Relay open 1020 ENDIF 1030 ENDIF 1040 Continued on Next Page C 28 Register Based Programming Example Programs 1050 SELECT Out2_imped Set Diff output imped
127. sed in paths 1 through 3 are given below Refer to Appendix C for information on addressing the amplifier during register based programming 1 OUTPUT 1680 INP IMP 75 In this addressing configuration the E1445A must be in the servant area of the embedded controller and the E1446A must be in the servant area of the E1445A Select code 16 is the only select code that can be used with this configuration 2 OUTPUT 70911 INP IMP 75 In this addressing configuration the E1446 must be in the servant area of the E1405 06 Select code 7 GPIB is the only select code that can be used with this configuration 3 OUTPUT 70910 INP IMP 75 In this configuration the E1445 must be in the servant area of the E1405 06 The E1446 must be in the servant area of the E1445A Select code 7 GPIB is the only select code that can be used with this configuration When using the Agilent E1445A AFG the SCPI driver is resident in ROM and ready to control the Agilent E1446A However to use the Agilent E1405 Command Module the SCPI driver must be downloaded into the Command Module s non volatile memory from a disk Both DOS and LIF formatted driver disks are shipped with the Agilent E1446A The drivers can be downloaded from controllers running DOS BASIC workstation Preparation for Use Getting Started 1 7 Note Basic Operation IBASIC or BASIC UX Downloadable driver capability is available on the Agilent E1406 and on the E1405 with f
128. standard defines Common Commands that perform functions like reset self test status byte query etc Common commands are four or five characters in length always begin with the asterisk character and may include one or more parameters The command keyword is separated from the first parameter by a space character Some examples of Common commands are shown below RST CLS ESE lt unmask gt OPC STB SCPI Command Format The functions of the summing amplifier DAC are programmed using SCPI commands SCPI commands are based on a hierarchical structure also known as a tree system In this system associated commands are grouped together under a common node or root thus forming subtrees or subsystems An example is the amplifier s OUTPut2 subsystem shown on the following page 3 2 Command Reference SCPI Command Format Command Separator Abbreviated Commands Implied Optional Keywords OUTPut2 ATTenuation lt attenuation gt IMPedance lt impedance gt OVERload query only STATe lt mode gt ACTual query only OUTPut2 is the root keyword of the command ATTenuation IMPedance OVERload and STATe are second level keywords and ACTual is the third level keyword A colon always separates one command keyword from a lower level command keyword as shown below OUTP2 STAT ACT The command syntax shows most commands as a mixture of upper and lower case letters The upper case le
129. table when initiated Yes e Coupling group none e Related commands DMC RMC e RST Condition none RCL RCL lt number gt restores a previously stored programming state from one of the 10 possible stored state areas Number indicates which of the stored state areas should be used Parameters Parameter Parameter Range of Default Name Type Values Units number numeric O through 9 none Comments Executable when initiated No e Coupling group none e Related Commands LRN RST SAV e RST Condition unaffected e Power on Condition all saved states set to the same state as the RST state RMC RMC lt name gt purges only the specified macro definition NOTE At printing time RMC is a command proposed and accepted for a revision and re designation of IEEE 488 2 Comments Use the PMC command to purge all macro definitions in one command e Executable when initiated Yes e Coupling group none IEEE 488 2 Common Commands Command Reference 3 31 RST RST Related commands DMC PMC RST Condition none RST resets the Agilent E1446A as follows Sets all commands to their RST state Aborts all pending operations including waveform generation RST does not affect Comments SAV The output queue The Service Request Enable Register The Standard Event Status Enable Register The enable masks for the OPERation Status and Questionable Signal registers Executa
130. tage Offsets ii ea Ges ee So ea PA ae GO anta un sd 2 20 Setting DC Offsets Agilent E1445A Commander 2 20 Setting DC Offsets Agilent E1405 Commander 2 23 Using the Differential small signal Outputs 00 2 26 Using the Differential Outputs Agilent E1445A Commander 2 26 Using the Differential Outputs Agilent E1405 Commander 2 29 Summing TWO Signals taras Sta wh a Pee al tan Se hee a 2 31 Agilent E1446A User s Manual Contents 1 3 Command Reference Chapter Contents irin ta A A A Ee E 3 1 Command PES 40 rta o o en tle ed o be una ae Ee ge 3 2 Common Command Format ee 3 2 SCPI Command Format 0 E A R a Ea eee 3 2 Command Separator in 3 3 Abbreviated Commands ik 3 3 Implied Optional Keywords o o o 3 3 SCPI Command Parameters oa 3 4 Parameter Types Explanations and Examples o o 3 4 Querying Parameter Settings oo 3 5 SCPI Command Execution 3 5 Command Couple oc 4 5 a en Dan ana Be Ta Yaa Aan 3 5 Dinkins Commands yoo Gels saban napas BE a asn Ka Rete 3 6 SCPI Command Reference ee 3 6 Agilent E1446A E1445A IN PU NP edan ee a ts Ba Peat eS Ga Se Ate Be 3 7 SAT Tenuationys 4G 2 ale he ee we al ee SOAR oe Sa ee eS 3 7 IMP dance ua ds RA ee ele A ae he hae Sls Bar ee aA as 3 7 INPUZ e ica eM Geo Se deere thal Al oe eae a wo Ses 3 9 AT
131. tenuation gt Set the amplifier output impedance OUTPut2 IMPedance lt impedance gt Set the amplifier output attenuation OUTPut2 ATTenuation lt attenuation gt Setting the Input Impedance Programming the Agilent E1446A 2 15 8 Place the AFG in the wait for arm state INITiate IMMediate Note Resetting the amplifier sets many of the same conditions set by subseguent amplifier commands in the program These commands are included however to show other parts of the amplifier configuration IN IMP45 IRE STORE IN IMP45 This program sets the AFG s output impedance and output load Ito 75 ohms The Agilent E1446A amplifier s input impedance is set to 175 ohms to match the AFG The 1 Vpp AFG square wave is amplified Ito 6 3 Vpp Assign I O path between the computer and E1445A ASSIGN Afg TO 70910 COM Afg ISet up error checking ON INTR 7 CALL Errmsg ENABLE INTR 7 2 OUTPUT Afg CLS OUTPUT Afg SRE 32 100 OUTPUT Afg ESE 60 110 120 Call the subprograms 130 CALL Rst 140 CALL Out_load 150 160 WAIT 1 allow interrupt to be serviced 170 OFF INTR 7 180 END 190 200 SUB Out_load 210 Out_load Subprogram which sets the output load 220 COM Afg 230 OUTPUT Afg SOUR FREQ1 FIX 2E6 frequency 240 OUTPUT Afg SOUR FUNC SHAP SQU function 250 OUTPUT Afg SOUR VOLT LEV IMM AMPL 1VPP amplitude 260 OUTPUT Afg OUTP IMP 75 loutput impedance 270 OUTPUT Afg OUTP LOAD 75 loutp
132. th these requirements Ground the equipment For Safety Class 1 equipment equipment having a protective earth terminal an uninterruptible safety earth ground must be provided from the mains power source to the product input wiring terminals or supplied power cable DO NOT operate the product in an explosive atmosphere or in the presence of flammable gases or fumes For continued protection against fire replace the line fuse s only with fuse s of the same voltage and current rating and type DO NOT use repaired fuses or short circuited fuse holders Keep away from live circuits Operating personnel must not remove equipment covers or shields Procedures involving the removal of covers or shields are for use by service trained personnel only Under certain conditions dangerous voltages may exist even with the equipment switched off To avoid dangerous electrical shock DO NOT perform procedures involving cover or shield removal unless you are qualified to do so DO NOT operate damaged equipment Whenever it is possible that the safety protection features built into this product have been impaired either through physical damage excessive moisture or any other reason REMOVE POWER and do not use the product until safe operation can be verified by service trained personnel If necessary return the product to an Agilent Technologies Sales and Service Office for service and repair to ensure that safety features are maintained DO NOT service or
133. the enable registers are set to 0 the negative transition masks are set to 0 and the positive transition masks are set to 32767 e Executable when initiated Yes e Coupling group none e Related commands STATus subsystem SRE STB e RST Condition none STATus Subsystem E1446 E1445 Command Reference 3 21 SYSTem The SYSTem subsystem returns error messages and the SCPI version number to which the Agilent E1446A complies Subsystem Syntax SYSTem ERRor query only VERSion query only ERRor SYSTem ERROR returns the error messages in the error queue See Appendix B for a listing of possible error numbers and messages Comments The Agilent E1446A places any generated errors into the error queue The queue is first in first out With several errors waiting in the queue the SY STem ERRor returns the oldest unread error message first e The error queue can hold 30 error messages If the Agilent E1446A generates more than 30 messages that are not read it replaces the last error message in the queue with error 350 Too many errors No additional messages are placed into the queue until SYSTem ERRor reads some messages or the CLS clear status command clears the queue e When the error queue is empty SYSTem ERRor returns 0 No error e Executable when initiated Yes e RST Condition unaffected e Power On Condition no errors are in the error queue Example Reading the error queue SYST ERR
134. the location of A16 address space in the Agilent E1405 06 Command Module When you are reading or writing to an amplifier register a hexadecimal or decimal register address is specified This address consists of a A16 base address plus a register offset or register number Register Addressing Register Based Programming C 1 FFFF 6 N C000 N A16 ADDRESS SPACE 000016 FFFFy REGISTE ADDRESS SPACE C0005 49 152 REGISTER OFFSET 16 BIT WORDS 3E16 3016 o o o o o o 0016 Input and Attenuator Register OAs Output Control Register 0815 DAC Control Register 0615 NOT USED 0416 Status Control Register 0216 Device Type Register 0015 ID Register E1446A Base Address C000 g logical address 64 16 or 49 152 logical address 64 o Register Address Base Address Register Offset A16 Register Map E1446A FIGC 1 Figure C 1A E1446A Amplifier Registers within A16 Address Space E1405 ADDRESS MAP FFFFFFig eee 16 BIT WORDS 20000016 3E16 E0000015 7 3016 IFCOOO 46 200000 2 2 o o mo A24 ADDRESS REGISTER 0C16 Input and Attenuator Register Maen SPACE pa LENT Output Control Register N 5 0B16 DAC Control Register 0615 NOT USED IFOOO01 8 IFCOOO 8
135. tion 1500 Continued on Next Page Example Programs Register Based Programming C 29 1510 IF Out1 state THEN Remove previous output relay state 1520 Out_ctrl BINIOR Out_ctrl 16 Close output relay 1530 ELSE 1540 Out ctrl BINAND Out_ctrl 17 Open output relay 1550 END IF 1560 1570 Relay opens start here 1580 1590 Do output relays first 1600 1610 SELECT Out1_atten Remove previous output attenuation 1620 CASE O 1630 Out_ctrl BINAND Out_ctrl 65 Open 20 dB relay 1640 CASE 20 1650 Out_ctrl BINAND Out_ctrl 127 Open 0 dB relay 1660 END SELECT 1670 1680 WRITEIO 16 Base_addr 10 Out_ctrl Start output relay openings 1690 1700 Now do input side 1710 1720 Remove previous input 1 attenuation and impedance 1730 In_ctrl BINIOR BINAND In_ctrl 2047 SHIFT In1_atten 11 1740 SELECT In1_imped 1750 CASE 50 1760 In ctri BINAND In_ctrl 1025 Open 75 Ohm relay 1770 CASE 75 1780 In ctri BINAND In_ctrl 513 Open 50 Ohm relay 1790 CASE 1 E 6 1800 In ctri BINAND In_ctrl 1537 Open both relays 1810 END SELECT 1820 1830 Remove previous input 2 attenuation and impedance 1840 In ctri BINIOR BINAND In_ctrl 249 SHIFT In2_atten 3 1850 SELECT In2 imped 1860 CASE 50 1870 In ctri BINAND In_ctrl 5 Open 75 Ohm relay 1880 CASE 75 1890 In ctri BINAND In_ctrl 3 Open 50 Ohm relay 1900 CASE 1 E 6 1910 In ctri BINAND In_ctrl 7 Open both relays 1
136. to 00 Parametets Parameter Parameter Range of Default Name Type Values Units impedance numeric 0 50 75 Ohms MINimum MAXimum MINimum selects 0Q output impedance MAXimum selects 75Q Comments Executable when initiated Yes e Coupling group Power amplifier e Related commands SOURce VOLTage LEVel IMMediate OFFSet and OUTPUT2 ATTenuation e RST Condition OUTPut2 IMPedance 50 Example Setting 75 Q output impedance OUTP2 IMP 75 Set 75 Q output impedance OVERIoad OUTPut2 OVERIoad determines if an overload condition exists by reading bit 11 of the amplifier s Status register Appendix C This command reguires Agilent E1445A firmware revision A 02 00 or greater 3 12 E1446 E1445 Command Reference OUTPut2 Subsystem OUTPut2 STATe Comments A one 1 returned in response to the query indicates an overload condition exists A zero 0 indicates there is not an overload condition e Coupling group none e RST Condition none Example Determining if an overload condition exists OUTP2 OVER determine if overload condition exists STATe OUTPut2 STATe lt mode gt closes or opens the output relay of the Main Output BNC to enable or disable the analog output When disabled the output appears as an open circuit Parameter Ame Parameter Parameter Range of Default Name Type Values Units mode boolean OFFIOJON 1 none Comments Executable when initiated Yes
137. tters indicate the abbreviated spelling for the command For shorter program lines send the abbreviated form For better program readability you may send the entire command The amplifier will accept either the abbreviated form or the entire command For example if a command s syntax contains the keyword IMPedance then IMP and IMPEDANCE are acceptable forms Lower or upper case letters are also acceptable Thus IMPedance impedance IMP or imp are all acceptable Implied or optional keywords are those which appear in square brackets in the command syntax The brackets are not part of the command and are not sent to the amplifier Suppose you send the following command OUTP2 ON In this case the amplifier responds as if the command was executed as OUTP2 STAT ON SCPI Command Format Command Reference 3 3 SCPI Command Parameters Parameter Types Explanations and Examples The following information contains explanations and examples of the parameter types found in this chapter e Numeric Accepts all commonly used decimal representations of numbers including optional signs decimal points and scientific notation 123 123E2 123 1 23E2 123 1 23E 2 1 23000E 01 Special cases include MIN MAX and INFinity The Comments section within the Command Reference will state whether a numeric parameter can also be specified in hex octal and or binary H7B Q173 B1111011 e Boolean Represents a sin
138. tup_e1446 In1_atten In1_imped In2_atten In2_imped Out1_atten Out1_imped Out1 state Out2 imped Out3 imped Offset 520 530 OUTPUT Afg INIT IMM E1445A wair for arm state 540 END 550 Summing Two This program uses the E1446A to sum the signals from two E1445A Sig nals AFGs The AFGs at logical addresses 72 and 80 generate 1 Vpp 5 kHz and 100 kHz sine waves respectively The signal from the AFG at logical address 72 is applied to E1446A Input 1 The signal from the AFG at logical address 80 is applied to Input 2 All three devices are in the servant area of the V 360 embedded controller Note that this program uses the subprograms contained in the file SUMSUBS A description of SSUMSUBS follows the listing of the example subprograms BASIC RGBSUM IRE STORE RGBSUM LOADSUB ALL FROM SUMSUBS COM E1446 Base_addr INTEGER In_ctrl Out_imped SET UP E1445As ASSIGN Afg72 TO 1672 E1445A and V 360 I O paths ASSIGN Afg80 TO 1680 70 Continued on Next Page C 24 Register Based Programming Example Programs 80 E1445A error checking 90 ON INTR 16 CALL Errmsg 100 ENABLE INTR 16 32 110 OUTPUT Afg72 CLS 120 OUTPUT Afg72 SRE 32 130 OUTPUT Afg72 ESE 60 140 150 OUTPUT Afg80 CLS 160 OUTPUT Afg80 SRE 32 170 OUTPUT Afg80 ESE 60 180 190 Reset and clear the E1445As 200 OUTPUT Afg72 RST CLS OPC 210 ENTER Afg72 Ready 220 230 O
139. up error checking ON INTR 7 CALL Errmsg ENABLE INTR 7 2 OUTPUT Afg CLS 100 OUTPUT Afg SRE 32 110 OUTPUT Afg ESE 60 120 130 OUTPUT Amp CLS 140 OUTPUT Amp SRE 32 150 OUTPUT Amp ESE 60 160 170 Call the subprograms 180 Rst 190 Offset 200 210 WAIT 1 allow interrupt to be serviced 220 OFF INTR7 230 END 240 250 SUB Offset 260 Offset Subprogram which sets up the E1445A and E1446A 270 COM Afg Amp 280 OUTPUT OAfg SOUR FREQ1 FIX 1E3 frequency 290 OUTPUT Afg SOUR FUNC SHAP SIN function 300 OUTPUT Afg SOUR VOLT LEV IMM AMPL 4VPP5 lamplitude 310 OUTPUT Afg OUTP LOAD AUTO ON Icouple load to impedance 320 OUTPUT Afg OUTP IMP 50 limpedance 330 340 Set up the Agilent E1446A 350 OUTPUT Amp INP1 IMP 50 linput impedance 360 OUTPUT Amp INP1 ATT 20 linput attenuation dB 370 OUTPUT Amp OUTP1 IMP 50 Imain output impedance 380 OUTPUT Amp OUTP1 ATT 0 main output attenuation dB 390 OUTPUT Amp SOUR VOLT LEV IMM OFFS 8 DC offset 400 410 OUTPUT Afg INIT IMM IE1445A wait for arm state 420 SUBEND 430 440 SUB Rst 450 Rst Subprogram which resets the E1445A and E1446A 460 COM Afg Amp 470 OUTPUT Afg RST OPC reset the AFG 480 ENTER Afg Complete 490 OUTPUT EAmp RST OPC reset the AFG Continued on Next Page 2 24 Programming the Agilent E1446A Setting DC Voltage Offsets 500 ENTER Amp Complete 510 SUBEND 520 530 SUB Errmsg 540 Errmsg
140. ut load Continued on Next Page 2 16 Programming the Agilent E1446A Setting the Input Impedance 280 290 Set up amplifier 300 OUTPUT Afg INP1 IMP 75 linput impedance 310 OUTPUT Afg INP1 ATT 4 linput attenuation dB 320 OUTPUT Afg OUTP2 IMP 50 Imain output impedance 330 OUTPUT Afg OUTP2 ATT 0 Imain output attenuation dB 340 350 OUTPUT Afg INIT IMM 1E1445A wait for arm state 360 SUBEND 370 380 SUB Rst 390 Rst Subprogram which resets the E1445 and E1446 400 COM Afg 410 OUTPUT Afg RST OPC Ireset the AFG 420 ENTER Afg Complete 430 SUBEND 440 450 SUB Errmsg 460 Errmsg Subprogram which displays E1445 E1446 programming errors 470 COM Afg 480 DIM Message 256 490 Read AFG status byte register and clear service request bit 500 B SPOLL Afg 510 End of statement if error occurs among coupled commands 520 OUTPUT Afg 530 OUTPUT Afg ABORT abort output waveform 540 REPEAT 550 OUTPUT Afg SYST ERR read AFG error queue 560 ENTER Afg Code Message 570 PRINT Code Message 580 UNTIL Code 0 590 STOP 600 SUBEND Setti ng Input This program uses the same commands and sequence as previously Impedance described except for the OUTPut 1 commands shown below Agilent E1405B 6 Set the amplifier output impedance Commander OUTPut 1 MPedance lt impedance gt 7 Set the amplifier output attenuation OUTPut 1 ATTenuation lt attenuation gt Setting
141. utput control C 9 Status C 8 Register number C 5 Register offset C 5 Register based program execution C 15 Register based program sequence and execution C 14 Register based programming base address C 1 computer configurations C 4 C 5 DIAG PEEK DIAG POKE C 5 embedded computers C 4 external computers C 5 IBASIC C 4 programming the amplifier C 12 C 15 register offset and register number C 5 throughput speed C 4 VXI READ VXI WRITE C 5 Register based programs BASIC subprograms used C 18 generating a sine wave C 18 setting a DC voltage offset C 21 setting the input impedance C 19 summing two signals C 24 system configuration C 17 using the differential outputs C 23 Registers Control C 8 DAC control C 9 Device Type C 7 ID C 6 Input attenuation C 10 Output control C 9 READ C 6 READ WRITE C 7 Status C 8 Resetting Clearing status registers CLS 2 6 RST 2 6 Example program 2 6 S SCPI Conformance Information 3 35 Coupling Command 2 2 Driver 1 7 1 8 Features of amplifier 1 1 Programming 2 1 Structure 2 1 SCPI command coupling 3 5 SCPI command execution 3 5 SCPI command parameters 3 4 SCPI Commands 3 1 Format 3 2 3 3 Reference 3 6 SCPI Conformance Information 3 35 SCPI parameter types 3 4 Selecting Input Impedance with Agilent E1445A as commander 2 14 Self Test TST 2 5 Codes 2 5 Example program 2 5 Index 3 Separator Command 3 3 Setting DC Offsets with Agilent E1445A as comm
142. y valid logical address 1 255 However when used with the Agilent E1445A or Agilent E1405 06 the Preparation for Use Getting Started 1 3 Agilent E1446A logical address or the Agilent E1445A E1405 06 servant area must be set such that the Agilent E1446A is in the servant area of its intended commander 128 64 32 16 8 4 2 1 Logical Address 88 Shown Logical Address 4 TELITI 7 0 1446A fig1 2 Figure 1 2 Setting the E1446A Logical Address Installing the The Agilent E1446A Amplifier DAC can be installed in any mainframe slot Amplifier except slot 0 If the Agilent E1445A AFG is a part of your system it is recommended that the Amplifier DAC be installed in a slot adjacent to the AFG Figure 1 3 shows how to install the module in the Agilent E1400 Series C mainframe 1 4 Getting Started Preparation for Use AMPLIFIER OUTPUT ENABLED 1400B MAINFRAME CJ O O O ee 4 e dom La dag o e 9 O o O o o o o a a ae E14468 FIG1 3 oor oe Le Figure 1 3 Installing the E1446A Summing Amplifier DAC Addressing the The Agilent E1446A Summing Amplifier DAC can be addressed by an Amplifier Using an External Co
Download Pdf Manuals
Related Search
Related Contents
Samsung L210 Наръчник за потребителя Pioneer S-4EX-QL loudspeaker 超小型デジタルムービーカメラ「チーズモービー」発売 Sopar New Spring File Format Oregon Scientific IWA-80004 Radar Detector User Manual Aquatic AI6644RC43 User's Manual User Manual CANtouch Copyright © All rights reserved.
Failed to retrieve file