background image

Agilent 75000 Series C

Agilent E1445A 
Arbitrary Function Generator Module

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&play programming ............................. VXIplug&play Online Help
VXIplug&play example programs...................... VXIplug&play Online Help
VXIplug&play function reference ...................... VXIplug&play Online Help
Soft Front Panel information............................... VXIplug&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.

*E1445-90005*

Manual Part Number: E1445-90005

Printed in Malaysia  E0406

Summary of Contents for E1445A

Page 1: ...ms This Manual SCPI command reference This Manual Register Based Programming This Manual VXIplug play programming VXIplug play Online Help VXIplug play example programs VXIplug play Online Help VXIplu...

Page 2: ......

Page 3: ...l C C Language Programs Using Agilent SICL 40 Introductory Programs 46 AFG Self Test 46 BASIC Program Example SLFTST 47 Resetting and Clearing the AFG 47 BASIC Program Example RSTCLS 47 Querying the P...

Page 4: ...BWAVE 91 Executing Several Waveform Segments 93 BASIC Program Example MULSEG 96 Using Different Frequency Generators 99 BASIC Program Example AFGGEN1 102 BASIC Program Example AFGGEN2 104 Sample Progr...

Page 5: ...e 135 BASIC Program Example SWP_PVST 136 Frequency Lists Versus Time 138 BASIC Program Example LIST_TME 139 Sweeping Arbitrary Waveforms 141 BASIC Program Example SWP_ARB 141 AC Output Leveling 144 BA...

Page 6: ...m Example GATE 184 Arming and Triggering Frequency Sweeps and Lists 186 Frequency Sweeps Using Triggers 186 BASIC Program Example SWP_TRIG 188 Arming and Triggering a Frequency Sweep 190 BASIC Program...

Page 7: ...IC Program Example SIGN_DAT 227 Using Unsigned Data to Generate Waveforms 229 Using the Unsigned Number Format 229 BASIC Program Example UNS_DAT 230 Using Definite Length Arbitrary Blocks to Transfer...

Page 8: ...mmand Types 284 Common Command Format 284 SCPI Command Format 284 Command Separator 285 Abbreviated Commands 285 Implied Optional Commands 285 Variable Command Syntax 285 SCPI Command Parameters 286 P...

Page 9: ...P 329 SOURce FREQuency2 330 CW FIXed 331 SOURce FUNCtion 332 SHAPe 332 USER 333 SOURce LIST 1 334 FORMat DATA 335 SEGMent ADDRess 336 SEGMent CATalog 336 SEGMent COMBined 337 SEGMent COMBined POINts 3...

Page 10: ...361 ECLTrg n FEED 361 ECLTrg n STATe 362 FEED 363 POLarity 364 STATe 364 SOURce PM 365 DEViation 365 SOURce 366 STATe 367 UNIT ANGLe 367 SOURce RAMP 368 POINts 368 POLarity 369 SOURce ROSCillator 370...

Page 11: ...398 SWEep IMMediate 399 SWEep LINK 400 SWEep SOURce 401 SWEep TIMer 402 VINStrument 403 CONFigure LBUS MODE 403 CONFigure LBUS MODE AUTO 404 CONFigure TEST CONFigure 405 CONFigure TEST DATA 406 CONFig...

Page 12: ...iption 445 Chapter Contents 445 AFG Description 445 Arbitrary Waveform Description 446 Generating Non Sinusoid Arbitrary Waveforms 447 Output DAC 447 Memory 448 Reference Oscillator 448 Frequency Gene...

Page 13: ...egister 486 Changing the Output Frequency 487 The Frequency Control Registers 487 Frequency Control Programs 489 BASIC Program Example FREQ1_REG 489 BASIC Program Example FREQ2_REG 492 Changing the Si...

Page 14: ...Notes 12 Agilent E1445A User s Manual Contents...

Page 15: ...ts that result from the Buyer s circuitry In addition Agilent does not warrant any damage that occurs as a result of the Buyer s circuit or any defects that result from Buyer supplied products NO OTHE...

Page 16: ...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...

Page 17: ...N 55011 1991 IEC 61000 4 2 1995 A1 1998 EN 61000 4 2 1995 IEC 61000 4 3 1995 EN 61000 4 3 1995 IEC 61000 4 4 1995 EN 61000 4 4 1995 IEC 61000 4 5 1995 EN 61000 4 5 1995 IEC 61000 4 6 1996 EN 61000 4 6...

Page 18: ...Notes 16 Agilent E1445A Arbitrary Function Generator User s Manual...

Page 19: ...Notes Agilent E1445A Arbitrary Function Generator User s Manual 17...

Page 20: ...Notes 18 Agilent E1445A Arbitrary Function Generator User s Manual...

Page 21: ...nguages Page 29 BASIC Language Programs Page 29 Visual BASIC Language Programs Page 32 Visual C C Language Programs Page 40 Introductory Programs Page 46 AFG Self Test Page 46 Resetting and Clearing t...

Page 22: ...1 1 is configured at the factory as shown in Table 1 1 Table 1 1 Agilent E1445A VXIbus System Factory Settings Parameter Setting Logical Address 80 Servant Area 0 Bus Request Level 3 Figure 1 1 The E1...

Page 23: ...ing The Agilent E1445A AFG is a message based device If an embedded controller and an Agilent E1406A Command Module are part of your VXIbus system put the AFG in the servant area of the controller Thi...

Page 24: ...e card in the controller In most Agilent controllers this card has a factory set address of 7 including the Agilent 82340 82341 GPIB Interface Card this card was used with an HP Vectra PC to create th...

Page 25: ...from 100 to 255 Setting the AFG Servant Area The Agilent E1445A servant area is set when the Agilent E1446A Summing Amplifier DAC is used with the Arbitrary Function Generator Note the following when...

Page 26: ...lines BG0 BG3 from which one is selected Figure 1 3 Bus request line 3 has the highest priority bus request line 0 has the lowest priority It is not necessary to change the bus request level setting B...

Page 27: ...odule by moving the levers toward each other 3 Tighten the top and bottom screws to secure the module in the mainframe Note For compliance with European EMI standards order the Backplane Connector Shi...

Page 28: ...SCPI Programming SCPI Standard Commands for Programmable Instruments is an ASCII based instrument command language designed for test and measurement instruments The message based AFG has an on board...

Page 29: ...ll headers are included in the example programs however the headers are abbreviated In an example program the previous statement with a mode parameter of FIX would appear as SOUR FREQ1 MODE FIX Comman...

Page 30: ...ngle line or in a single statement the commands are linked with a semicolon and a colon This is illustrated in the following lines SOUR ROSC SOUR INT2 TRIG STAR SOUR INT2 or SOUR ROSC SOUR INT2 TRIG S...

Page 31: ...the location of the different programs and the required libraries read the README files The different directories are VBPROG for Visual BASIC programs VCPROG for Visual C C programs BASIC Language Pro...

Page 32: ...ich sets output leveling for sweeping from 220 0 TO 10 MHz 230 COM Afg 240 OUTPUT Afg SOUR FREQ1 MODE SWE sweep mode 250 OUTPUT Afg SOUR FREQ1 STAR 0 start frequency 260 OUTPUT Afg SOUR FREQ1 STOP 10E...

Page 33: ...rminator Line Feed on a command line coupled commands can be sent on separate lines yet as a single program statement In BASIC programs the EOL terminator is suppressed by placing a semicolon followin...

Page 34: ...ot 0 Resource Manager Agilent E1406A Command Module Agilent E1445A Logical Address 80 Instrument Language SCPI What s Needed to Run the Programs You need to include the SICL BAS program file in your V...

Page 35: ...ramp is transferred to the AFG as comma separated voltages Instrument GPIB address Const ShowAddr hpib7 9 10 Dim Addr As Integer Dim ChkName As String Sub CheckError SubName As String Check for any er...

Page 36: ...ow error message If ErrNum 0 Then Work Work in Sub SubName ShowErr AddItem Work End If Loop Until ErrNum 0 Close communication with instrument Call iclose Addr Clean up sicl Call siclcleanup Press to...

Page 37: ...ry Visible False Show Action Action Enabled False Action Visible True Enable form Arbwave Visible True Call program to execute instrument Call Main Enable showing exit program button and make it the f...

Page 38: ...ds 1 SOUR LIST1 SSEQ SEL ramp_out Define the sequence name as ramp_out OutCommands 2 SOUR LIST1 SSEQ DEF 1 Define the sequence size OutCommands 3 SOUR LIST1 SSEQ SEQ ramp Set the segment execution ord...

Page 39: ...the module Action Text Resetting the AFG please wait ChkName RstClr Call RstClr Generate segment list and output sequence Action Text Generate Segments ChkName GenSeg Call GenSeg Query segment and se...

Page 40: ...As String 100 Dim Actual As Long ShowQuery Visible True ShowQuery Enabled True Query segment memory GetMem SOUR LIST1 SEGM FREE Call iwrite Addr ByVal GetMem Chr 10 Len GetMem 1 1 Actual Call iread A...

Page 41: ...rogram generated error message Chr 34 ErrMsg Chr 34 Chr 10 ShowTimeMsg ShowTimeMsg in Sub Function ChkName Chr 10 Chr 10 ShowTimeMsg ShowTimeMsg Press Chr 34 OK Chr 34 to exit MsgBox ShowTimeMsg 64 Ve...

Page 42: ...ilent 75000 Series C Slot 0 Resource Manager Agilent E1406A Command Module Agilent E1445A Logical Address 80 Instrument Language SCPI What s Needed to Compile the Programs You need the following libra...

Page 43: ...Visual C C using the Agilent Standard Instrument Control Library The program sends commands to the AFG to generate an arbitrary waveform receives data from the AFG shows how to send coupled commands...

Page 44: ...erate segment list and output sequence run_query Query segment and segment sequence memory Close communication iclose addr Release SICL resource allocation not needed for Windows NT _siclcleanup print...

Page 45: ...size to 100 points char send_str 50 Allocate sufficient memory for storing the segments into computer memory Wave_seg float malloc seg_size sizeof float Setup the AFG cmd_exe set_commands sizeof set_c...

Page 46: ...ime_out run_query seg memory printf nSegment Memory Available Used s mem_size Query sequence memory if ipromptf addr SOUR LIST1 SSEQ FREE n t mem_size time_out run_query seq memory printf nSequence Me...

Page 47: ...or n t into Query error register Close communication iclose addr Release SICL resource allocation not needed for Windows NT _siclcleanup printf n nClose the window or press Alt F4 to exit exit 1 void...

Page 48: ...lines waveform select RAM segment sequence RAM waveform segment RAM DDS NCO operation sine wave generation arbitrary waveform generation marker generation waveform cycle and arm counters sweep timer...

Page 49: ...reset and clear the AFG are RST CLS Resetting the AFG sets it to its power on configuration and clearing the AFG clears its Status Registers Status Register programming is covered in Chapter 9 BASIC...

Page 50: ...20 ASSIGN Afg to 70910 30 Call the subprogram 40 Lrn_conf Afg 50 END 60 70 SUB Lrn_conf Afg 80 Lrn_conf subprogram which queries the AFG configuration 90 DIM Lrn 5000 100 OUTPUT Afg LRN 110 ENTER Afg...

Page 51: ...RBWAVE C and ARBWAVE FRM listed previously in this chapter BASIC Program Example ERRORCHK 1 RE STORE ERRORCHK 2 This program represents the method used to check for programming 3 errors in BASIC progr...

Page 52: ...ister and clear service request bit 290 B SPOLL Afg 300 End of statement if error occurs among coupled commands 310 OUTPUT Afg 320 OUTPUT Afg ABORT abort output waveform 330 REPEAT 340 OUTPUT Afg SYST...

Page 53: ...I O path between the computer and AFG 20 ASSIGN Afg TO 70910 30 COM Afg 40 50 Reset the AFG 60 CALL Rst 70 OUTPUT Afg INIT IMM output sine wave using reset conditions 80 END 90 100 SUB Rst 110 Rst sub...

Page 54: ...Notes 52 Getting Started Chapter 1...

Page 55: ...e Waves Page 58 Generating Square Waves Page 61 Generating Triangle Ramp Waves Page 65 Selecting the Output Loads Page 69 Selecting the Amplitude Levels and Output Units Page 72 Using Phase Modulation...

Page 56: ...egins with a reset the IEEE 488 2 RST command which places the AFG into its power on state Thus the programs do not execute all of the commands on the flowchart Remove the flowchart from the binder fo...

Page 57: ...Figure 2 1 Commands for Generating Standard Waveforms continued from previous page Chapter 2 Generating Standard Waveforms 55...

Page 58: ...r more information BASIC Program Example DCVOLTS 1 RE STORE DCVOLTS 2 This program outputs a 5V DC voltage 3 10 Assign I O path between the computer and E1445A 20 ASSIGN Afg TO 70910 30 COM Afg 40 50...

Page 59: ...POLL Afg 400 End of statement if error occurs among coupled commands 410 OUTPUT Afg 420 OUTPUT Afg ABORT abort output waveform 430 REPEAT 440 OUTPUT Afg SYST ERR read AFG error queue 450 ENTER Afg Cod...

Page 60: ...pendix B for the frequency limits 3 Select the Function SOURce FUNCtion SHAPe SINusoid This command selects the sinusoid function Although RST automatically selects this function it is selected here f...

Page 61: ...20 COM Afg 230 OUTPUT Afg SOUR FREQ1 FIX 1E3 frequency 240 OUTPUT Afg SOUR FUNC SHAP SIN function 250 OUTPUT Afg SOUR VOLT LEV IMM AMPL 5V amplitude 260 OUTPUT Afg INIT IMM wait for arm state 270 SUBE...

Page 62: ...NTIL Code 0 500 STOP 510 SUBEND Visual BASIC and Visual C C Program Versions The Visual BASIC example program SINEWAVE FRM is in directory VBPROG and the Visual C example program SINEWAVE C is in dire...

Page 63: ...cts 42 9 MHz reference oscillator it is selected here for good programming practice 3 Select the Sample Source TRIGger STARt SOURce INTernal 1 This command selects the sample source that is trigger st...

Page 64: ...egative 8 Set the Amplitude SOURce VOLTage LEVel IMMediate AMPLitude amplitude This command specifies the amplitude Refer to the section called Selecting the Amplitude Levels and Output Units on page...

Page 65: ...oscillator 240 OUTPUT Afg TRIG STAR SOUR INT1 trigger source 250 OUTPUT Afg SOUR FREQ RANG 0 frequency range 260 OUTPUT Afg SOUR FREQ FIX 1E6 frequency 270 OUTPUT Afg SOUR FUNC SHAP SQU function 280...

Page 66: ...d AFG error queue 520 ENTER Afg Code Message 530 PRINT Code Message 540 UNTIL Code 0 550 STOP 560 SUBEND Visual BASIC and Visual C C Program Versions The Visual BASIC example program SQUWAVE FRM is in...

Page 67: ...42 9 MHz reference oscillator it is selected here for good programming practice 3 Select the Sample Source TRIGger STARt SOURce INTernal 1 This command selects the sample source that is trigger start...

Page 68: ...lects the polarity of the TRIangle RAMP wave Use NORMal for the initial voltage to go positive Use INVerted for the initial voltage to go negative 9 Set the Amplitude SOURce VOLTage LEVel IMMediate AM...

Page 69: ...0 OUTPUT Afg SOUR ROSC SOUR INT1 reference oscillator 240 OUTPUT Afg TRIG STAR SOUR INT1 trigger source 250 OUTPUT Afg SOUR FREQ1 RANG 0 frequency range 260 OUTPUT Afg SOUR FREQ1 FIX 10E3 frequency 27...

Page 70: ...PEAT 510 OUTPUT Afg SYST ERR read AFG error queue 520 ENTER Afg Code Message 530 PRINT Code Message 540 UNTIL Code 0 550 STOP 560 SUBEND Visual BASIC and Visual C C Program Versions The Visual BASIC e...

Page 71: ...he section called Selecting the Amplitude Levels and Output Units on page 72 for more information 3 Select the Auto Load On Off or Once OUTPut 1 LOAD AUTO mode With this command the assumed load appli...

Page 72: ...mpedance and output load 3 to 75 ohms 4 10 Assign I O path between the computer and E1445A 20 ASSIGN Afg TO 70910 30 COM Afg 40 50 Set up error checking 60 ON INTR 7 CALL Errmsg 70 ENABLE INTR 7 2 80...

Page 73: ...430 End of statement if error occurs among coupled commands 440 OUTPUT Afg 450 OUTPUT Afg ABORT abort output waveform 460 REPEAT 470 OUTPUT Afg SYST ERR read AFG error queue 480 ENTER Afg Code Message...

Page 74: ...W Watts DBM DBMW dB referenced to 1 milliwatt These units are assumed only if no other units are specified in the SOURce VOLTage LEVel IMMediate AMPLitude amplitude command The output units are only...

Page 75: ...Afg 230 OUTPUT Afg SOUR VOLT LEV IMM AMPL UNIT VOLT VPP amplitude units 240 OUTPUT Afg SOUR VOLT LEV IMM AMPL 8 amplitude 250 OUTPUT Afg SOUR VOLT LEV IMM OFFS 1 offset 260 OUTPUT Afg INIT IMM wait f...

Page 76: ...NTIL Code 0 500 STOP 510 SUBEND Visual BASIC and Visual C C Program Versions The Visual BASIC example program OUTPUNIT FRM is in directory VBPROG and the Visual C example program OUTPUNIT C is in dire...

Page 77: ...1 FIXed frequency This command specifies the waveform frequency You must use the direct synthesis frequency generator for the sinusoid function Refer to Table B 3 in Appendix B for the frequency limi...

Page 78: ...See Selecting the Deviation Units for Phase Modulation on page 80 to select the different units 8 Initiate the Waveform INITiate IMMediate This command generates an immediate output with the arm sour...

Page 79: ...the E1445 380 COM Afg 390 OUTPUT Afg RST OPC reset the AFG 400 ENTER Afg Complete 410 SUBEND 420 430 SUB Errmsg 440 Errmsg Subprogram which displays E1445 programming errors 450 COM Afg 460 DIM Messag...

Page 80: ...ource with the DDS frequency1 frequency generator This combination provides 01 Hz resolution For higher frequency values use the 40 MHz that is INTernal2 reference oscillator source with the Divide by...

Page 81: ...unctions is determined by Reference Oscillator frequency 2 number of points The doubled setting worsens the frequency resolution by a factor of two and introduces some sample rate jitter Number of Poi...

Page 82: ...is always specified in V for volts For example executing SOURce VOLTage OFFSet 1VPP causes an error To prevent the error execute either SOURce VOLTage OFFSet 0 1 or SOURce VOLTage OFFSet 0 1V The W D...

Page 83: ...ferent than sending the commands with number values where the commands are executed after a new coupling group is sent Thus if a group of coupled commands are sent where the MINimum and MAXimum parame...

Page 84: ...Notes 82 Generating Standard Waveforms Chapter 2...

Page 85: ...105 Generating a Damped Sine Wave Page 107 Generating an Exponential Change Discharge Waveform Page 108 Generating a Sine Wave with Spikes Page 109 Generating a 1 2 Rectified Sine Wave Page 111 Gener...

Page 86: ...art Note that the IEEE 488 2 RST command places the AFG into its power on state Thus it may be unnecessary to execute all of the commands on the flowchart Remove the flowchart from the binder for easy...

Page 87: ...Figure 3 1 Commands for Generating Arbitrary Waveforms continued from previous page Chapter 3 Generating Arbitrary Waveforms 85...

Page 88: ...habetic character but can contain alphabetic numeric and underscore _ characters The names can have a maximum length of 12 characters The AFG generates an error for duplicate names Besides the name th...

Page 89: ...rates an error for duplicate names The waveform segment names in a segment sequence can either be sent as names or as an address value see Chapter 7 for more information To output a waveform the AFG s...

Page 90: ...URce LIST 1 SSEQuence DELete ALL This command clears all segment sequence data stored in the sequence memory see How to Free Segment and Sequence Memory on page 113 for more information 3 Clear the AF...

Page 91: ...SOURce LIST 1 SEGMent SELect name This command names the waveform segment Each waveform segment to be stored into memory must have a unique name Legal names must start with an alphabetic character but...

Page 92: ...segments are to be executed Each waveform segment name must be separated by a comma for example A B C see Executing Several Waveform Segments on page 93 for more information 14 Select the User Name S...

Page 93: ...de 190 200 CALL Ramp_wave 210 220 OUTPUT Afg SOUR FUNC USER RAMP_OUT waveform sequence 230 OUTPUT Afg INIT IMM wait for arm state 240 250 PRINT Segment memory points available used Seg_mem 260 PRINT 2...

Page 94: ...Q DEL ALL Clear sequence memory 670 OUTPUT Afg LIST SEGM DEL ALL Clear segment memory 680 SUBEND 690 700 SUB Errmsg 710 Errmsg Subprogram which displays E1445 programming errors 720 COM Afg Seg_mem Se...

Page 95: ...tate 2 Clear the AFG Memory of All Sequence Data SOURce LIST 1 SSEQuence DELete ALL This command clears all segment sequence data stored in the sequence memory 3 Clear the AFG Memory of All Segment Da...

Page 96: ...GMent VOLTage voltage_list This command stores the first waveform segment into the AFG s segment memory 10 Name the Second Waveform Segment SOURce LIST 1 SEGMent SELect name This command names the sec...

Page 97: ...SSEQuence DWELl COUNt repetition_list This command sets how many times each waveform segment is to be executed See Sending Segment Sequences on page 114 for more information 17 Select the User Name SO...

Page 98: ...OUTPUT Afg SOUR FUNC SHAP USER 190 OUTPUT Afg SOUR VOLT LEV IMM AMPL 5 1V 200 Call the subprograms which define the triangle wave sine wave 210 and output waveform sequence 220 CALL Tri_wave 230 CALL...

Page 99: ...OUR LIST1 SSEQ SEL WAVE_OUT sequence name 690 OUTPUT Afg SOUR LIST1 SSEQ DEF 2 sequence size 700 OUTPUT Afg SOUR LIST1 SSEQ SEQ SINEWAVE TRI execution order 710 OUTPUT Afg SOUR LIST1 SSEQ DWEL COUN 2...

Page 100: ...r queue 1000 ENTER Afg Code Message 1010 PRINT Code Message 1020 UNTIL Code 0 1030 STOP 1040 SUBEND Visual BASIC and Visual C C Program Versions The Visual BASIC example program MULSEG FRM is in direc...

Page 101: ...ion The AFGGEN1 program shows how to use the AFG s DDS generator selected at power on to generate waveforms Use this generator for better frequency resolution and to perform frequency sweeping frequen...

Page 102: ...TRIGger STARt SOURce INTernal2 6 Set the Sample Frequency Range SOURce FREQuency 1 RANGe range This command specifies the upper sample frequency limit see Frequency1 Generator Range on page 116 for t...

Page 103: ...mes the segment sequence 14 Set the Segment Sequence Length SOURce LIST 1 SSEQuence DEFine length This command defines the length of the selected segment sequence 15 Define the Segment Sequence Order...

Page 104: ...OUR FREQ1 FIX 10E6 210 OUTPUT Afg SOUR FUNC SHAP USER 220 OUTPUT Afg SOUR VOLT LEV IMM AMPL 5 1V set amplitude to 5 1V 230 Call subprogram which defines waveform segment and sequence 240 CALL Ramp_wav...

Page 105: ...y 630 SUBEND 640 650 SUB Errmsg 660 Errmsg Subprogram which displays E1445 programming errors 670 COM Afg 680 DIM Message 256 690 Read AFG status byte register and clear service request bit 700 B SPOL...

Page 106: ...e program AFGGEN2 FRM is in directory VBPROG and the Visual C example program AFGGEN2 C is in directory VCPROG on the CD that came with your Agilent E1445A Sample Programs The programs in this section...

Page 107: ...TPUT Afg ESE 60 110 120 Call the subprogram which resets and clears the AFG 130 CALL Rst 140 Set the signal frequency function and amplitude 150 OUTPUT Afg SOUR FREQ1 FIX 4 096E6 160 OUTPUT Afg SOUR F...

Page 108: ...BEND 450 460 SUB Rst 470 Rst Subprogram which resets the E1445 480 COM Afg 490 OUTPUT Afg RST OPC reset the AFG 500 ENTER Afg Complete 510 SUBEND 520 530 SUB Errmsg 540 Errmsg Subprogram which display...

Page 109: ...ER SIN_D_OUT 230 OUTPUT Afg INIT IMM 290 SUB Sind_def 300 Sind_def Compute waveform damped sine wave and define segment 310 COM Afg 320 DIM Waveform 1 4096 330 A 4 4096 340 W 2 PI 50 350 FOR T 1 TO 40...

Page 110: ...llowing differences 1 RE STORE CHARGE 2 This program generates an exponential charge discharge waveform 3 as an arbitrary waveform 180 Call the subprogram which defines the exponential charge 190 disc...

Page 111: ...FRM is in directory VBPROG and the Visual C example program CHARGE C is in directory VCPROG on the CD that came with your Agilent E1445A Generating a Sine Wave with Spikes The SPIKES program generate...

Page 112: ...ned 440 OUTPUT Afg SOUR LIST1 SEGM DEF 4096 reserve memory for segment 450 OUTPUT Afg SOUR LIST1 SEGM VOLT Waveform load waveform points 460 470 OUTPUT Afg SOUR LIST1 SSEQ SEL SPIKES_OUT Define sequen...

Page 113: ...SER SIN_R_OUT 230 OUTPUT Afg INIT IMM 280 SUB Sinr_def 290 Sinr_def Compute waveform rectified sine wave and define segment 300 COM Afg 310 DIM Waveform 1 4096 320 FOR I 1 TO 4096 330 Waveform I SIN 2...

Page 114: ...USER NOISE_OUT 230 OUTPUT Afg INIT IMM 280 SUB Noise_def 290 Noise_def Subprogram which defines the noise signal and output 300 sequence 310 COM Afg 320 DIM Waveform 1 4096 330 FOR I 1 TO 4096 340 Wa...

Page 115: ...y selected segment sequence data that was last selected by the SOURce LIST 1 SSEQuence SELect command SOURce LIST 1 SSEQuence DELete ALL deletes all segment sequence data stored in the AFG s sequence...

Page 116: ...one method a waveform segment is placed in the SOURce LIST 1 SSEQuence SEQuence segment_list command several times The other method uses an additional command the SOURce LIST 1 SSEQuence DWELl COUNt...

Page 117: ...illator source with the Divide by N frequency2 frequency generator Use the EXTernal or ECLTrg0 or ECLTrg1 sources for custom frequency values However any reference oscillator source can be used with a...

Page 118: ...erent waveform segments stored in memory The command returns comma separated strings that contain the names of the segment lists Determining the Waveform Segment Size Use SOURce LIST 1 SEGMent VOLTage...

Page 119: ...Time Page 138 Sweeping Arbitrary Waveforms Page 141 AC Output Leveling Page 144 Frequency Shift Keying Page 147 FSK Using the FSK Control Source Page 147 FSK Using the TTLTrg n Control Source Page 150...

Page 120: ...m begins by resetting the AFG many of the default settings are used Thus the examples which follow the sequence do not execute every command shown on the flowchart Remove the flowchart from the binder...

Page 121: ...Figure 4 1 Commands for Frequency Sweeps Frequency Lists and FSK Keying continued from previous page Chapter 4 Sweeping and Frequency Shift Keying 119...

Page 122: ...ms from 0 01 Hz to 10 73741824 MHz The AFG can also frequency hop where the AFG outputs a sequence of discrete frequencies from a pre defined list Up to 256 frequencies from 0 0 Hz to 10 73741824 MHz...

Page 123: ...r SOURce ROSCillator SOURce source 2 Select the frequency generator that allows frequency sweeping TRIGger STARt SOURce source 3 Select the frequency sweep mode SOURce FREQuency 1 MODE mode 4 Set the...

Page 124: ...om 0 Hz to 1 MHz 230 COM Afg 240 OUTPUT Afg SOUR ROSC SOUR INT1 reference oscillator 250 OUTPUT Afg TRIG STAR SOUR INT1 frequency1 generator DDS 260 OUTPUT Afg SOUR FREQ1 MODE SWE sweep mode 270 OUTPU...

Page 125: ...of statement if error occurs among coupled commands 630 OUTPUT Afg 640 OUTPUT Afg ABORT abort output waveform 650 REPEAT 660 OUTPUT Afg SYST ERR read AFG error queue 670 ENTER Afg Code Message 680 PRI...

Page 126: ...oscillator SOURce ROSCillator SOURce source 2 Select the frequency generator which allows frequency lists hopping TRIGger STARt SOURce source 3 Select the frequency list mode SOURce FREQuency 1 MODE m...

Page 127: ...am which outputs a frequency list 230 COM Afg 240 OUTPUT Afg SOUR ROSC SOUR INT1 reference oscillator 250 OUTPUT Afg TRIG STAR SOUR INT1 frequency1 generator 260 OUTPUT Afg SOUR FREQ1 MODE LIST list m...

Page 128: ...OUTPUT Afg 560 OUTPUT Afg ABORT abort output waveform 570 REPEAT 580 OUTPUT Afg SYST ERR read AFG error queue 590 ENTER Afg Code Message 600 PRINT Code Message 610 UNTIL Code 0 620 STOP 630 SUBEND Upo...

Page 129: ...1 as a guide the steps of this program are 1 Set the frequency sweep mode SOURce FREQuency 1 MODE mode 2 Set the start frequency SOURce FREQuency 1 STARt start_freq 3 Set the frequency span SOURce FR...

Page 130: ...p2 Subprogram which outputs a swept sine wave from 1 kHz to 230 21 kHz 240 COM Afg 250 OUTPUT Afg SOUR FREQ1 MODE SWE sweep mode 260 OUTPUT Afg SOUR FREQ1 STAR 1E3 start frequency 270 OUTPUT Afg SOUR...

Page 131: ...error occurs among coupled commands 620 OUTPUT Afg 630 OUTPUT Afg ABORT abort output waveform 640 REPEAT 650 OUTPUT Afg SYST ERR read AFG error queue 660 ENTER Afg Code Message 670 PRINT Code Message...

Page 132: ...the listing are program modifications for sending the data in an indefinite length arbitrary block Using the flowchart in Figure 4 1 as a guide the steps of this program are 1 Select the reference osc...

Page 133: ...Rst 170 CALL List1 180 190 WAIT 1 allow interrupt to be serviced 200 OFF INTR 7 210 END 220 230 SUB List1 240 List1 Subprogram which downloads a list of 100 frequencies 250 1 kHz to 100 kHz in a defi...

Page 134: ...e Message 630 PRINT Code Message 640 UNTIL Code 0 650 STOP 630 SUBEND Program Modifications In order to download the frequency list as an indefinite length arbitrary block modify lines 350 through 370...

Page 135: ...ies in the frequency sweep SOURce SWEep POINts number 5 Set linear or logarithmic spacing SOURce SWEep SPACing mode 6 Set the number of sweeps SOURce SWEep COUNt number 7 Set the output function SOURc...

Page 136: ...UB Rst 350 Rst Subprogram which resets the E1445 360 COM Afg 370 OUTPUT Afg RST OPC reset the AFG 380 ENTER Afg Complete 390 SUBEND 400 410 SUB Errmsg 420 Errmsg Subprogram which displays E1445 progra...

Page 137: ...Rce FREQuency 1 STARt start_freq 3 Set the stop frequency SOURce FREQuency 1 STOP stop_freq 4 Set the direction up or down of the frequency sweep SOURce SWEep DIRection direction 5 Set the number of p...

Page 138: ...irection points and time 220 COM Afg 230 OUTPUT Afg SOUR FREQ1 MODE SWE sweep mode 240 OUTPUT Afg SOUR FREQ1 STAR 5E3 start frequency 250 OUTPUT Afg SOUR FREQ1 STOP 15E3 stop frequency 260 OUTPUT Afg...

Page 139: ...TPUT Afg ABORT abort output waveform 520 REPEAT 530 OUTPUT Afg SYST ERR read AFG error queue 540 ENTER Afg Code Message 550 PRINT Code Message 560 UNTIL Code 0 570 STOP 560 SUBEND Visual BASIC and Vis...

Page 140: ...e FREQuency 1 MODE mode 2 Specify the frequency list SOURce LIST2 FREQuency freq_list 3 Set the list repetition count SOURce SWEep COUNt number 4 Set the frequency advance source TRIGger SWEep SOURce...

Page 141: ...the frequencies are 1s apart 230 COM Afg 240 OUTPUT Afg SOUR FREQ1 MODE LIST list mode 250 OUTPUT Afg SOUR LIST2 FREQ 2 5E3 5E3 7 5E3 10E3 freq list 260 OUTPUT Afg SOUR SWE COUN INF hop through list c...

Page 142: ...510 REPEAT 520 OUTPUT Afg SYST ERR read AFG error queue 530 ENTER Afg Code Message 540 PRINT Code Message 550 UNTIL Code 0 560 STOP 570 SUBEND Visual BASIC and Visual C C Program Versions The Visual B...

Page 143: ...repetition rate by increasing the length of the signal The sampling bandwidth is 40 kHz with an effective bandwidth of 20 kHz The output is swept from 10 Hz to 20 Hz BASIC Program Example SWP_ARB 1 R...

Page 144: ...1 STOP 8 192E6 stop sample rate 460 OUTPUT Afg SOUR SWE COUN INF sweep count 470 OUTPUT Afg SOUR FUNC SHAP USER function arbitrary 480 OUTPUT Afg SOUR VOLT LEV IMM AMPL 1 1V scale arb values 490 500 D...

Page 145: ...SUB Rst 920 Rst Subprogram which resets the E1445 930 COM Afg 940 OUTPUT Afg RST OPC reset the AFG 950 ENTER Afg Complete 960 SUBEND 970 980 SUB Wf_del 990 Wf_del Subprogram which deletes all sequenc...

Page 146: ...e AFG s 10 MHz filter and AC output leveling to maintain a constant amplitude over the span With the flowchart in Figure 4 1 as a guide the steps of this program are 1 Select the frequency sweep mode...

Page 147: ...COM Afg 240 OUTPUT Afg SOUR FREQ1 MODE SWE sweep mode 250 OUTPUT Afg SOUR FREQ1 STAR 0 start frequency 260 OUTPUT Afg SOUR FREQ1 STOP 10E6 stop frequency 270 OUTPUT Afg SOUR SWE COUN INF sweep count 2...

Page 148: ...510 REPEAT 520 OUTPUT Afg SYST ERR read AFG error queue 530 ENTER Afg Code Message 540 PRINT Code Message 550 UNTIL Code 0 560 STOP 570 SUBEND Visual BASIC and Visual C C Program Versions The Visual B...

Page 149: ...equencies of 5 MHz and 10 MHz occur as the level of the 1 MHz signal changes Note When the frequency shifts there is a delay of 20 reference oscillator clock cycles before the frequency is active This...

Page 150: ...t 140 CALL Fsk 150 CALL Fsk_info 160 170 WAIT 1 allow interrupt to be serviced 180 OFF INTR 7 190 END 200 210 SUB Fsk 220 Fsk Subprogram which sets up frequency shift keying and the front 230 panel FS...

Page 151: ...ming errors 580 COM Afg 590 DIM Message 256 600 Read AFG status byte register and clear service request bit 610 B SPOLL Afg 620 End of statement if error occurs among coupled commands 630 OUTPUT Afg 6...

Page 152: ...e amplitude 6 Place the AFG in the wait for arm state INITiate IMMediate BASIC Program Example FSK2 1 RE STORE FSK2 2 This program shifts between 1 MHz and 2 MHz based on a control 3 signal supplied b...

Page 153: ...d OUTP TTLT5 SOUR INT drive TTLTrg5 internally 400 Loop which shifts frequency 410 DISP Press Continue to shift frequency 420 PAUSE 430 DISP 440 FOR I 1 TO 10 450 IF BIT I 0 THEN 460 OUTPUT Cmd_mod OU...

Page 154: ...n BNC connector 4 10 Assign I O path between the computer and E1445A 20 ASSIGN Afg TO 70910 30 COM Afg 40 50 Set up error checking 60 ON INTR 7 CALL Errmsg 70 ENABLE INTR 7 2 80 OUTPUT Afg CLS 90 OUTP...

Page 155: ...1 SSEQ SEQ SIN_X segment order 490 SUBEND 500 510 SUB Rst 520 Rst Subprogram which resets the E1445 530 COM Afg 540 OUTPUT Afg RST OPC reset the AFG 550 ENTER Afg Complete 560 SUBEND 570 580 SUB Wf_de...

Page 156: ...967296 MHz oscillator INTernal2 The internal 40 MHz oscillator The INTernal 1 reference oscillator is recommended for use with the Direct Digital Synthesis DDS time base SOURce FREQuency 1 subsystem f...

Page 157: ...uencies allowed in a frequency list or for frequency shift keying depends on the output function Sine Wave and Arbitrary Waveforms The minimum frequency is 0 Hz the maximum frequency is the selected r...

Page 158: ...trary block is in a binary format The encoding syntax for downloading frequency list data in this format is shown Figure 4 2 In a definite length arbitrary block indicates the data to be sent is in an...

Page 159: ...SOURce SWEep SPACing Linear sweeps can start at 0 Hz Logarithmic sweeps can start at the reference oscillator frequency 4 294 967 296 npts The number of waveform points npts for sine waves and arbitr...

Page 160: ...advance triggering Advance to the next frequency sweeping or in a list using TRIGger SWEep IMMediate LINK The next valid start arm advances the sweep or list TIMer The SOURce SWEep TIME and or TRIGger...

Page 161: ...st frequency is accounted for as follows Repetition ratespecified 4 3 4 4 0 75 3 Thus the actual repetition rate specified is 3 seconds The minimum and maximum sweep times and frequency list repetitio...

Page 162: ...itude at a constant level over the frequency sweep or frequency list AC leveling which is performed by the CALibration STATe AC ON command reset setting applies to the sine wave function only AC Level...

Page 163: ...plitude 5 Vpk 250 kHz filter frequency change 10 Freq1 250 kHz Freq2 0 9 Freq1 Error in Volts Settling Time ms Error dB Error 0 256 0 25 0 10 0 05 0 025 0 01 0 39 1 22 1 84 2 60 5 12 5 0 2 0 1 0 0 5 0...

Page 164: ...all reference oscillator sources Driving the TTLTrg n Trigger Lines When driving the TTLTrg n trigger lines with the Agilent E1406A Command Module note that the module uses negative true logic Thus wr...

Page 165: ...180 Gating Trigger Signals Page 183 Arming and Triggering Frequency Sweeps and Lists Page 186 Frequency Sweeps Using Triggers Page 186 Arming and Triggering a Frequency Sweep Page 190 Arming and Trig...

Page 166: ...an abort the AFG is in the Idle state The AFG is set to the Wait for Arm state with the INITiate IMMediate command The AFG moves to the Wait for Trigger state when an arm from the specified arm source...

Page 167: ...xecuted when the AFG is not in the Idle state Error 213 Init ignored is generated Arming the AFG In order for the AFG to accept trigger signals which output the amplitude points of the waveform the AF...

Page 168: ...ing Sources The EXT_ARM program shows how to select the source which arms the AFG The program selects the AFG s Start Arm In BNC connector as the arming source When an arming signal is received a 10 k...

Page 169: ...7 2 80 OUTPUT Afg CLS 90 OUTPUT Afg SRE 32 100 OUTPUT Afg ESE 60 110 120 Call the subprograms 130 CALL Rst 140 CALL External_arm 150 160 WAIT 1 allow interrupt to be serviced 170 OFF INTR 7 180 END 1...

Page 170: ...60 End of statement if error occurs among coupled commands 470 OUTPUT Afg 480 OUTPUT Afg ABORT abort output waveform 490 REPEAT 500 OUTPUT Afg SYST ERR read AFG error queue 510 ENTER Afg Code Message...

Page 171: ...he output burst frequency SOURce FREQuency 1 CW FIXed frequency 2 Set the output function SOURce FUNCtion SHAPe shape 3 Set the signal amplitude SOURce VOLTage LEVel IMMediate AMPLitude amplitude 4 Se...

Page 172: ...1 allow interrupt to be serviced 170 OFF INTR 7 180 END 190 200 SUB Burst_arm 210 Burst_arm Subprogram which outputs a 5 cycle burst on each 220 positive edge of an external arm signal 230 COM Afg 24...

Page 173: ...Afg 490 OUTPUT Afg ABORT abort output waveform 500 REPEAT 510 OUTPUT Afg SYST ERR read AFG error queue 520 ENTER Afg Code Message 530 PRINT Code Message 540 UNTIL Code 0 550 STOP 560 SUBEND Visual BAS...

Page 174: ...trigger signal the stop trigger source the slope of an external stop trigger signal the sample gating source the polarity of an external gating signal to enable sample gating The triggering commands...

Page 175: ...in the TRIGger subsystem are frequency coupled They are executed relative to other AFG commands in the sequence shown in Figure 5 3 Figure 5 3 AFG Triggering Command Sequence Chapter 5 Arming and Tri...

Page 176: ...t function SOURce FUNCtion SHAPe shape 5 Set the signal amplitude SOURce VOLTage LEVel IMMediate AMPLitude amplitude 6 Place the AFG in the wait for arm state INITiate IMMediate BASIC Program Example...

Page 177: ...resets the E1445 350 COM Afg 360 OUTPUT Afg RST OPC reset the AFG 370 ENTER Afg Complete 380 SUBEND 390 400 SUB Errmsg 410 Errmsg Subprogram which displays E1445 programming errors 420 COM Afg 430 DI...

Page 178: ...AFGs is given below 1 Set the reference oscillator source for the master and slave as desired or use the default source SOURce ROSCillator SOURce source 2 Set the trigger source of the master AFG as d...

Page 179: ...itude points 30 ASSIGN Afg_m TO 70910 40 ASSIGN Afg_s TO 70911 50 COM Afg_m Afg_s REAL Waveform 1 4096 60 70 Set up error checking 80 ON INTR 7 CALL Errmsg 90 ENABLE INTR 7 2 100 OUTPUT Afg_m CLS 110...

Page 180: ...MARK ECLT0 STAT ON 600 610 Define the waveform segment and download the amplitude points 620 Define the output waveform sequence 630 OUTPUT Afg_m SOUR LIST1 SEGM SEL SIN_X select segment 640 OUTPUT A...

Page 181: ...R NONE select no sequences 1100 OUTPUT Afg_m LIST SSEQ DEL ALL delete all sequences 1110 OUTPUT Afg_m LIST SEGM DEL ALL delete all segments 1120 1130 OUTPUT Afg_s FUNC USER NONE select no sequences 11...

Page 182: ...ARM STARt LAYer 1 COUNt The program sets up five 5 000 cycle bursts Stop triggers are used to abort the burst before all of the 5 000 cycles occurs An external arm is used to start the bursts A stop...

Page 183: ...g SRE 32 100 OUTPUT Afg ESE 60 110 120 Call the subprograms 130 CALL Rst 140 CALL Stop_trig 150 WAIT 1 allow interrupt to be serviced 160 OFF INTR 7 170 END 180 190 SUB Stop_trig 200 Stop_trig Subprog...

Page 184: ...OM 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 ABO...

Page 185: ...ctivates the gate The steps of program are as follows 1 Set the reference oscillator source SOURce ROSCillator SOURce source 2 Set the start trigger source TRIGger STARt SOURce source 3 Set the trigge...

Page 186: ...nterrupt to be serviced 170 OFF INTR 7 180 END 190 200 SUB Tri_wave 210 Tri_wave Subprogram which outputs a triangle wave 220 COM Afg 230 OUTPUT Afg SOUR ROSC SOUR INT2 reference oscillator 240 OUTPUT...

Page 187: ...OUTPUT Afg 500 OUTPUT Afg ABORT abort output waveform 510 REPEAT 520 OUTPUT Afg SYST ERR read AFG error queue 530 ENTER Afg Code Message 540 PRINT Code Message 550 UNTIL Code 0 560 STOP 570 SUBEND Vi...

Page 188: ...ut frequency sweeps each time it is triggered However the maximum sweep time and frequency steps depend on the number of waveform repetitions and the average sweep frequency To determine the maximum s...

Page 189: ...the source to start a sweep ARM SWEep SOURce LINK 8 Set the number of waveform repetitions ARM STARt LAYer 1 COUNt number 9 Set the number of waveform arm starts ARM STARt LAYer2 COUNt number 10 Selec...

Page 190: ...OUTPUT Afg SOUR FREQ1 STAR 1E3 start frequency 250 OUTPUT Afg SOUR FREQ1 STOP 1E6 stop frequency 260 OUTPUT Afg SOUR SWE COUN INF repetition count 270 OUTPUT Afg SOUR SWE POIN 100 frequency points 28...

Page 191: ...age 256 640 Read AFG status byte register and clear service request bit 650 B SPOLL Afg 660 End of statement if error occurs among coupled commands 670 OUTPUT Afg 680 OUTPUT Afg ABORT abort output wav...

Page 192: ...Gger STARt SOURce source 2 Select the frequency sweep mode SOURce FREQuency 1 MODE mode 3 Set the start frequency SOURce FREQuency 1 STARt start_freq 4 Set the stop frequency SOURce FREQuency 1 STOP s...

Page 193: ...nd advanced on IMMediate command 230 COM Afg Pts 240 OUTPUT Afg TRIG STAR SOUR INT1 DDS time base 250 OUTPUT Afg SOUR FREQ1 MODE SWE sweep mode 260 OUTPUT Afg SOUR FREQ1 STAR 1E3 start frequency 270 O...

Page 194: ...s 630 DIM Message 256 640 Read AFG status byte register and clear service request bit 650 B SPOLL Afg 660 End of statement if error occurs among coupled commands 670 OUTPUT Afg 680 OUTPUT Afg ABORT ab...

Page 195: ...1 Select the frequency generator which allows frequency lists hopping TRIGger STARt SOURce source 2 Select the frequency list mode SOURce FREQuency 1 MODE mode 3 Set the frequency list SOURce LIST 2 F...

Page 196: ...g Pts 240 OUTPUT Afg TRIG STAR SOUR INT1 DDS time base 250 OUTPUT Afg SOUR FREQ1 MODE LIST frequency list mode 260 OUTPUT Afg SOUR LIST2 FREQ 10E3 20E3 30E3 40E3 50E3 freq list 270 OUTPUT Afg ARM SWE...

Page 197: ...nd clear service request bit 620 B SPOLL Afg 630 End of statement if error occurs among coupled commands 640 OUTPUT Afg 650 OUTPUT Afg ABORT abort output waveform 660 REPEAT 670 OUTPUT Afg SYST ERR re...

Page 198: ...amplitude point triggered when the abort was executed The command which aborts a waveform is ABORt Using ABORt Stop Triggers or Gating Figure 5 4 compares the effects of aborting a waveform or using s...

Page 199: ...nge The INTernal2 reference oscillator is recommended for use with the divide by n time base SOURce FREQuency2 subsystem to produce exact frequencies such as 10 MHz 20 MHz etc AFG Frequency Synthesis...

Page 200: ...can be output using Divide by N frequency synthesis AFG Frequency Modes There are four frequency modes available using the DDS time base SOURce FREQuency 1 The modes selected by the SOURce FREQuency...

Page 201: ...unt is set with the ARM STARt LAYer2 COUNt command The range is 1 through 65535 or INFinity The default value is 1 Waveform Repetition Count The waveform repetition cycle count specifies the number of...

Page 202: ...signal is high the gate is active and the output is suspended at the last amplitude point triggered When the gate is low inactive the output resumes with the next point INVerted Selects an active low...

Page 203: ...urces are BUS The GPIB Group Execute Trigger GET command or the IEEE 488 2 TRG common command HOLD Suspend sweep or frequency list advance triggering Advance to the next frequency using TRIGger SWEep...

Page 204: ...Notes 202 Arming and Triggering Chapter 5...

Page 205: ...ces Page 205 Arbitrary Generated Marker Pulses Page 206 Generating Marker Pulses for Arbitrary Waveforms Page 206 Generating Multiple Marker Pulses in Multiple Segment Lists Page 207 Generating Single...

Page 206: ...t marker pulses at the front panel Marker Out BNC and the ECL trigger lines Remove the flowchart from the binder for easy accessibility Refer to the flowchart while doing the examples in this chapter...

Page 207: ...marker is a 50 duty cycle square wave at the waveform frequency ARM STARt SEQuence 1 LAYer2 The AFG asserts a marker when triggering the first amplitude point after receiving a start arm The AFG unas...

Page 208: ...RKer SPOint point Enable the waveform segment in a segment sequence to output the marker list using SOURce LIST 1 SSEQuence MARKer marker_list or SOURce LIST 1 SSEQuence MARKer SPOint point Generating...

Page 209: ...gment Data SOURce LIST 1 SSEQuence DELete ALL SOURce LIST 1 SEGMent DELete ALL 3 Setup the AFG for Output SOURce FREQuency 1 CW FIXed frequency SOURce FUNCtion SHAPe USER SOURce VOLTage LEVel IMMediat...

Page 210: ...ST 1 SEGMent VOLTage voltage_list 11 Store the Marker List for the Second Waveform Segment SOURce LIST 1 SEGMent MARKer marker_list This command stores the marker list into memory as a comma separated...

Page 211: ...segments and sequences 140 CALL Rst 150 CALL Wf_del 160 170 Set up the AFG 180 OUTPUT Afg SOUR FREQ1 FIX 512E3 frequency 190 OUTPUT Afg SOUR FUNC SHAP USER function 200 OUTPUT Afg SOUR VOLT LEV IMM A...

Page 212: ...IST1 SEGM SEL TRI segment name 670 OUTPUT Afg SOUR LIST1 SEGM DEF 512 segment size 680 OUTPUT Afg SOUR LIST1 SEGM VOLT Waveform amplitude points 690 OUTPUT Afg SOUR LIST1 SEGM MARK Marker_list marker...

Page 213: ...gister and clear service request bit 1030 B SPOLL Afg 1040 End of statement if error occurs among coupled commands 1050 OUTPUT Afg 1060 OUTPUT Afg ABORT abort output waveform 1070 REPEAT 1080 OUTPUT A...

Page 214: ...e marker pulses The exceptions are as follows 10 Store the Marker Pulse Location for the Second Waveform Segment SOURce LIST 1 SEGMent MARKer SPOint point This command selects the segment or point on...

Page 215: ...I 0195313 560 NEXT I 570 FOR I 257 TO 512 580 Waveform I 512 I 0195313 590 NEXT I 600 610 Load waveform points and specify a single marker pulse 620 OUTPUT Afg SOUR LIST1 SEGM SEL TRI segment name 630...

Page 216: ...lses can be generated in any function and sample source The commands are 1 Reset the AFG RST 2 Clear the AFG Memory of All Sequence and Segment Data SOURce LIST 1 SSEQuence DELete ALL SOURce LIST 1 SE...

Page 217: ...t name SOURce LIST 1 SSEQuence DEFine length SOURce LIST 1 SSEQuence SEQuence segment_list SOURce FUNCtion USER name INITiate IMMediate BASIC Program Example MARKTRG 1 RE STORE MARKTRG 2 This program...

Page 218: ...420 OUTPUT Afg SOUR LIST1 SEGM SEL RAMP segment name 430 OUTPUT Afg SOUR LIST1 SEGM DEF 10 segment size 440 OUTPUT Afg SOUR LIST1 SEGM VOLT Waveform amplitude points 450 460 OUTPUT Afg SOUR LIST1 SSE...

Page 219: ...PUT Afg ABORT abort output waveform 750 REPEAT 760 OUTPUT Afg SYST ERR read AFG error queue 770 ENTER Afg Code Message 780 PRINT Code Message 790 UNTIL Code 0 800 STOP 810 SUBEND Visual BASIC and Visu...

Page 220: ...master AFG generates a 1 MHz square wave the servant a 500 KHz square wave The commands are 1 Reset the Master and Servant AFGs RST 2 Setup the Master AFG For Output SOURce ROSCillator SOURce INT2 TRI...

Page 221: ...OSCillator FREQuency EXTernal 40M This command selects the Reference Oscillator Source To synchronize the servant AFG with the master select the ECLTrg0 trigger line The ECLTRG0 line is a 40 MHz clock...

Page 222: ...rvant 150 OUTPUT Afg_s SRE 32 160 OUTPUT Afg_s ESE 60 170 OUTPUT Afg_s OPC 180 ENTER Afg_s Complete 190 ON INTR 7 CALL Errmsg 200 ENABLE INTR 7 2 210 220 Call the subprograms which reset the AFGs outp...

Page 223: ...T Afg_s ARM STAR LAY2 SOUR ECLT1 arm source 600 610 OUTPUT Afg_s INIT IMM wait for arm state 620 OUTPUT Afg_s STAT OPC INIT OFF OPC allow setup to complete 630 ENTER Afg_s Complete 640 SUBEND 650 660...

Page 224: ...rectory VCPROG on the CD that came with your Agilent E1445A Marker Program Comments The following program comments give additional details on the program examples in this chapter Determining the Numbe...

Page 225: ...forms Page 229 Using the Unsigned Number Format Page 229 Using Definite Length Arbitrary Blocks to Transfer Data Page 231 Definite Length Block Data Format Page 231 Data Byte Size Page 231 Using Indef...

Page 226: ...mparisons Table 7 1 shows the timing relationship of the different data transfer methods used The table lists the relative timing in descending order with the slowest method on top Table 7 1 Speed Rel...

Page 227: ...the AFG set to receive DAC codes in the Signed number format it receives the codes in 16 bit two s complement numbers Use the SOURce ARBitrary DAC FORMat SIGNed command to select the format Determinin...

Page 228: ...ST 1 subsystem 5 Select the DAC Data Format SOURce ARBitrary DAC FORMat SIGNed This command selects the SIGNed number format 6 Setup the Waveform Segment SOURce LIST 1 SEGMent SELect name SOURce LIST...

Page 229: ...TPUT Afg SRE 32 100 OUTPUT Afg ESE 60 110 120 Call the subprograms which reset the AFG and erase all waveform 130 segments and sequences 140 CALL Rst 150 CALL Wf_del 160 170 OUTPUT Afg SOUR FREQ1 FIX...

Page 230: ...mory 620 OUTPUT Afg LIST SEGM DEL ALL Clear segment memory 630 SUBEND 640 650 SUB Errmsg 660 Errmsg Subprogram which displays E1445 programming errors 670 COM Afg 680 DIM Message 256 690 Read AFG stat...

Page 231: ...nsigned or offset binary numbers Use the SOURce ARBitrary DAC FORMat UNSigned command to select the format Determining DAC Codes in the Unsigned Number Format For outputs into matched loads and with t...

Page 232: ...aveform 1 200 Calculate waveform points as dac codes 350 FOR I 100 TO 99 360 Waveform I 101 I 050505 00125 4096 370 NEXT I 380 390 OUTPUT Afg SOUR ARB DAC SOUR INT dac data source 400 OUTPUT Afg SOUR...

Page 233: ...ined in digits for example if the digits value equals 100 or 2000 the non zero digit value equals 3 or 4 respectively digits Shows the number of data bytes to be sent for example if 100 data bytes are...

Page 234: ...LOK1 2 This program downloads arbitrary waveform data as signed 3 2 s complement DAC codes The data is sent in an IEEE 488 2 4 definite length block in 16 bit integer format The waveform is 5 a 200 po...

Page 235: ...ence size 500 OUTPUT Afg SOUR LIST1 SSEQ SEQ RAMP segment order 510 SUBEND 520 530 SUB Rst 540 Rst Subprogram which resets the E1445 550 COM Afg Afg1 560 OUTPUT Afg RST OPC reset the AFG 570 ENTER Afg...

Page 236: ...P 830 SUBEND Visual BASIC and Visual C C Program Versions The Visual BASIC example program DACBLOK1 FRM is in directory VBPROG and the Visual C example program DACBLOK1 C is in directory VCPROG on the...

Page 237: ...lock format 0 Shows that the format is an indefinite length arbitrary block format the 0 number must be sent since a different number shows the definite length arbitrary block format 8 bit data bytes...

Page 238: ...and EOL string sent in line 460 tells the AFG that the data transfer is complete 1 RE STORE DACBLOK2 2 This program downloads arbitrary waveform data as unsigned 3 DAC codes The data is sent in an IE...

Page 239: ...fg SOUR LIST1 SSEQ SEL RAMP_OUT sequence name 490 OUTPUT Afg SOUR LIST1 SSEQ DEF 1 sequence size 500 OUTPUT Afg SOUR LIST1 SSEQ SEQ RAMP segment order 510 SUBEND 520 530 SUB Rst 540 Rst Subprogram whi...

Page 240: ...ge 800 PRINT Code Message 810 UNTIL Code 0 820 STOP 830 SUBEND Visual BASIC and Visual C C Program Versions The Visual BASIC example program DACBLOK2 FRM is in directory VBPROG and the Visual C exampl...

Page 241: ...ks to Transfer Data on page 231 and Using Indefinite Length Arbitrary Blocks to Transfer Data on page 235 respectively This section shows how to transfer the lists as DAC codes using the Signed number...

Page 242: ...puts into matched loads and with the amplitude set to maximum 5 11875V the following codes generate the following outputs Code 0 outputs 0 V Code 32768 outputs 5 12 V or negative full scale voltage Co...

Page 243: ...Clear the AFG Memory of All Sequence and Segment Data SOURce LIST 1 SSEQuence DELete ALL SOURce LIST 1 SEGMent DELete ALL 3 Setup the AFG for Output SOURce FREQuency 1 CW FIXed frequency SOURce FUNCt...

Page 244: ...SELect name SOURce LIST 1 SSEQuence DEFine length SOURce LIST 1 SSEQuence SEQuence segment_list SOURce FUNCtion USER name INITiate IMMediate BASIC Program Example COMBSIGN 1 RE STORE COMBSIGN 2 This...

Page 245: ...ts to dac code positions 420 Waveform I 101 SHIFT Waveform I 101 3 430 END IF 440 NEXT I 450 460 OUTPUT Afg SOUR ARB DAC SOUR INT dac data source 470 OUTPUT Afg SOUR ARB DAC FORM SIGN dac data format...

Page 246: ...occurs among coupled commands 830 OUTPUT Afg 840 OUTPUT Afg ABORT abort output waveform 850 REPEAT 860 OUTPUT Afg SYST ERR read AFG error queue 870 ENTER Afg Code Message 880 PRINT Code Message 890 UN...

Page 247: ...FG currently contains Signed data and you wish to send Unsigned data you MUST delete the data in memory first before enabling the AFG to receive Unsigned data Using the Combined List with the Unsigned...

Page 248: ...rticular point add 2 to the combined list DAC code value of the point For example to add a marker bit of a point with a voltage value of 5 V Code 5 00125 shift left by 3 32768 2 32000 32768 2 766 The...

Page 249: ...t this program generates and transfers the combined list using the Unsigned number format instead of the Signed format and the list is transferred as Indefinite Length Arbitrary Block Data 1 RE STORE...

Page 250: ...430 Waveform 101 32766 set marker bit with this amplitude point 440 END IF 450 IF I 0 THEN dac codes for voltages 0V 460 Waveform 101 I I 050505 00125 470 shift bits to dac code positions 480 Waveform...

Page 251: ...SPOLL Afg 870 End of statement if error occurs among coupled commands 880 OUTPUT Afg 890 OUTPUT Afg ABORT abort output waveform 900 REPEAT 910 OUTPUT Afg SYST ERR read AFG error queue 920 ENTER Afg Co...

Page 252: ...s the marker output and sets the repetition count for each waveform segment to be output Each data code in a Combined Segment Sequence List is sent as a 32 bit Integer in the Unsigned number format Co...

Page 253: ...turned value by 8 For example if the returned value is 2048 the actual address is 2048 8 256 This is necessary due to the hardware requirements of the AFG 3 Add the Address to a Data Value in the Comb...

Page 254: ...he example generates two 5 V sine waves and a single 0 V to 5 V triangle wave A marker is output at the center of the triangle The commands are 1 Reset the AFG RST 2 Clear the AFG Memory of All Sequen...

Page 255: ...RBitrary DAC FORMat SIGNed command The data is sent as Definite Length Arbitrary Block Data can also be sent as Indefinite Length Arbitrary Block Data In this example the marker bit is set at the cent...

Page 256: ...of the data array 15 Setup the Sequence List SOURce LIST 1 SSEQuence SELect name SOURce LIST 1 SSEQuence DEFine length 16 Store the Segment Sequence as Unsigned Combined Data SOURce LIST 1 SSEQuence C...

Page 257: ...lue for the first integer as follows Repetition Count Marker SHIFT 4096 repetition count 4 segment address DIV 65536 4 BASIC determines the value for the second integer as follows Segment Address segm...

Page 258: ...1 allow interrupt to be serviced 310 OFF INTR 7 320 END 330 340 SUB Sine_wave 350 Sine_wave Subprogram which computes a sine wave and downloads 360 the corresponding dac codes as signed numbers in a 3...

Page 259: ...GM DEF 2048 segment size 780 OUTPUT Afg USING K SOUR LIST1 SEGM COMB 44096 790 OUTPUT Afg1 Waveform 4096 bytes 4 digits 2 bytes ampl point 800 OUTPUT Afg CR LF 810 SUBEND 820 830 SUB Seq_list 840 Seq_...

Page 260: ...m which deletes all sequences and segments 1260 COM Afg Afg1 1270 OUTPUT Afg FUNC USER NONE select no sequences 1280 OUTPUT Afg LIST SSEQ DEL ALL Clear sequence memory 1290 OUTPUT Afg LIST SEGM DEL AL...

Page 261: ...r the waveform voltage values bit 1 is the marker bit and bit 0 the last point Store the list either as Signed or Unsigned Combined Segment Lists into memory Use either Definite Length or Indefinite L...

Page 262: ...mbined Segment Sequence List Determine the repetition count using 4096 the repetition count value Add the repetition count to the Combined Segment Sequence List Store the list as a 32 bit wide value f...

Page 263: ...e LEVel IMMediate AMPLitude amplitude 4 Select the DAC Data Format SOURce ARBitrary DAC FORMat SIGNed This command selects the SIGNed or UNSigned number format 5 Set the Marker Output Source SOURce MA...

Page 264: ...t SOURce LIST 1 SEGMent SELect name SOURce LIST 1 SEGMent DEFine length 12 Select the Download Source for the Second Segment List SOURce ARBitrary DOWNload source dest length This command selects the...

Page 265: ...GMent SELect name SOURce LIST 1 SEGMent ADDRess These commands select the second waveform segment and then returns its address Divide the address by 8 store it into the second element of the second 16...

Page 266: ...that Downloading is Completed SOURce ARBitrary DOWNload COMPlete Send this command to the AFG after all data is downloaded 27 Generate the Output INITiate IMMediate BASIC Program Example VXIDOWN This...

Page 267: ...wave 350 Sine_wave Subprogram which computes a sine wave and downloads 360 the corresponding dac codes to segment memory over the 370 VXIbus A combined list is used but no marker pulse is 380 specifie...

Page 268: ...c codes and shift bits to code positions 780 INTEGER Waveform 1 2048 790 FOR I 1 TO 1023 800 Waveform I I 0048828 00125 810 Waveform I SHIFT Waveform I 3 820 NEXT I 830 FOR I 1024 TO 1033 840 Waveform...

Page 269: ...repetition count marker enable and last point 1330 indication for the segment sequence Sequence 2 2 is the starting 1340 address of segment TRI 1350 Sequence 2 1 SHIFT 4096 1 4 Addrm2 DIV 65536 12 13...

Page 270: ...ad AFG status byte register and clear service request bit 1840 B SPOLL Afg 1850 End of statement if error occurs among coupled commands 1860 OUTPUT Afg 1870 OUTPUT Afg ABORT abort output waveform 1880...

Page 271: ...downloaded in the Signed number format and as Indefinite Length Arbitrary Block Data The example generates a 0 to 5 V triangle wave The frequency of the triangle depends on the speed at which downloa...

Page 272: ...e amplitude set the dac data format and dac data source 110 OUTPUT Afg SOUR VOLT LEV IMM AMPL 5 11875V amplitude 120 OUTPUT Afg SOUR ARB DAC FORM SIGN dac data format signed 130 OUTPUT Afg SOUR ARB DA...

Page 273: ...a in 16 bit words to the dac via the 540 VXIbus and High Speed Data register 550 LOOP 560 FOR I 1 TO 128 570 WRITEIO 16 Addr Waveform I 580 NEXT I 590 END LOOP 600 SUBEND 610 620 SUB Rst 630 Rst Subpr...

Page 274: ...e AFG has been 3 INITiated by writing the location of a sequence s base address to the 4 Waveform Select register All register reads and writes are 16 bit 5 The program uses the front panel Digital Po...

Page 275: ...L Sinx_def 450 CALL Sind_def 460 CALL Spike_def 470 SUBEND 480 490 SUB A24_offset Laddr 500 A24_offset Subprogram which determines the base address for 510 the AFG registers in A24 address space 520 C...

Page 276: ...sequence as a 950 combined list repetition count marker and segment address 960 in an indefinite length arbitrary block 970 COM Cmd Afg Afg1 Base_addr Seq1_addr Seq2_addr Seq3_addr 980 INTEGER Wavefo...

Page 277: ...ddr_seg2 1430 A 4 4096 1440 W 2 PI 50 1450 FOR T 1 TO 4096 1460 Waveform T EXP A T SIN W T 00125 1470 shift bits to dac code positions 1480 Waveform T SHIFT Waveform T 3 1490 NEXT T 1500 1510 OUTPUT A...

Page 278: ...0 FOR J 1 TO Width 1 1950 I 1024 Width J 1960 Waveform I Waveform I 9 J Width 00125 1970 NEXT J 1980 1990 shift bits to dac code positions 2000 FOR I 1 TO 4096 2010 Waveform I SHIFT Waveform I 3 2020...

Page 279: ...addr 2320 OUTPUT Afg RST CLS OPC reset the AFG 2330 ENTER Afg Complete 2340 SUBEND 2350 2360 SUB Wf_del 2370 Wf_del Subprogram which deletes all sequences and segments 2380 COM Cmd Afg Afg1 Base_addr...

Page 280: ...Digital Port In Connector Pinout Figure 7 6 shows a pinout of the Digital Port In connector Figure 7 6 E1445A Digital Port In Connector 278 High Speed Operation Chapter 7...

Page 281: ...rates a new FPPACE signal and the process completes For correct operation the FPCLK should occur 150 nS before the next FPPACE occurs The minimum response delay ts is 0 as is also the minimum data hol...

Page 282: ...ng DAC sources available to download data to the DAC INTernal The SOURce LIST 1 subsystem built in waveforms DPORt The front panel s Digital Port In connector LBUS The VXIbus Local Bus VXI The VXIbus...

Page 283: ...Conformance Information Page 414 IEEE 488 2 Common Commands Page 416 Common Commands Quick Reference Page 428 ABORt 290 ARM 291 STARt SEQuence 1 291 LAYer 1 291 COUNt 291 LAYer2 292 COUNt 292 IMMediat...

Page 284: ...341 MARKer 342 POINts 343 SPOint 343 SELect 344 VOLTage 345 DAC 346 POINts 347 SSEQuence 347 ADDRess 347 CATalog 348 COMBined 348 POINts 349 DEFine 350 DELete 351 ALL 351 SELected 351 DWELl 352 COUNt...

Page 285: ...ion 385 PRESet 385 QUEStionable 386 CONDition 386 ENABle 386 EVENt 387 NTRansition 387 PTRansition 388 SYSTem 389 ERRor 389 VERSion 390 TRIGger 391 STARt SEQuence 1 392 COUNt 392 GATE 393 POLarity 393...

Page 286: ...LS ESE unmask OPC STB SCPI Command Format The functions of the AFG are programmed using SCPI commands SCPI commands are based on a hierarchical structure also known as a tree system In this system ass...

Page 287: ...forms Other forms of COUNt such as COU will generate an error You can use upper or lower case letters Therefore COUNT coun or Coun are all acceptable Implied Optional Commands Implied or optional comm...

Page 288: ...ther a numeric parameter can also be specified in hex octal and or binary H7B Q173 B1111011 Boolean Represents a single binary condition that is either true or false Any non zero value is considered t...

Page 289: ...STARt LAYer 1 COUNt MIN MAX INF command If you send the command without specifying a parameter the present ARM STARt LAYer 1 COUNt value is returned If you send the MIN parameter the command returns...

Page 290: ...s See Executing Coupled Commands on page 28 for information on executing coupled commands MIN and MAX Parameters in Coupling Groups When MINimum or MAXimum is the parameter of a command in a coupling...

Page 291: ...he Agilent E1445A Arbitrary Function Generator Commands are listed alphabetically by subsystem and also within each subsystem A command guide is printed in the top margin of each page The guide indica...

Page 292: ...ther settings of the Agilent E1445A The Pending Operation Flag set true by the INITiate IMMediate command will be set false as a consequence of entering the trigger idle state Subsequent OPC OPC and W...

Page 293: ...COUNt number LAYer2 COUNt number IMMediate no query SLOPe edge SOURce source SWEep SEQuence3 COUNt number IMMediate no query LINK link SOURce source STARt LAYer 1 COUNt ARM STARt LAYer 1 COUNt number...

Page 294: ...the idle state Parameters Parameter Name Parameter Type Range of Values Default Units number numeric 1 through 65535 MINimum MAXimum 9 9E 37 INFinity none MINimum selects 1 arms MAXimum selects 65535...

Page 295: ...rce INIT Initiates trigger system ARM LAY2 Starts waveform STARt LAYer2 SLOPe ARM STARt LAYer2 SLOPe edge selects the edge rising or falling on the Agilent E1445A s front panel Start Arm In BNC which...

Page 296: ...after the start trigger sequence enters the wait for arm state TTLTrg0 through TTLTrg7 The VXIbus TTL trigger lines Parameters Parameter Name Parameter Type Range of Values Default Units source discr...

Page 297: ...ted Query form only Coupling Group Frequency Related Commands INITiate IMMediate RST Condition ARM SWEep COUNt 1 Example Setting the Sweep Arm Count ARM SWE COUN 10 Sets 10 sweep arms per INITiate SWE...

Page 298: ...rnal event to start a sweep or list is ARM STARt SEQuence 1 LAYer2 There is no need to send this command since there is only one defined internal event The command is included for SCPI compatibility p...

Page 299: ...set to any other source the frequency sweep or list starts when the INITiate IMMediate command is executed For multiple sweeps or lists a last frequency is output until the next sweep advance trigger...

Page 300: ...nce executing CALibration DATA AC1 AC2 and DC commands and the CALibration POINt query upon completion of the calibration procedure increment the number the CALibration COUNt command may be used to de...

Page 301: ...t CALibration COUNt query Executable when Initiated Yes Coupling Group None Related Commands CALibration COUNt CALibration SECure STATe RST Condition Unaffected DATA AC2 CALibration DATA AC2 block tra...

Page 302: ...e Related Commands CALibration COUNt CALibration SECure STATe RST Condition Unaffected DC BEGin CALibration DC BEGin starts the DC calibration procedure for the Agilent E1445A It sets the Agilent E144...

Page 303: ...d The RST command should be sent after completing the calibration procedure to restore normal operation Calibration security must have been previously disabled See the Agilent E1445A Service Manual fo...

Page 304: ...s security code Before shipping the factory sets the calibration security code to E1445A You should change it before you use your Agilent E1445A to prevent unauthorized calibration Record the new secu...

Page 305: ...ing parameter The value supplied must match the currently programmed security code or Error 224 Illegal parameter value will be generated The Agilent E1445A will then wait 1 second before executing an...

Page 306: ...ition CALibration STATe ON Example Disabling Calibration Corrections CAL STAT OFF Disables corrections STATe AC CALibration STATe AC state specifies whether AC corrections using the calibration consta...

Page 307: ...made if CALibration STATe ON is also set Parameters Parameter Name Parameter Type Range of Values Default Units state boolean OFF 0 ON 1 none Comments Executable when Initiated Yes Coupling Group Non...

Page 308: ...wait for arm or wait for trigger state as appropriate Waveform generation begins when the next start arm is received When ARM STARt LAYer2 COUNt full arm cycles complete the trigger system returns to...

Page 309: ...is set when SOURce ARBitrary DAC SOURce is not set to INTernal or the trigger system is not in the idle state Error 213 Init ignored is generated Executable when Initiated No Coupling Group None Relat...

Page 310: ...s Parameter Name Parameter Type Range of Values Default Units frequency numeric 250 kHz 10 MHz MINimum MAXimum Hz MINimum selects the 250 kHz filter MAXimum selects the 10 MHz filter Comments Selectin...

Page 311: ...MHZ Selects 10 MHz output filter OUTP FILT ON Enables output filtering IMPedance OUTPut 1 IMPedance impedance sets the Agilent E1445A s output impedance to either 50 or 75 Parameters Parameter Name P...

Page 312: ...MAXimum selects 75 Use 9 9E 37 or INFinity to indicate an open circuit output Comments The load value specified by this command either must be the same as that specified by OUTPut 1 IMPedance or must...

Page 313: ...Coupling Group Voltage Related Commands OUTPut 1 IMPedance OUTPut 1 LOAD RST Condition OUTPut1 LOAD AUTO ON Example Uncoupling OUTPut 1 IMPedance and OUTPut 1 LOAD OUTP LOAD AUTO OFF Uncouples impeda...

Page 314: ...he following sections of the command reference The SOURce node itself is optional Subsystem Syntax The first level SOURce syntax tree is SOURce ARBitrary Page 313 FREQuency 1 Page 319 FREQuency2 Page...

Page 315: ...toring the waveform segment data Use SOURce LIST 1 SEGMent DELete ALL to delete waveform segment data before changing the DAC code format Parameters Parameter Name Parameter Type Range of Values Defau...

Page 316: ...C SOURce c Directly downloading waveform segments SOURce ARBitrary DOWNload Related Commands SOURce ARBitrary DAC SOURce SOURce ARBitrary DOWNload SOURce LIST 1 SEGMent COMBined SOURce LIST 1 SEGMent...

Page 317: ...SOURce MARKer and SOURce VOLTage subsystems and the TRIGger subsystem The Agilent E1445A immediately outputs each DAC data point when received Also the output amplitude must be specified in terms of v...

Page 318: ...h this point if the marker bit in the segment sequence memory location generating this segment is also a 1 Last point is 1 for the waveform segment s third to last point actual last point 3 When downl...

Page 319: ...and less than or equal to the defined segment sequence length The current segment sequence length is set to this length MINimum selects 1 point MAXimum selects the defined waveform segment or segment...

Page 320: ...ated Commands SOURce ARBitrary DOWNload RST Condition Downloading disabled Example Set up to download 512 points from the VXIbus to waveform segment ABC LIST SEL ABC Creates segment name LIST DEF 512...

Page 321: ...equations CENTer STARt STOP 2 SPAN STOP STARt If either CENTer or SPAN is sent singly the value of the other is preserved but the STARt and STOP values will change according to the following equation...

Page 322: ...divided by 16 Ramps and Triangle Outputs the maximum possible frequency is the current reference oscillator frequency divided by 4 further divided by the SOURce RAMP POINts value For non sine wave out...

Page 323: ...context dependent See Coupling Rules on page 319 for a description of the coupling between STARt STOP CENTer and SPAN Comments Executable when Initiated Query form only Coupling Group Frequency Relate...

Page 324: ...ed by 16 Ramps and Triangle Outputs MAXimum selects the current reference oscillator frequency divided by 4 further divided by the SOURce RAMP POINts value For non sine wave outputs multiply the MAXim...

Page 325: ...r frequency divided by 16 Ramps and Triangle Outputs MAXimum selects the current reference oscillator frequency divided by 4 further divided by the SOURce RAMP POINts value For non sine wave outputs m...

Page 326: ...nnector TTLTrg0 through TTLTrg7 The VXIbus TTL trigger lines The front panel s Stop Trig FSK Gate In BNC is a three use connector for FSK control as a stop trigger source or as a sample gate source On...

Page 327: ...n BNC select the two sample rate or waveform frequencies LIST Selects frequency list mode SOURce LIST2 FREQuency sets the sample rate or waveform frequencies SWEep Selects frequency sweep mode SOURce...

Page 328: ...ference oscillator frequency divided by 16 Ramps and Triangle Outputs The maximum undoubled frequency is the current reference oscillator frequency divided by 4 further divided by the SOURce RAMP POIN...

Page 329: ...z The legal range for freq_span as well as the MINimum and MAXimum values are context dependent See Coupling Rules on page 319 for a description of the coupling between STARt STOP CENTer and SPAN Comm...

Page 330: ...context dependent See Coupling Rules on page 319 for a description of the coupling between STARt STOP CENTer and SPAN Comments Executable when Initiated Query form only Coupling Group Frequency Relate...

Page 331: ...t dependent See Coupling Rules on page 319 for a description of the coupling between STARt STOP CENTer and SPAN Comments Executable when Initiated Query form only Coupling Group Frequency Related Comm...

Page 332: ...se noise characteristics and permits higher frequency operation than the direct digital synthesis NCO technique used by the first generator The first generator has finer resolution and frequency sweep...

Page 333: ...by 131 072 further divided by the SOURce RAMP POINts value MAXimum selects the current reference oscillator frequency divided by the SOURce RAMP POINts value The above values bound the valid range fo...

Page 334: ...the polarity and number of points SINusoid Generates a sinusoidal voltage SINusoid requires that TRIGger STARt SOURce INTernal1 be selected SQUare Generates a square wave The SOURce RAMP POLarity com...

Page 335: ...segment memory when ramp or triangle wave output is selected will generate Error 1000 Out of memory Executable when Initiated Query form only Coupling Group Frequency and voltage RST Condition SOURce...

Page 336: ...uery only DEFine length DELete ALL no query SELected no query FREE query only MARKer marker_list POINts query only SPOint point no query SELect name VOLTage voltage_list DAC voltage_list POINts query...

Page 337: ...ge DAC The data is returned as 16 bit signed or unsigned DAC codes as specified by the SOURce ARBitrary DAC FORMat command SOURce LIST 1 SSEQuence DWELl COUNt The data is returned in 16 bit integer fo...

Page 338: ...ment Memory Address LIST SEGM ADDR Queries segment address SEGMent CATalog SOURce LIST 1 SEGMent CATalog returns a comma separated list of quoted strings each containing the name of a defined waveform...

Page 339: ...f the comma separated list of values format is used the values must be in two s complement format i e values should range from 32768 to 32767 If block format is used the most significant byte of each...

Page 340: ...marker pulse list Comments Executing this command with voltage point and marker pulse lists defined with different lengths generates Error 221 Settings conflict unless the marker pulse list has a len...

Page 341: ...ted SOURce LIST 1 SEGMent DELete SELected command before its reserved length may be redefined The voltage point and marker pulse list values and length may be changed repeatedly without re executing t...

Page 342: ...gments are defined Example Deleting All Waveform Segments LIST DEL ALL Deletes all segments SEGMent DELete SELected SOURce LIST 1 SEGMent DELete SELected deletes the currently selected waveform segmen...

Page 343: ...ata format is numeric_value numeric_value The first numeric value shows the amount of waveform segment memory available in points the second the amount of waveform segment memory used in points Commen...

Page 344: ...utive points Usually marker pulse generation is enabled on no more than one point of a waveform segment The SOURce LIST 1 SEGMent MARKer SPOint command is the most efficient way to enable marker pulse...

Page 345: ...ies the marker pulse list length SEGMent MARKer SPOint SOURce LIST 1 SEGMent MARKer SPOint point is a short cut method for defining a marker list with marker pulse generation enabled on a single point...

Page 346: ...ters Parameter Name Parameter Type Range of Values Default Units name character data 1 through 12 characters NONE none NONE selects no waveform segment Comments Legal names must start with an alphabet...

Page 347: ...the most recent voltage point and marker pulse list is generated when the waveform segment is output The waveform segment s marker pulse list length must be the same length as its voltage point list...

Page 348: ...0 through 8191 for unsigned numbers MINimum and MAXimum cannot be used with this command Comments If block format is used the most significant byte of each value must be sent first The voltage point...

Page 349: ...ecutable when Initiated Yes Coupling Group None RST Condition None Power On Condition No waveform segments are defined Example Query Voltage Point List Length LIST SEL ABC Selects waveform segment ABC...

Page 350: ...etition count reserved marker enable unused segment address The repetition count is 12 bit unsigned value that is 4096 the desired repetition count a value of 4095 in these bits indicates 1 repetition...

Page 351: ...nt long LIST SSEQ COMB 786432 Outputs segment at address 0 one time with markers enabled SSEQuence COMBined POINts SOURce LIST 1 SSEQuence COMBined POINts returns a number indicating the length of the...

Page 352: ...ed length may be redefined The contents and length of the list may be changed repeatedly without re executing the DEFine command By using the SOURce LIST 1 SSEQuence DWELl COUNt command up to 4096 rep...

Page 353: ...e Deleting All Segment Sequences LIST SSEQ DEL ALL Deletes all segments SSEQuence DELete SELected SOURce LIST 1 SSEQuence DELete SELected deletes a single segment sequence definition and makes its mem...

Page 354: ...t and marker enable lists or must have a length of 1 If not executing INITiate IMMediate generates Error 1114 Sequence lists of different lengths A repetition count list of length 1 is treated as thou...

Page 355: ...repetition count list length SSEQuence FREE SOURce LIST 1 SSEQuence FREE returns information on segment sequence memory availability and usage The return data format is numeric_value numeric_value Th...

Page 356: ...ble marker pulse generation for a single waveform segment The segment sequence s marker enable list length must be the same length as its waveform segment and repetition count lists or must have a len...

Page 357: ...d which enables marker pulse generation only on the segment specified The waveform segment list must have been previously defined Parameters Parameter Name Parameter Type Range of Values Default Units...

Page 358: ...rt with an alphabetic character and contain only alphabetic numeric and underscore _ characters Alphabetic character case upper versus lower is ignored No segment sequence may have the same name as an...

Page 359: ...nce name take only one point in the segment sequence memory Executable when Initiated No Coupling Group None RST Condition Unaffected Example Defining a Segment Sequence LIST SSEQ SEQ A B C Defines se...

Page 360: ...quency list return data formats are ASCii Returns the frequency list as NR3 numbers as defined in IEEE 488 2 REAL Returns data in IEEE 488 2 definite block format containing the frequency values in IE...

Page 361: ...is the current reference oscillator frequency divided by 16 Ramps and Triangle Outputs The maximum frequency is the current reference oscillator frequency divided by 4 further divided by the SOURce R...

Page 362: ...urrently defined frequency list Comments Executable when Initiated Yes Coupling Group None RST Condition Unaffected Power On Condition No frequency list is defined Example Query the Frequency List Len...

Page 363: ...d when the first amplitude point is triggered The marker is unasserted with the last amplitude point of the last waveform repetition or following an ABORt SOURce FREQuency 1 CHANge Outputs a one sampl...

Page 364: ...1 Example Setting the VXI ECLTRG0 Trigger Line Source MARK ECLT0 FEED SOUR LIST Sets marker list as source ECLTrg n STATe SOURce MARKer ECLTrg n STATe mode enables or disables the routing of the selec...

Page 365: ...Rce LIST 1 SEGMent MARKer and SSEQuence MARKer commands The pulse is normally one sample period wide but may be widened by placing markers on consecutive output points This source is only useful with...

Page 366: ...ED SOURce MARKer STATe RST Condition SOURce MARKer POLarity NORMal Example Setting the Marker Out BNC Polarity MARK POL INV Sets active low output STATe SOURce MARKer STATe mode enables or disables th...

Page 367: ...ult units specified by the SOURce PM UNIT ANGLe command Parameters Parameter Name Parameter Type Range of Values Default Units phase numeric through MINimum MAXimum see below MINimum selects MAXimum s...

Page 368: ...in the least significant bits of a word to offset 176 decimal B0 hex The most significant byte should be written in the least significant bits of a word to offset 178 decimal B2 hex After both bytes...

Page 369: ...ts sine wave output PM STAT ON Enables phase modulation INIT Starts output PM DEV 78648 Sets deviation to 4 UNIT ANGLe SOURce PM UNIT ANGLe units sets the default angle units for subsequent SOURce PM...

Page 370: ...um Comments For triangle waves make number a multiple of 4 for best waveform shape When SOURce FUNCtion SHAPe RAMP or TRIangle is selected the greater of the SOURce RAMP POINts value and 8 points of c...

Page 371: ...generates a waveform with initial voltage being the more positive voltage INVerted generates the more negative voltage first Parameters Parameter Name Parameter Type Range of Values Default Units pola...

Page 372: ...use this value to generate sample rate and waveform frequencies when SOURce ROSCillator SOURce is set to EXTernal or ECLTrgn Parameters Parameter Name Parameter Type Range of Values Default Units freq...

Page 373: ...illator Using this oscillator in conjunction with the SOURce FREQuency2 subsystem allows that subsystem to exactly produce frequencies such as 1 5 10 and 20 MHz for arbitrary waveform sample rates The...

Page 374: ...ce SWEep COUNt number DIRection direction POINts number SPACing mode TIME time SWEep COUNt SOURce SWEep COUNt number specifies the number of sweeps or repetitions of a frequency list the Agilent E1445...

Page 375: ...requency specified by SOURce FREQuency 1 STARt and STOP or CENTer and SPAN and ends at the start frequency UP The sweep starts at the start frequency specified by SOURce FREQuency 1 STARt and STOP or...

Page 376: ...s with SOURce FREQuency 1 MODE set to SWEep the length of the SOURce LIST2 FREQuency list specifies the points with SOURce FREQuency 1 MODE set to LIST When changing the SOURce SWEep POINts value when...

Page 377: ...cy 1 STARt and STOP or CENTer and SPAN LOGarithmic Selects the logarithmic sweep mode The sample rate or waveform frequency increases or decreases logarithmically between the start and stop frequencie...

Page 378: ...es Default Units time numeric see below MINimum MAXimum seconds MINimum selects 1 25 mS points 1 MAXimum selects 4 19430375 S points 1 The above values bound the valid range for time Comments When per...

Page 379: ...ets the positive full scale output amplitude for arbitrary waveforms SOURce FUNCtion SHAPe USER set the least significant DAC code bit represents 1 4095 of this value Output amplitude for ramp sine sq...

Page 380: ...by the SOURce VOLTage LEVel IMMediate AMPLitude UNIT VOLTage command For all waveform shapes other than DC output output amplitude control is implemented as a 0 to 30 dB attenuator with 01 dB resolut...

Page 381: ...to VPK for time varying waveforms VPK Volts peak VPP Volts peak to peak VRMS Volts RMS W Watts For W DBM and DBMW the amplitude is referenced to the OUTPut 1 LOAD value they are meaningless and there...

Page 382: ...d to a multiple of 2 5 mV MAXimum selects the lesser of 6 025 V output amplitude value and 5 0 V again rounded down If the output amplitude in volts is less than or equal to 1 02426 V MINimum selects...

Page 383: ...lways zero Bit 0 Calibrating Set 1 during the execution of the CALibration DC BEGin command Cleared 0 at the end of DC calibration or if calibration is aborted Bit 3 Sweeping Set 1 while a frequency s...

Page 384: ...ely With state ON set they will wait for the Pending Operation Flag set true by INITiate IMMediate to return false indicating that the trigger system is in the idle state and that waveform generation...

Page 385: ...e unmask specifies which bits of the Operation 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 Parameters Par...

Page 386: ...mask sets the negative transition mask For each bit unmasked a 1 to 0 transition of that bit in the Operation Condition Register will set the same bit in the Operation Event Register Parameters Parame...

Page 387: ...ected Power on Condition STATus OPERation PTRansition 32767 Example Setting the Operation Register Positive Transition Mask STAT OPER PTR H0040 Sets the event bit when Waiting for Arm condition is set...

Page 388: ...Stionable ENABle STATus QUEStionable ENABle unmask specifies which bits of the Questionable Signal Event Register are included in its Summary bit The Summary bit is the bit for bit logical AND of the...

Page 389: ...sets the negative transition mask For each bit unmasked a 1 to 0 transition of that bit in the Questionable Signal Condition Register will set the same bit in the Questionable Signal Event Register Pa...

Page 390: ...fault Units unmask numeric or non decimal numeric 0 through 32767 none The non decimal numeric forms are the H Q or B formats specified by IEEE 488 2 Comments Executable when Initiated Yes Coupling Gr...

Page 391: ...he SYSTem ERRor command returns the oldest unread error message first The error queue can hold 30 error messages If the Agilent E1445A generates more than 30 messages that are not read it replaces the...

Page 392: ...the SCPI version number to which the Agilent E1445A complies 1991 0 Comment Executable when Initiated Yes RST Condition None Example Querying the SCPI Revision SYST VERS Queries SCPI revision SYSTem...

Page 393: ...e and slope for prematurely stopping one trigger cycle without aborting the entire trigger system The source for advancing a frequency sweep or list Subsystem Syntax TRIGger STARt SEQuence 1 COUNt num...

Page 394: ...9 91e37 or NaN not a number There is no need to send this command It is included for SCPI compatibility purposes only Parameters Parameter Name Parameter Type Range of Values Default Units number nume...

Page 395: ...STARt GATE POLarity INVerted Example Setting the Sample Gate Polarity TRIG STARt GATE POL NORM Sets active high gate STARt GATE SOURce TRIGger STARt GATE SOURce source selects the source which gates...

Page 396: ...STARt GATE SOURce EXTernal Example Setting the Sample Gate Source TRIG GATE SOUR TTLT0 Selects VXIbus trigger line TTLTRG0 as sample gate source STARt GATE STATe TRIGger STARt GATE STATe mode enables...

Page 397: ...TRIG SOUR HOLD Sets manual sample generation INIT Initiates trigger system TRIG Advances waveform STARt SLOPe TRIGger STARt SLOPe edge selects the edge rising or falling at the Agilent E1445A s front...

Page 398: ...ds sample generation Use the TRIGger STARt IMMediate command to advance the waveform INTernal 1 The SOURce FREQuency 1 subsystem Sine wave output SOURce FUNCtion SHAPe SINusoid set requires that this...

Page 399: ...is set TRIGger STOP IMMediate places the trigger system in the idle state at the end of the current waveform repetition An INITiate IMMediate command must be executed to restart waveform generation T...

Page 400: ...ope STOP SOURce TRIGger STOP SOURce source selects the source that can terminate the current start arm cycle at the end of the current waveform repetition When the Agilent E1445A receives a stop trigg...

Page 401: ...ive at any time If a VXIbus TTLTrg trigger line is used as the stop trigger source then no TTLTrg trigger lines can be used for FSK control or as the gating source Executable when Initiated Query form...

Page 402: ...is set to LINK The only defined internal event to advance a sweep or list is ARM STARt SEQuence 1 LAYer2 There is no need to send this command since there is only one defined internal event The comma...

Page 403: ...s the sweep or list Thus the frequency change always occurs at the start of ARM STARt LAYer 1 COUNt repetitions of the waveform TIMer The SOURce SWEep TIME and TRIGger SWEep TIMer commands control the...

Page 404: ...the same depending on which command SOURce SWEep TIME or TRIGger SWEep TIMer respectively was most recently sent The other value is changed based on the new points value Parameters Parameter Name Para...

Page 405: ...E edge IDENtity CONFigure LBUS MODE VINStrument CONFigure LBUS MODE mode selects the operating mode for the VXIbus Local Bus Parameters Parameter Name Parameter Type Range of Values Default Units mode...

Page 406: ...S CONF LBUS PIP Sets pipeline pass through mode CONFigure LBUS MODE AUTO VINStrument CONFigure LBUS MODE AUTO mode indicates whether the VXIbus Local Bus operation mode should be automatically set to...

Page 407: ...the Agilent E1445A received Parameters Parameter Name Parameter Type Range of Values Default Units length numeric see below none The valid range for length is 2 through the size of largest available c...

Page 408: ...t data CONFigure VME MODE VINStrument CONFigure VME MODE mode selects the operating mode for the VXIbus data transfer bus The only available mode is CONSume There is no need to send this command since...

Page 409: ...es waveform segment ARB DOWN VXI ABC 100 Starts download to segment VINS VME REC ADDR DATA Queries A24 offset for data writes CONFigure VME RECeive ADDRess READy VINStrument CONFigure VME RECeive ADDR...

Page 410: ...L INSTRUMENT ANY DTOA 0 A 01 00 The first and last fields indicate that the Agilent E1445A conforms to revision A 01 00 of Agilent s Virtual Instrument Local Bus System Specification The second field...

Page 411: ...CALibration CALibration COUNt CALibration DATA AC 1 block CALibration DATA AC2 block CALibration DATA DC block CALibration DC BEGin CALibration DC POINt value CALibration SECure CODE code CALibration...

Page 412: ...MODE mode SOURce FREQuency 1 RANGe range SOURce FREQuency 1 SPAN freq_span SOURce FREQuency 1 STARt start_freq SOURce FREQuency 1 STOP stop_freq SOURce FREQuency2 SOURce FREQuency2 CW FIXed frequency...

Page 413: ...ist SOURce LIST 1 SSEQuence COMBined POINts SOURce LIST 1 SSEQuence DEFine length SOURce LIST 1 SSEQuence DELete ALL SOURce LIST 1 SSEQuence DELete SELected SOURce LIST 1 SSEQuence DWELl COUNt repetit...

Page 414: ...al frequency SOURce ROSCillator SOURce source SOURce SWEep SOURce SWEep COUNt number SOURce SWEep DIRection direction SOURce SWEep POINts number SOURce SWEep SPACing mode SOURce SWEep TIME number SOUR...

Page 415: ...te TRIGger STOP SLOPe edge TRIGger STOP SOURce source TRIGger SWEep IMMediate TRIGger SWEep LINK link TRIGger SWEep SOURce source TRIGger SWEep TIMer period VINStrument VINStrument CONFigure LBUS MODE...

Page 416: ...ency 1 CENTer center_freq CW FIXed frequency MODE mode SPAN freq_span STARt start_freq STOP stop_freq FREQuency2 CW FIXed frequency FUNCtion SHAPe shape LIST2 FREQuency freq_list POINts SOURce MARKer...

Page 417: ...LTage voltage_list DAC dac_list POINts SOURce LIST 1 SSEQuence ADDRess CATalog COMBined combined_list DEFine length DELete ALL SELected DWELl COUNt repetition_list POINts FREE MARKer marker_list POINt...

Page 418: ...format or as a quoted string Parameters Parameter Name Parameter Type Range of Values Default Units name string data 1 through 12 characters none data block data or string any valid command sequence...

Page 419: ...Macro usage is disabled Power On Condition Macro usage is enabled ESE and ESE ESE mask enables one or more event bits of the Standard Event Status Register to be reported in bit 5 the Standard Event S...

Page 420: ...ower On Condition Register is cleared GMC GMC name returns the definition of the specified macro in IEEE 488 2 definite block format Parameters Parameter Name Parameter Type Range of Values Default Un...

Page 421: ...irmware 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 ma...

Page 422: ...may vary depending on firmware revision Comments Executable when Initiated Yes Coupling Group None Related Commands RCL RST SAV RST Condition None OPC OPC causes the Agilent E1445A to wait for all pen...

Page 423: ...C waits for waveform generation to complete before placing the 1 in the output queue No other commands will be executed until the 1 is placed in the output queue Comments Executable when Initiated Yes...

Page 424: ...cuted regardless of the state of calibration security Note When shipped from the factory the protected user data area contains information regarding when the Agilent E1445A was last calibrated Paramet...

Page 425: ...on SECure command state Parameters Parameter Name Parameter Type Range of Values Default Units number numeric 0 through 9 none Comments Executable when Initiated No Coupling Group None Related Command...

Page 426: ...s Comments Executable when Initiated Yes Coupling Group None RST Condition None SAV SAV number stores the current programming state into one of the 10 possible stored state areas The number indicates...

Page 427: ...mask is the sum of the decimal weights of the bits to be enabled SRE returns the current enable mask Parameters Parameter Name Parameter Type Range of Values Default Units mask numeric 0 through 255 n...

Page 428: ...serial command and has exactly the same effect Comments Executable when Initiated Yes Coupling Group None Related Commands ARM and TRIGger subsystem SOURce commands RST Condition None TST TST causes t...

Page 429: ...NITiate OFF is set command execution resumes when all commands received prior to the WAI have been executed If ON is set WAI waits for waveform generation to complete before resuming command execution...

Page 430: ...ted User Data Query Internal Operations LRN RST TST Learn Device Setup Query Reset Command Self Test Query Synchronization OPC OPC WAI Operation Complete Command Operation Complete Command Wait to Con...

Page 431: ...e 439 The Status Byte Status Group Page 442 Status System Registers Operating conditions within the AFG are monitored by registers in various status groups The status groups implemented by the AFG are...

Page 432: ...Figure 9 1 E1445A Status Groups and Associated Registers 430 AFG Status Chapter 9...

Page 433: ...can be determined by reading the Condition Register with the command STATus QUEStionable CONDition Bit 5 has a corresponding decimal value of 32 and bit 8 has a decimal value of 256 Reading the Condit...

Page 434: ...egister that are to be ANDed with bits in the Event Register are specified unmasked with the command STATus QUEStionable ENABle unmask unmask is the decimal hexadecimal H octal Q or binary B value of...

Page 435: ...50 Reset the AFG 60 CALL Rst 70 80 Set up the computer to respond to the service request 90 ON INTR 7 CALL Disp_msg 100 ENABLE INTR 7 2 110 120 Set up the AFG to monitor the output frequency 130 OUTPU...

Page 436: ...he E1445 550 COM Afg 560 OUTPUT Afg RST OPC reset the AFG 570 ENTER Afg Complete 580 SUBEND Comments This program runs continuously until a frequency change greater than 1 occurs between the programme...

Page 437: ...start arm is received or when waveform generation is aborted INITiated Bit 8 is set 1 when the INITiate IMMediate command is executed The bit is cleared 0 when waveform generation is complete and the...

Page 438: ...he Event Register with bits in the Enable Register and ORs the results to obtain a summary bit The bits in the Enable Register that are to be ANDed with bits in the Event Register are specified unmask...

Page 439: ...rvice request 90 ON INTR 7 CALL Afg_ready 100 ENABLE INTR 7 2 110 120 Set up the AFG to generate a service request when it enters the 130 wait for arm state 140 OUTPUT Afg CLS clear Status Byte and Ev...

Page 440: ...fg RST OPC reset the AFG 580 ENTER Afg Complete 590 SUBEND Comments Clearing the Operation Status Event Register line 140 allows new events to be latched into the register Clearing the service request...

Page 441: ...nd is received Execution Error EXE Bit 4 is set 1 when a command parameter is outside its legal range Device Dependent Error DDE Bit 3 is set 1 when an error other than a command error execution error...

Page 442: ...bits in the Enable Register can be determined with the command ESE The Standard Event Status Enable Register is cleared at power on or with an unmask value of 0 Program Example The ERRORCHK program s...

Page 443: ...5A Standard Event Status Register 140 OUTPUT Afg CLS 150 OUTPUT Afg SRE 32 160 OUTPUT Afg ESE 60 170 180 Subprogram calls would be here 190 200 WAIT 1 allow error branch to occur before turning intr o...

Page 444: ...V Bit 4 is set 1 when data such as a query response is in the AFG s output queue Standard Event Summary Bit ESB Bit 5 is set 1 when a condition monitored by the Standard Event Status Group is present...

Page 445: ...SRE The Service Request Enable Register is cleared at power on or by specifying an unmask value of 0 Presetting the Enable Register and Transition Filter The Enable Registers and Transition Filters i...

Page 446: ...Notes 444 AFG Status Chapter 9...

Page 447: ...ge 450 Output Circuitry Description Page 451 Attenuator Page 451 Filter Page 451 Output Amplifier Page 451 Offset Circuitry Page 451 AFG Memory Description Page 452 AFG Description The AFG can output...

Page 448: ...aveform The segment sequence selects the waveform segment to be output for waveform generation The segment sequence is stored in the AFG s sequence memory For square ramp and triangle functions the AF...

Page 449: ...iate bits of the DAC For the sinusoid function the output of the frequency generator sets the bits to the appropriate value see Generating Sinusoid Waveforms on page 450 The DAC can also receive segme...

Page 450: ...lator provides the clock signal for the frequency generator Thus frequency stability depends on the stability of the reference oscillator The oscillator also determines the frequency range of the freq...

Page 451: ...or is applied to a DAC The DAC output is filtered and the resultant clock signals clocks the memory and output DAC to create the waveforms Divide by N Frequency Generator Frequency2 Generator Refer to...

Page 452: ...ges output impedances and has a 250 kHz and a 10 MHz low pass filter See Output Circuitry Description on page 451 for more information Microprocessor The AFG uses a Motorola 68000 microprocessor to ge...

Page 453: ...connector Filter The AFG provides a 250 kHz low pass filter 10 MHz low pass filter or no filter The filters are used to filter the high frequency components such as clock signals of the output DAC s...

Page 454: ...rmat This memory uses 16 bit integer values for the codes To change the number format to a different format the memory must be completely empty before selecting the different format Because of hardwar...

Page 455: ...inal values are non warranted supplementary information provided for applications assistance Memory Characteristics Segment Memory contains DAC code and Marker Bit for each sample point DAC Word 13 bi...

Page 456: ...0 ppm year Arbitrary Waveform Sample Rates Maximum arbitrary waveform sample rate internal or external rate 40MSa s Sa s Samples per second Frequency Generator 1 Internal Reference 42 94967296 MHz Rat...

Page 457: ...Hz internal reference oscillator in each case the frequency resolution equals the minimum frequency Sine Waves 0 01 Hz to 10 73741824 MHz Square Waves 0 0025 Hz to 2 68435456 MHz normal range Average...

Page 458: ...Up to 2M or f ref 5 changes sec phase continuous whichever is smaller Digital Phase Modulation See Interface Characteristics later in this appendix Note 1 Sine waves can be leveled at each step of a f...

Page 459: ...or 75 respectively or INF 0 3 of setting 0 2 of full scale add for each C beyond 5 from Tcal 0 05 of setting 0 015 of full scale All Built In Waveforms Output Level into 50 or 75 0 32374 to 10 2375 Vp...

Page 460: ...output voltage corresponding to DAC full scale can be adjusted over the indicated 30 dB range with resolution equivalent to steps of 0 01 dB DC Accuracy 0 9 of setting add for each C beyond Tcal 5 Add...

Page 461: ...and the end of each burst of waveform repetitions frequency change phase change Inputs Ref Sample In external reference frequency 40 MHz maximum trigger source i e the waveform clock Start Arm In sta...

Page 462: ...eform clock waveform clock stop causes the current waveform repetition to be the last sweep arm starts sweep or frequency list sweep trigger go to next point in sweep or frequency list Output Function...

Page 463: ...a s the Faceplate Connector typ 1 M s or the VME bus typ 2 M s General VXIbus Characteristics Size C Slots 1 Connectors P1 P2 Weight kg 1 9 Device Type Message Based Servant VXIbus Revision Compliance...

Page 464: ...Notes 462 Agilent E1445A Specifications Appendix A...

Page 465: ...5A Example Program Listing Page 464 Table B 2 Agilent E1445A Command Coupling Groups Page 467 Table B 3 Agilent E1445A Frequency Limits Page 470 Table B 4 Agilent E1445A Amplitude Limits Page 471 Tabl...

Page 466: ...quare wave 1V DC offset 200 point 4V 10 kHz triangle wave Sets AFG s output impedance and load Sets amplitude units to volts peak to peak Shifts sine wave phase from 0 to 180 degrees Arbitrary Wavefor...

Page 467: ...ency shift keying with the TTLTrg control source Frequency shift keying of an arbitrary waveform Arming and Triggering Chapter 5 EXT_ARM BURST DIV_N LOCKSTEP STOPTRIG GATE SWP_TRIG SWP_STEP LIST_STP B...

Page 468: ...e length block Downloads waveform amplitude and marker data over the VXIbus backplane Writes data directly to the DAC from the VXIbus backplane See also Appendix C Changes output waveform sequence by...

Page 469: ...TATus OPERation NTRansition STATus OPERation PTRansition STATus QUEStionable CONDition STATus QUEStionable ENABle STATus QUEStionable EVENt STATus QUEStionable NTRansition STATus QUEStionable PTRansit...

Page 470: ...XTernal SOURce ROSCillator SOURce SOURce SWEep COUNt SOURce SWEep DIRection SOURce SWEep POINts SOURce SWEep SPACing SOURce SWEep TIME TRIGger STARt GATE POLarity TRIGger STARt GATE SOURce TRIGger STA...

Page 471: ...e LIST 1 SEGMent FREE SOURce LIST 1 SEGMent MARKer SOURce LIST 1 SEGMent MARKer POINts SOURce LIST 1 SEGMent MARKer SPOint SOURce LIST 1 SEGMent SELect SOURce LIST 1 SEGMent VOLTage SOURce LIST 1 SEGM...

Page 472: ...4 TRIangle INTernal 1 0 Hz Ref Osc freq 4 Ramp Points INTernal2 Ref Osc freq 131072 Ramp Points Ref Osc freq Ramp Points RAMP INTernal 1 0 Hz Ref Osc freq 4 Ramp Points INTernal2 Ref Osc freq 131072 R...

Page 473: ...088 to 5 11875 161869088 to 5 11875 N A N A Amplitude Limits for Watts and dB Function W Watt 50 load W Watt 75 load DBM DBMW dBmW 50 load DBM DBMW dBmW 75 load DC N A N A N A N A SINusoid 00026201601...

Page 474: ...requency divide by n generator Reference oscillator source External oscillator frequency Sweep count Sweep direction Sweep points EMC CAL STAT CAL STAT AC CAL STAT DC ARB DAC SOUR PM UNIT ANGL VOLT AM...

Page 475: ...gth ECL trigger line 0 marker source Marker routing ECLT0 line ECL trigger line 1 marker source Marker routing ECLT1 line Marker Out BNC source Marker Out signal polarity SWE SPAC SWE TIME TRIG STOP S...

Page 476: ...tion deviation Phase modulation source Phase modulation state External waveform advance trigger slope External stop trigger slope Local bus mode Local bus automatic mode MARK STAT OUTP STAT FILT FREQ...

Page 477: ...meter 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 wh...

Page 478: ...21 Settings conflict See Settings Conflict Error Messages at the end of this table 222 Data out of range Parameter value is out of range for any AFG configuration e g SOUR FREQ1 FIX 1E9 224 Illegal pa...

Page 479: ...ll 1002 Calibration security enabled Calibration security must be disabled to calibrate the E1445A to read or write calibration data to change the security code or to change the protected user data 10...

Page 480: ...NF VME REC ADDR DATA is executed and A24 address space is not being written to 1100 Illegal segment name Attempting to download to a segment that doesn t exist or selecting a segment name that s the s...

Page 481: ...ence s segment list does not equal the length of its marker list and its marker list does not equal 1 1115 Sequence list has zero length Query of a marker list dwell count list or sequence segment lis...

Page 482: ...MIN set SOUR FREQ1 FSK frequency maximum SOUR FREQ1 FSK MAX set TRIG STAR SOUR and SOUR ROSC SOUR both EXT SOUR ROSC SOUR INT1 set TRIG STAR SOUR and TRIG STOP SOUR both BUS TRIG STOP SOUR HOLD set TR...

Page 483: ...SWE TIME minimum SWE TIME MIN set SWE TIME maximum SWE TIME MAX set TRIG SWE TIM minimum TRIG SWE TIM MIN set TRIG SWE TIM maximum TRIG SWE TIM MAX set SOUR FUNC SHAP not SIN and SOUR PM STAT ON SOUR...

Page 484: ...Settings Conflict Error Messages when Agilent E1445A is used with the Agilent E1446A Amplifier OUTP2 ATT 20 and OUTP2 IMP 0 OUTP2 IMP 50 set SOUR2 VOLT OFFS minimum SOUR2 VOLT OFFS MIN set SOUR2 VOLT...

Page 485: ...ess selected AFG registers this appendix explains how to do the following functions with register reads and writes Accessing the Registers Page 484 Determining the A24 Base Address Page 484 Changing t...

Page 486: ...on the system resource manager reads the AFG s Device Type Register in A16 address space to determine the amount of A24 memory the AFG requires Once known the resource manager allocates a block of A24...

Page 487: ...C 1 the AFG s configuration registers are mapped into the upper 25 of A16 address space The Offset Register is one of the AFG s configuration registers Figure C 1 E1445A AFG Registers within A16 Addr...

Page 488: ...C 1 the base address of the operational registers in A24 can be determined as in the following program Reading the Offset Register 10 ASSIGN Afg to 1680 Path from V 360 to AFG via VXI backplane 20 CO...

Page 489: ...6 Frequency Load Strobe Register DDS base_addr 8D16 Sample Hold and ROSC N Control Register DIV N base_addr 6316 ROSC N Divider Registers DIV N base_addr 7D16 through base_addr 7F16 The Phase Incremen...

Page 490: ...generate ROSC N frequencies Address 15 8 7 6 5 4 3 2 1 0 base 6316 unused SHOLD SMUX2 SMUX1 SMUX0 SHOLD Setting bit 7 to a 1 causes sample signals to be ignored This bit is set while setting the divid...

Page 491: ...ich set the 60 output function 70 CALL Rst 80 CALL A24_offset 90 CALL Output_function 100 110 DISP Press Continue to change frequency register writes 120 PAUSE 130 DISP 140 Call the subprogram which c...

Page 492: ...24 space with READIO and WRITEIO 540 550 Calculate frequency value written to registers 560 IF Range 0 THEN 570 Phase DVAL Freq Npts Reference_osc 2 4 294967296E 9 16 580 ELSE 590 Phase DVAL Freq Npts...

Page 493: ...requency when the Freq_change subprogram is called line 200 If frequency doubling is in effect SOUR FREQ1 RANG command in subprogram Output_function the doubled frequency can be changed to another dou...

Page 494: ...set 60 the output function 70 CALL Rst 80 CALL A24_offset 90 CALL Output_function 100 110 DISP Press Continue to change frequency register writes 120 PAUSE 130 DISP 140 Call the subprogram which chang...

Page 495: ...40 INTEGER Divider 550 CONTROL 16 25 3 access A24 space with READIO and WRITEIO 560 570 Read register 63 Write to register 63 setting the SHOLD bit bit 7 580 so sample signals are ignored 590 Sample_h...

Page 496: ...ut_function are executed before the registers are written to The subprogram Output_function sets the initial reference oscillator frequency to 40 MHz If a different reference oscillator frequency is u...

Page 497: ...16 through base B116 unused Phase modulation value Register B3 This register contains the eight most significant bits of the 12 bit phase modulation value bits 11 4 Register B1 Bits 7 4 of this regist...

Page 498: ...hase_change 180 180 END 190 200 SUB A24_offset 210 A24_offset Subprogram which determines the base address for 220 the AFG registers in A24 address space 230 COM Afg Base_addr 240 CONTROL 16 25 2 acce...

Page 499: ...phase Once the pulse is 650 received it takes 14 reference oscillator clock cycles before 660 the new phase appears at the output 670 WRITEIO 16 Base_addr IVAL 8B 16 0 680 SUBEND 690 700 SUB Rst 710 R...

Page 500: ...sequence Address 15 14 13 12 11 10 9 8 7 0 base 816 Sequencer data source High speed clock source High speed data source other control bits Sequencer Data Source The Sequencer data source field speci...

Page 501: ...he Sequence Base Register contains the base address of the selected sequence in sequence memory Address 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 base 2016 Sequence Base Address Sequence Base Address The...

Page 502: ...4 096E6 Sample rate 120 OUTPUT Afg SOUR FUNC SHAP USER function 130 OUTPUT Afg SOUR VOLT LEV IMM AMPL 2 1V amplitude 140 OUTPUT Afg SOUR ARB DAC SOUR INT dac data source 150 OUTPUT Afg SOUR ARB DAC F...

Page 503: ...e Waveform Select register Write the base address of 640 of the sequence in sequence memory to the Sequence Base register 650 660 Wav_sel BINAND READIO 16 Base_addr IVAL A 16 IVAL 00FF 16 670 WRITEIO...

Page 504: ...h arbitrary block 1140 COM Afg Afg1 Base_addr Seq1_addr Seq2_addr Seq3_addr 1150 INTEGER Waveform 1 4096 1160 INTEGER Sequence 1 2 1170 REAL Addr_seg1 1180 FOR I 2047 TO 2048 1190 IF I 0 THEN I 1 E 38...

Page 505: ...1640 shift bits to dac code positions 1650 Waveform T SHIFT Waveform T 3 1660 NEXT T 1670 1680 OUTPUT Afg SOUR LIST1 SEGM SEL SIN_D segment name 1690 OUTPUT Afg SOUR LIST1 SEGM DEF 4096 segment size 1...

Page 506: ...h J 2130 Waveform I Waveform I 9 J Width 00125 2140 NEXT J 2150 2160 shift bits to dac code positions 2170 FOR I 1 TO 4096 2180 Waveform I SHIFT Waveform I 3 2190 NEXT I 2200 2210 OUTPUT Afg SOUR LIST...

Page 507: ...SCPI commands are included in this program to load segment and sequence memory and initialize the AFG This program executes as intended when the SCPI commands are executed prior to writing to the regi...

Page 508: ...a using the VXIbus instead of transferring it directly to the AFG using GPIB 1 RE STORE VXISRCE 2 This program uses the V 360 embedded controller to send waveform 3 data directly to the AFG dac over t...

Page 509: ...iangle wave and 380 writes the corresponding codes directly to the DAC via 390 the VXIbus and High Speed Data register 400 COM Afg Addr 410 CONTROL 16 25 3 access A24 space with WRITEIO 420 430 INTEGE...

Page 510: ...This program was written using the system configuration described on page 484 Data is written to the DAC at a rate of 115 s per amplitude point which is limited by the execution speed of BASIC Visual...

Page 511: ...segment sequence 347 waveform segment 336 secondary GPIB 22 AFG arming count 199 292 sources 199 the 165 171 291 297 block diagram description 445 452 bus request level setting 24 calibration 298 305...

Page 512: ...TAR LAY2 SLOP 293 ARM STAR LAY2 SOUR 294 ARM SWEep COUN 295 ARM SWEep IMM 295 ARM SWEep LINK 296 ARM SWEep SOUR 297 ARM TRIG 163 202 configuration 164 flowchart 164 states 164 Arming and triggering 16...

Page 513: ...tion register 383 operation event summary bit 383 questionable signal condition register 386 questionable signal event summary bit 386 Block Diagram description 445 452 Boolean Command Parameters 286...

Page 514: ...1 SOURce FUNCtion subsystem 332 333 SOURce LIST 1 subsystem 334 357 SOURce LIST2 subsystem 358 360 SOURce MARKer subsystem 361 364 SOURce PM subsystem 365 367 SOURce RAMP subsystem 368 369 SOURce ROSC...

Page 515: ...nued SRE 425 SRE 425 STB 426 TRG 426 TST 46 426 WAI 427 Condition Register operation status group 435 query bits 383 386 questionable signal status group 431 reading 431 435 Configuration ARM TRIG 164...

Page 516: ...ing 56 57 DCVOLTS Example Program 56 57 DDS Frequency Generator control 489 491 description 449 generating waveforms with 99 102 ranges 79 Declaration of Conformity 15 Definite Length Arbitrary Blocks...

Page 517: ...441 ESE 417 ESE 417 ESR 418 Event Register operation status group 436 query contents 384 387 questionable signal status group 432 summary bit 383 386 Example Programs AFGGEN1 102 AFGGEN2 104 ARBWAVE C...

Page 518: ...t 259 common commands 284 DAC codes 313 314 definite length block data 231 indefinite length block data 235 Format continued SCPI commands 284 285 signed number 225 226 combined list 240 unsigned numb...

Page 519: ...am 152 153 G GATE Example Program 184 185 Gating and signal phase 200 disabling 394 enabling 200 394 polarity 200 393 sources 200 393 trigger signals 183 185 using 196 Generating arbitrary wave ramp V...

Page 520: ...ediate arming and triggering 201 of waveform 293 frequency sweep or list 295 Impedance Output setting 69 71 309 Implied SCPI Commands 27 285 Increasing Speed 223 280 Indefinite Length Arbitrary Blocks...

Page 521: ...13 MARKTRG Example Program 215 217 Maximum arbitrary waveform frequency 155 sample rates 454 frequencies in frequency list 155 parameters in coupling groups 288 using 81 ramp wave frequency 155 sine w...

Page 522: ...r 383 436 query contents 384 group 435 437 negative transition filter 384 positive transition filter 385 register 381 435 437 summary bit 383 Operatiion Status continued transition filter 435 using 43...

Page 523: ...9 Polarity gating 200 marker signal 364 ramp waves 369 sample gate 393 square waves 369 triangle waves 369 Positive Transition Filter 385 388 Power On Configuration 48 472 474 Preparation For Use 19 P...

Page 524: ...s generating 111 Ref Sample In BNC trigger slope 395 398 Reference Oscillator description 448 frequency 370 sources 78 115 154 197 371 Register Based Programming 483 508 accessing registers 484 changi...

Page 525: ...ing 26 version number 390 SCPI Commands 281 abbreviated 285 ABORt subsystem 290 arbitrary block parameters 286 ARM subsystem 291 297 boolean parameters 286 CALibration subsystem 298 305 command separa...

Page 526: ...ifferent segments 93 98 waveform deleting from memory 340 marker pulses 337 338 342 343 naming 86 output voltage 337 338 345 347 query memory 336 341 names 116 336 reserving memory for 339 selecting 2...

Page 527: ...er of waveform points 157 Sine Waves See also Sinusoid SINEWAVE Example Program 59 60 Single marker pulses 212 213 waveform segments 212 213 Single Point Marker 343 355 Sinusoid function requirements...

Page 528: ...em 368 369 POINts 368 POLarity 369 SOURce ROSCillator Subsystem 370 371 FREQuency EXTernal 370 SOURce 371 SOURce SWEep Subsystem 372 376 COUNt 372 DIRection 373 POINts 374 375 TIME 376 SOURce PM Subsy...

Page 529: ...2 STAT OPERation CONDition 383 STAT OPERation ENABle 383 STAT OPERation EVENt 384 STAT OPERation NTRansition 384 STAT OPERation PTRansition 385 STAT PRESet 385 STAT QUEStionable CONDition 386 STAT QUE...

Page 530: ...mming 29 Visual BASIC programming 32 Visual C C programming 40 SYSTem Subsystem 389 390 SYSTem ERRor 389 SYSTem VERSion 390 T Time sweep advance trigger 402 sweeps 376 versus frequency lists 138 140 1...

Page 531: ...E1446A with AFG 23 arbitrary blocks 130 132 definite length 231 234 indefinite length 235 238 arbitrary waveforms 152 153 combined waveform segments 250 258 sequences 250 258 DAC codes to send data 11...

Page 532: ...Arm State 164 Wait for Trigger State 164 WARNINGS 14 Warranty 13 WAVE_SEL Example Program 500 505 Waveform Select Register 499 Waveforms aborting 196 arming immediately 293 FSK using arbitrary 152 153...

Page 533: ...e rate 87 selecting 251 344 single marker pulses 212 213 storing in memory 86 87 using combined 250 258 combined sequence 250 258 different 93 98 sequence determining marker points 222 memory 113 free...

Page 534: ...Notes 532 Agilent E1445A User s Manual Index...

Reviews: