HP E1340A User Manual
HP E1340A User Manual

HP E1340A User Manual

Arbitrary function generator
Hide thumbs Also See for E1340A:
Table of Contents

Advertisement

Quick Links

1. Getting Started with the HP E1340A . . . . . . . . . . . . . . . . . . . . . . . . 15
Contents
HP E1340A Arbitrary Function Generator User's Manual
Warranty . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
WARNINGS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
Safety Symbols . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
Declaration of Conformity . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
Reader Comment Sheet . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
Chapter Contents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
Preparation for Use . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
Installing the AFG . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
Downloading the AFG Device Driver . . . . . . . . . . . . . . . . . . . . . . . . 15
AFG Logical Address . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
Addressing the AFG . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
Instrument and Programming Languages . . . . . . . . . . . . . . . . . . . . . . . . . 19
SCPI Programming . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
SCPI Command Structure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
Command Coupling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
How to Execute Coupled Commands . . . . . . . . . . . . . . . . . . . . . . . . 21
HP IBASIC Language Programs . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
C Language Programs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
QuickBASIC Language Programs . . . . . . . . . . . . . . . . . . . . . . . . . . 31
Introductory Programs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
AFG Self-Test . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
Resetting and Clearing the AFG . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
Querying the Power-On/Reset Configuration . . . . . . . . . . . . . . . . . . . . 37
Checking for Errors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
Generating a Sine Wave . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
HP E1340A Example Programs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
Chapter Contents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
Standard Waveforms Flowchart . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
Generating DC Voltages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
C and QuickBASIC Program Versions . . . . . . . . . . . . . . . . . . . . . . . . 44
Generating Sine, Triangle, and Square Waves . . . . . . . . . . . . . . . . . . . . . . 45
C and QuickBASIC Program Versions . . . . . . . . . . . . . . . . . . . . . . . . 46
Generating Ramp Waves . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
C and QuickBASIC Program Versions . . . . . . . . . . . . . . . . . . . . . . . . 49
Selecting the Amplitude Levels and Output Units . . . . . . . . . . . . . . . . . . . . 50
C and QuickBASIC Program Versions . . . . . . . . . . . . . . . . . . . . . . . . 51
Program Comments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52
Reference Oscillator Sources . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52
Output Load Comments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52
HP E1340A Arbitrary Function Generator User's Manual
Contents
1

Advertisement

Table of Contents
loading

Summary of Contents for HP E1340A

  • Page 1: Table Of Contents

    Generating a Sine Wave ....... 40 HP E1340A Example Programs ......40 2.
  • Page 2 Using MINimum and MAXimum Parameters ....53 3. Generating Arbitrary Waveforms with the HP E1340A ....55 Chapter Contents .
  • Page 3 Enabling the Gate ........108 6. HP E1340A High Speed Operation ......109 Chapter Contents .
  • Page 4 7. HP E1340A Command Reference ......131 Chapter Contents ........131 Command Types .
  • Page 5 IEEE-488.2 Common Commands ......188 Contents HP E1340A Arbitrary Function Generator User’s Manual...
  • Page 6 SCPI Conformance Information ......200 8. HP E1340A AFG Status ....... 203 Introduction .
  • Page 7 B. HP E1340A Useful Tables ......219 Appendix Contents ........219 C.
  • Page 8 Querying AFG Parameters ......280 Notes HP E1340A Arbitrary Function Generator User’s Manual Contents...
  • Page 9: Warranty

    For warranty service or repair, this product must be returned to a service facility designated by Hewlett-Packard (HP). Buyer shall pre- pay shipping charges to HP and HP shall pay shipping charges to return the product to Buyer. However, Buyer shall pay all shipping charges, duties, and taxes for products returned to HP from another country.
  • Page 10: Warnings

    DO NOT substitute parts or modify equipment: Because of the danger of introducing additional hazards, do not install substitute parts or perform any unauthorized modification to the product. Return the product to a Hewlett-Packard Sales and Service Office for service and repair to ensure that safety features are maintained. HP E1340A Arbitrary Function Generator Module User’s Manual...
  • Page 11: Declaration Of Conformity

    Supplementary Information: The product herewith complies with the requirements of the Low Voltage Directive 73/23/EEC and the EMC Directive 89/336/EEC and carries the CE-marking accordingly. Tested in a typical configuration in an HP B-Size VXI mainframe. April, 1995 April, 1995...
  • Page 12 Notes HP E1340A Arbitrary Function Generator Module User’s Manual...
  • Page 13: Reader Comment Sheet

    Please fold and tape for mailing Reader Comment Sheet HP E1340A Arbitrary Function Generator Module User’s Manual Edition 3 You can help us improve our manuals by sharing your comments and suggestions. In appreciation of your time, we will enter you in a quarterly drawing for a Hewlett-Packard Palmtop Personal Computer (U.S. government employees cannot participate in the drawing).
  • Page 14 HP E1340A Arbitrary Function Generator Module User’s Manual...
  • Page 15: Getting Started With The Hp E1340A

    Generating a Sine Wave......Page 40 HP E1340A Example Programs ..... . Page 40 Preparation for Use This section shows how to prepare the AFG for use.
  • Page 16 Mainframe Manual, HP E1405 Command Module Manual, and E1406 Command Module Manual also contain the installation procedure. Mainframe/Command To download a driver, the ROM version number of the HP E1300/E1301 Module Requirements Mainframe or HP E1405 Command Module must be A.06.00 or above. To determine the version number, send the IEEE 488.2 common command...
  • Page 17: Afg Logical Address

    The AFG is shipped from the factory with a logical address setting of 80, as shown in Figure 1-1. Address The E1340A AFG logical address is used: to place the AFG in the servant area of a commander (e.g. HP E1405/E1406 Command Module).
  • Page 18: Addressing The Afg

    B-size and C-size systems under IBASIC control. Primary HP-IB Address (09): This is the address of the HP-IB port on the Mainframe or Command Module. Valid addresses are 0 to 30. The mainframe/command module has a factory set address of 9.
  • Page 19: Instrument And Programming Languages

    Instrument and Programming Languages The purpose of this manual is to teach you how to use the E1340A AFG. To do this, the manual uses block diagrams, flowcharts, and example programs. The programs shown in the manual are SCPI programs written in HP IBASIC.
  • Page 20: Command Coupling

    Executing uncoupled commands in the coupling group breaks the coupling and can cause a "Settings Conflict" error. The coupling group and associated commands can be found in Appendix B, Table B-2. Chapter 1 Getting Started with the HP E1340A...
  • Page 21: How To Execute Coupled Commands

    Only a semicolon (;) is required to link commands within the same subsystem (see “ SCPI Command Structure” earlier in this chapter). Note See “HP IBASIC Language Programs” later in this chapter for information on suppressing the end-of-line terminator. Getting Started with the HP E1340A...
  • Page 22: Hp Ibasic Language Programs

    HP E1340A Logical Address: 80 Instrument Language: SCPI Program Structure The structure of an example program in HP IBASIC is shown below: !RE-SAVE“ARB_GEN” !This program generates a 4096 point, 0 to 5V ramp waveform. !The data is transferred to the AFG as voltages.
  • Page 23 B=SPOLL(@Afg) !End of statement if error occurs among coupled commands OUTPUT @Afg;“” OUTPUT @Afg;“ABORT” !abort output waveform REPEAT OUTPUT @Afg;“SYST:ERR?” !read AFG error queue ENTER @Afg;Code,Message$ PRINT Code,Message$ UNTIL Code=0 STOP SUBEND Getting Started with the HP E1340A Chapter 1...
  • Page 24 150 through 170 suppress the EOL terminator; therefore lines 150 - 180 are sent as a single statement. Getting Programs The HP IBASIC programs are stored on the disk as ASCII files. The program name is shown in the program title and in line 1 of the program (e.g., 1 !RE-SAVE"ARB_GEN"...
  • Page 25: C Language Programs

    C Language All of the C Language example programs in this manual are written for the HP 82335 HP-IB Interface Card using the HP-IB Command Library for C. Programs Unless otherwise noted, the library functions used in the programs are compatible with the ANSI C standard.
  • Page 26 (see the appropriate C Language manual for the parameter type). C Program Example Following is an example program written in C using the HP 82335 HP-IB Interface Card. The program: sends commands to the AFG to generate an arbitrary waveform...
  • Page 27 #include <string.h> #include <malloc.h> /* Use “alloc.h” for Turbo C(c) or C++(c) */ #include <cfunc.h> /* This file is from the HP-IB Command Library Disk */ #define ISC 7L /* Assigns the HP-IB select code */ #define ADDR 70910L /*...
  • Page 28 /* Call routine to check for AFG errors */ check_error(“gen_seg (seg_commands)”); /* Setup the AFG for output */ cmd_exe(out_commands, sizeof(out_commands) / sizeof(char*)); /* Call routine to check for AFG errors */ check_error(“gen_seg (out_commands)”); Continued on next page Chapter 1 Getting Started with the HP E1340A...
  • Page 29 First disable EOI and EOL to send continuous data to the AFG; send last command IOEOI (ISC, 0);IOEOL (ISC, “ ”, 0); IOOUTPUTS (ADDR, commands, strlen(commands)); Re-enable EOL and EOI for normal HP-IB operation; then send the data IOEOI (ISC, 1);IOEOL (ISC, state, 2); IOOUTPUTA (ADDR, Wave_seg, num_size); /*********************************************************************************/...
  • Page 30 /* Determine if error is present */ /* If errors present, print and exit */ while (atoi(into) != 0) printf(“Error %s in function %s\n\n”, into, func_tion); IOOUTPUTS(ADDR, “SYST:ERR?”, 9); IOENTERS(ADDR, into, &length); exit(1); Chapter 1 Getting Started with the HP E1340A...
  • Page 31: Quickbasic Language Programs

    QuickBASIC All of the QuickBASIC Language example programs in this manual are written for the HP 82335 HP-IB Interface Card using the HP-IB Command Language Programs Library for BASIC. The following identifies the system on which the programs are written, shows how to compile the programs, and gives a typical example program.
  • Page 32 This generates an object listing that has the same name as the program name with an OBJ extension. This object file must be linked to the HP-IB library. Second, link the HP-IB library: path \program name link < > After prompted for a run file, press the Enter key. The executable file with an EXE extension is then generated.
  • Page 33 SetCommands$(1) = “SOUR:ROSC:SOUR INT;” ’ Select the Ref. Oscillator SetCommands$(1) = SetCommands$(1) + “:SOUR:FREQ:FIX 1e3;” ’ Set waveform frequency SetCommands$(1) = SetCommands$(1) + “:SOUR:FUNC:SHAP USER;” ’ Select user function Continued on next page Getting Started with the HP E1340A Chapter 1...
  • Page 34 ’Setup the AFG for output CALL CmdExe(OutCommands$(), 2) ’ Call function to check for AFG errors CALL CheckError(“GenSeg (OutCommands)”) END SUB SUB RstClr CALL IOOUTPUTS(ADDR&, “*RST;*OPC?”, 10) CALL IOENTER(ADDR&, Into!) Continued on next page Chapter 1 Getting Started with the HP E1340A...
  • Page 35 ’ First disable EOI and EOL to send continuous data to the AFG; send last command CALL IOEOI(ISC&, 0) CALL IOEOL(ISC&, “ ”, 0) CALL IOOUTPUTS(ADDR&, Commands$, LEN(Commands$)) ’ Re-enable EOL and EOI for normal HP-IB operation; then send the data CALL IOEOI(ISC&, 1) CALL IOEOL(ISC&, Endline$, LEN(Endline$)) CALL IOOUTPUTA(ADDR&, SEG WaveSeg!(1), NumSize%)
  • Page 36: Introductory Programs

    Test passed Test failed. An error message describes the failure. The self-test checks communication between the E1340A and the E1300/01 mainframe or Command Module. Upon completion of the test, one of the self-test codes listed in Table 1-1 is returned.
  • Page 37: Resetting And Clearing The Afg

    After resetting the AFG or cycling power, the AFG parameters are set to their power-on values. These values are listed in Appendix B, Table B-5. Power-On/Reset Configuration The command which queries each AFG parameter setting is: *LRN? Getting Started with the HP E1340A Chapter 1...
  • Page 38: Checking For Errors

    Checking for Errors The following HP IBASIC program shows the lines and subprogram added to the HP IBASIC programs to check for errors. Line 140 clears the AFG standard event status register. Lines 150 and 160 unmask the appropriate bits in the AFGs status byte register and standard event status register.
  • Page 39 ENABLE INTR 8;2 !Clear all bits in the standard event status register, unmask the !standard event status group summary bit in the E1340A status byte !register (decimal weight 32), unmask the query error, device !dependent error, execution error, and command error bits !(decimal sum 60) in the E1340A standard event status register.
  • Page 40: Generating A Sine Wave

    The C and QuickBASIC versions of RSTSINE are on the C language Programs example programs disk (HP P/N E1340-10036). HP E1340A Example Programs For easy reference, names and descriptions of the example programs in this manual are summarized in Appendix B, Table B-1. Chapter 1 Getting Started with the HP E1340A...
  • Page 41: Generating Standard Waveforms With The Hp E1340A

    TRIangle , and RAMPS ) using the HP E1340A 12-Bit Arbitrary Function Generator (hereafter called the “ AFG” ). The following sections show how to generate standard waveforms, how to setup the AFG for different output loads, how to select the output amplitude units (i.e., V, Vpeak, etc.), and how to set the waveform amplitude and...
  • Page 42 Chapter 2 Generating Standard Waveforms with the HP E1340A...
  • Page 43: Generating Dc Voltages

    “ Selecting the Amplitude Levels and Output Units” on page 50 for more information. HP IBASIC Program Example (DCVOLTS) !RE-SAVE“DCVOLTS” !This program outputs 5V dc. !Assign I/O path between IBASIC and the E1340A. ASSIGN @Afg TO 80910 COM @Afg !Set up error checking ON INTR 8 CALL Errmsg ENABLE INTR 8;2...
  • Page 44: C And Quickbasic Program Versions

    The C example program, DCVOLTS.C, is in directory “CPROG” and the QuickBASIC example program, DCVOLTS.BAS, is in directory Program Versions “ QBPROG” on the C and QuickBASIC example disk (part number E1340-10036). Chapter 2 Generating Standard Waveforms with the HP E1340A...
  • Page 45: Generating Sine, Triangle, And Square Waves

    “ Selecting the Amplitude Levels and Output Units” on page 50 for more information. 5. Initiate the Waveform - INITiate[:IMMediate] This command generates an immediate output with the arm source set to . Refer to Chapter 5 for triggering information. IMMediate Generating Standard Waveforms with the HP E1340A Chapter 2...
  • Page 46: C And Quickbasic Program Versions

    HP IBASIC Program Example (SINEWAVE) !RE-SAVE“SINEWAVE” !This program generates a 5V, 1 kHz sine wave. !Assign I/O path between IBASIC and the E1340A. ASSIGN @Afg TO 80910 COM @Afg !Set up error checking ON INTR 8 CALL Errmsg ENABLE INTR 8;2 OUTPUT @Afg;“*CLS”...
  • Page 47: Generating Ramp Waves

    5. Set the Amplitude - amplitude [SOURce:]VOLTage[:LEVel][:IMMediate][:AMPLitude] < > This command specifies the amplitude. Refer to the section called “ Selecting the Amplitude Levels and Output Units” on page 50 for more information. Generating Standard Waveforms with the HP E1340A Chapter 2...
  • Page 48 . Refer to Chapter 5 for triggering information. HP IBASIC Program Example (RAMPWAVE) !RE-SAVE"RAMPWAVE" !This program generates a 4V, 10 kHz negative-going ramp wave. !Assign I/O path between IBASIC and the E1340A. ASSIGN @Afg TO 80910 COM @Afg !Set up error checking ON INTR 8 CALL Errmsg ENABLE INTR 8;2...
  • Page 49: C And Quickbasic Program Versions

    The C example program, RAMPWAVE.C, is in directory “ CPROG” and the QuickBASIC example program, RAMPWAVE.BAS, is in directory Program Versions “ QBPROG” on the C and QuickBASIC example disk (part number E1340-10036). Generating Standard Waveforms with the HP E1340A Chapter 2...
  • Page 50: Selecting The Amplitude Levels And Output Units

    7 V limit. 4. Initiate the Waveform - INITiate[:IMMediate] This command generates an immediate output with the arm source set to IMMediate . Refer to Chapter 5 for triggering information. Chapter 2 Generating Standard Waveforms with the HP E1340A...
  • Page 51: C And Quickbasic Program Versions

    HP IBASIC Program Example (OUTPUNIT) !RE-SAVE“OUTPUNIT” !This program sets the AFG’s output units to volts peak-to-peak. !Assign I/O path between IBASIC and the E1340A. ASSIGN @Afg TO 80910 COM @Afg !Set up error checking ON INTR 8 CALL Errmsg ENABLE INTR 8;2 OUTPUT @Afg;“*CLS”...
  • Page 52: Program Comments

    AFG output impedance value. To output to an open circuit, execute OUTPut:LOAD INFinity . The HP E1340A then outputs the correct amplitude and 9.9E+37 offset for an open circuit. The amplitude and offset range are doubled while resolution worsens by a factor of 2.
  • Page 53: Using Minimum And Maximum Parameters

    AFG to a state that does not conflict with the MINimum parameters. MAXimum For best results, use values in the commands and do not use the MINimum MAXimum parameters. Generating Standard Waveforms with the HP E1340A Chapter 2...
  • Page 54 Chapter 2 Generating Standard Waveforms with the HP E1340A...
  • Page 55: Generating Arbitrary Waveforms With The Hp E1340A

    Chapter Contents This chapter shows how to generate arbitrary waveforms using the HP E1340A 12-Bit Arbitrary Function Generator (called the “ AFG” ). The following sections show how to generate arbitrary waveforms. Also included are example programs that generate various arbitrary waveforms.
  • Page 56: How The Afg Generates Arbitrary Waveforms

    If sent as voltage values, the AFG converts them to DAC codes before storing them in memory. To output a waveform, the AFG sets the DAC to the voltage value of the selected waveform segment. The waveform frequency determines the waveform repetition rate. Chapter 3 Generating Arbitrary Waveforms with the HP E1340A...
  • Page 57 Figure 3-1. Generating Arbitrary Waveforms Generating Arbitrary Waveforms with the HP E1340A Chapter 3...
  • Page 58 Chapter 3 Generating Arbitrary Waveforms with the HP E1340A...
  • Page 59: Generating A Simple Arbitrary Waveform

    This command specifies the maximum output amplitude. The amplitude must be equal or greater than the maximum voltage value of the waveform segment. Refer to Appendix B for the amplitude limits. Generating Arbitrary Waveforms with the HP E1340A Chapter 3...
  • Page 60 This command generates an immediate output with the arm source set to . Refer to Chapter 5 for triggering information. IMMediate 10. Query the Waveform Segment (Optional) - [SOURce:]LIST[:SEGment]:SELect? This command returns the currently selected waveform segment. Chapter 3 Generating Arbitrary Waveforms with the HP E1340A...
  • Page 61 HP IBASIC Program Example (ARB_GEN) !RE-SAVE“ARB_GEN” !This program generates a 4096 point, 0 to 5V ramp waveform. !The data is transferred to the AFG as voltages. !Assign I/O path between IBASIC and the E1340A. ASSIGN @Afg TO 80910 COM @Afg,Waveform(1:4096) !Set up error checking ON INTR 8 CALL Errmsg ENABLE INTR 8;2...
  • Page 62: C And Quickbasic Program Versions

    The variable state contains the decimal codes for CR and LF. Although EOL and EOI are enabled, no CR and LF is sent until all voltage data transfer is completed (next step). Chapter 3 Generating Arbitrary Waveforms with the HP E1340A...
  • Page 63 /* First disable EOI and EOL; then send the last command */ IOEOI (ISC, 0);IOEOL (ISC, “ ”, 0); IOOUTPUTS (ADDR, commands, strlen(commands)); /* Re-enable EOL and EOI for normal HP-IB operation; then send the last data */ IOEOI (ISC, 1);IOEOL (ISC, state, 2);...
  • Page 64 ’ First disable EOI and EOL; then send the last command CALL IOEOI(ISC&, 0) CALL IOEOL(ISC&, “ ”, 0) CALL IOOUTPUTS(ADDR&, Commands$, LEN(Commands$)) ’ Re-enable EOL and EOI for normal HP-IB operation; then send the data CALL IOEOI(ISC&, 1) CALL IOEOL(ISC&, Endline$, LEN(Endline$)) CALL IOOUTPUTA(ADDR&, SEG WaveSeg!(1), NumSize%)
  • Page 65: Executing Several Waveform Segments

    Refer to Appendix B for the amplitude limits 5. Select the First Waveform Segment - [SOURce:]LIST[:SEGMent]:SELect A to select the first waveform segment. Generating Arbitrary Waveforms with the HP E1340A Chapter 3...
  • Page 66 This command selects the waveform segments to be output (i.e., 10. Initiate the Waveform - INITiate[:IMMediate] This command generates an immediate output with the arm source set to IMMediate . Refer to Chapter 5 for triggering information. Chapter 3 Generating Arbitrary Waveforms with the HP E1340A...
  • Page 67 !This program generates an arbitrary waveform comprised of two !waveform segments. One segment is a sine wave and the other !segment is a triangle wave. !Assign I/O path between IBASIC and the E1340A. ASSIGN @Afg TO 80910 COM @Afg,Waveform1(1:4096),Waveform2(1:4096) !Set up error checking ON INTR 8 CALL Errmsg ENABLE INTR 8;2...
  • Page 68: C And Quickbasic Program Versions

    The C example program, MULSEG.C, is in directory “CPROG” and the QuickBASIC example program, MULSEG.BAS, is in directory Program Versions “ QBPROG” on the C and QuickBASIC example disk (part number E1340-10036). Chapter 3 Generating Arbitrary Waveforms with the HP E1340A...
  • Page 69: Arbitrary Waveform Hopping

    This command stores the points of the “ A” waveform segment into the AFG’s segment memory. These points are sent to the AFG as volts which are the output voltage points that constitutes the waveform segment. Generating Arbitrary Waveforms with the HP E1340A Chapter 3...
  • Page 70 !on the level of a 1 kHz, 0 to 5V square wave applied to the AFG’s !“Aux In” connector. A low level selects segment A (sine wave), a !high level selects segment B (triangle wave). !Assign I/O path between IBASIC and the E1340A. ASSIGN @Afg TO 80910 COM @Afg,Waveform1(1:4096),Waveform2(1:4096)
  • Page 71 !load waveform points FOR I=1 TO 2047 Waveform2(I)=I*.0024414 NEXT I FOR I=2048 TO 4096 Waveform2(I)=(4096-I)*.0024414 NEXT I OUTPUT @Afg;“SOUR:LIST:SEGM:SEL B”!Select segment name OUTPUT @Afg;“ SOUR:LIST:SEGM:VOLT”;Waveform2(*) !load waveform points SUBEND SUB Rst SUB Errmsg Generating Arbitrary Waveforms with the HP E1340A Chapter 3...
  • Page 72: C And Quickbasic Program Versions

    The C example program, ARB_HOP.C, is in directory “ CPROG” and the QuickBASIC example program, ARB_HOP.BAS, is in directory Program Versions “ QBPROG” on the C and QuickBASIC example disk (part number E1340-10036). Chapter 3 Generating Arbitrary Waveforms with the HP E1340A...
  • Page 73: Generating Built-In Arbitrary Waveforms

    4. Select the User Name - [SOURce:]FUNCtion:USER < name > This command selects the waveform segment to be output. Make the name in this command the same name as the waveform segment to be output. Generating Arbitrary Waveforms with the HP E1340A Chapter 3...
  • Page 74 HP IBASIC Program Example (ROM_DOWN) !RE-SAVE“ROM_DOWN” !This program downloads a 4096 point waveform to waveform segment !memory from block 16 (EEPR16) of the AFG’s waveform EEPROM. !Assign I/O path between IBASIC and the E1340A. ASSIGN @Afg TO 80910 COM @Afg !Set up error checking ON INTR 8 CALL Errmsg ENABLE INTR 8;2...
  • Page 75: C And Quickbasic Program Versions

    The C example program, ROM_DOWN.C, is in directory “ CPROG” and the QuickBASIC example program, ROM_DOWN.BAS, is in directory Program Versions “ QBPROG” on the C and QuickBASIC example disk (part number E1340-10036). Generating Arbitrary Waveforms with the HP E1340A Chapter 3...
  • Page 76: Sample Programs

    Damped Sine Wave HP IBASIC Program Example (SIN_D) !RE-SAVE“SIN_D” !This program generates a damped sine wave. !Assign I/O path between IBASIC and the E1340A. ASSIGN @Afg TO 80910 COM @Afg,Waveform(1:4096) !Set up error checking ON INTR 8 CALL Errmsg ENABLE INTR 8;2...
  • Page 77 The C example program, SIN_D.C, is in directory “ CPROG” and the Program Versions QuickBASIC example program, SIN_D.BAS, is in directory “ QBPROG” on the C and QuickBASIC example disk (part number E1340-10036). Generating Arbitrary Waveforms with the HP E1340A Chapter 3...
  • Page 78: Generating An Exponential Charge/Discharge Waveform

    FOR T=1 TO 4096 IF T>=0 AND T<2047 THEN Waveform(T)=1*(1-EXP(-T/Rc)) END IF IF T>=2047 THEN Waveform(T)=1*(1-EXP(-2048/Rc))-1*(1-EXP(-(T-2047)/Rc)) END IF NEXT T OUTPUT @Afg;“SOUR:LIST:SEGM:SEL A”!select segment name OUTPUT @Afg;“ SOUR:LIST:SEGM:VOLT”;Waveform(*)!load waveform points SUBEND Chapter 3 Generating Arbitrary Waveforms with the HP E1340A...
  • Page 79: Generating A Sine Wave With Spikes

    !Call subprogram which defines waveform segment. CALL Sine_spike SUB Sine_spike 320 Sine_spike: !Subprogram which defines a sine wave with a spike COM @Afg,Waveform(*) FOR I=1 TO 4096 Waveform(I)=.5*SIN(2*PI*(I/4096)) NEXT I Width=50 Continued on next page Generating Arbitrary Waveforms with the HP E1340A Chapter 3...
  • Page 80: Generating A Half-Rectified Sine Wave

    QuickBASIC example program, SPIKES.BAS, is in directory “ QBPROG” on the C and QuickBASIC example disk (part number E1340-10034). Generating a This program generates a Half-Rectified Sine Wave using 4096 segments or points. Half-Rectified Sine Wave Chapter 3 Generating Arbitrary Waveforms with the HP E1340A...
  • Page 81 The C example program, SIN_R.C, is in directory “CPROG” and the Program Versions QuickBASIC example program, SIN_R.BAS, is in directory “QBPROG” on the C and QuickBASIC example disk (part number E1340-10036). Generating Arbitrary Waveforms with the HP E1340A Chapter 3...
  • Page 82: Program Comments

    First 20 terms of a Rising Ramp EEPRom12 White Noise EEPRom13 Modulated White Noise EEPRom14 A 3rd, 4th, 5th Harmonic Chord EEPRom15 8 cycles of a linear rising Sine Wave EEPRom16 Positive half-cycle Sine Wave Chapter 3 Generating Arbitrary Waveforms with the HP E1340A...
  • Page 83: Hp E1340A Sweeping And Frequency-Shift Keying

    Chapter Contents This chapter covers the sweeping and frequency-shift keying (FSK) features of the HP E1340A Arbitrary Function Generator (AFG). The chapter is organized as follows: Sweeping ........Page 85...
  • Page 84 Chapter 4 HP E1340A Sweeping and Frequency-Shift Keying...
  • Page 85: Sweeping

    [SOURce:]FREQuency:STOP < > 5. Select the Output Function - shape [SOURce:]FUNCtion[:SHAPe] < > 6. Set the Signal Amplitude - amplitude [SOURce:]VOLTage[:LEVel][:IMMediate][:AMPLitude] < > 7. Place the AFG in the Wait-for-arm State - INITiate[:IMMediate] HP E1340A Sweeping and Frequency-Shift Keying Chapter 4...
  • Page 86 HP IBASIC (SMPLSWP1) !RE-SAVE“SMPLSWP1” !This program sweeps a sine wave from 0 Hz to 1 MHz by specifying !start and stop frequencies. !Assign I/O path between IBASIC and the E1340A. ASSIGN @Afg TO 80910 COM @Afg !Set up error checking ON INTR 8 CALL Errmsg ENABLE INTR 8;2...
  • Page 87: C And Quickbasic Programs

    SPAN = +1.000000000E+006 C and QuickBASIC The C program SMPLSWP1.C is in directory “CPROG” , and the QuickBASIC program SMPLSWP1.BAS is in directory “QBPROG” on Programs the example program disk HP P/N E1340-10036. HP E1340A Sweeping and Frequency-Shift Keying Chapter 4...
  • Page 88: Sweeping Using Start And Span Frequencies

    !RE-SAVE“SMPLSWP2” !This program sweeps a sine wave from 1 kHz to 21 kHz by !specifying a start frequency and a frequency span. !Assign I/O path between IBASIC and the E1340A. ASSIGN @Afg TO 80910 COM @Afg !Set up error checking ON INTR 8 CALL Errmsg ENABLE INTR 8;2...
  • Page 89: C And Quickbasic Programs

    SPAN = +2.000000000E+004 C and QuickBASIC The C program SMPLSWP2.C is in directory “CPROG” , and the QuickBASIC program SMPLSWP2.BAS is in directory “QBPROG” on Programs the example program disk HP P/N E1340-10036. HP E1340A Sweeping and Frequency-Shift Keying Chapter 4...
  • Page 90: Sweep Points Vs. Sweep Time

    !RE-SAVE“SWP_PVST” !This program sweeps a sine wave from 5 kHz to 15 kHz !in 0.5 seconds to demonstrate how to set the sweep time. !Assign I/O path between IBASIC and the E1340A. ASSIGN @Afg TO 80910 COM @Afg !Set up error checking ON INTR 8 CALL Errmsg ENABLE INTR 8;2...
  • Page 91: C And Quickbasic Programs

    C and QuickBASIC The C program SWP_PVST.C is in directory “ CPROG” , and the QuickBASIC program SWP_PVST.BAS is in directory “ QBPROG” on the Programs example program disk HP P/N E1340-10036. HP E1340A Sweeping and Frequency-Shift Keying Chapter 4...
  • Page 92: Frequency-Shift Keying

    >,< > 4. Set the Output Function - [SOURce:]FUNCtion[:SHAPe] < shape > 5. Set the Signal Amplitude - amplitude [SOURce:]VOLTage[:LEVel][:IMMediate][:AMPLitude] < > 6. Place the AFG in the Wait-for-arm State - INITiate[:IMMediate] Chapter 4 HP E1340A Sweeping and Frequency-Shift Keying...
  • Page 93 !This program sets up frequency-shift keying using the AFG’s "Aux In" !port as the control source. A high signal on the port selects the !first frequency. A low signal on the port selects the second frequency. !Assign I/O path between IBASIC and the E1340A. ASSIGN @Afg TO 80910 COM @Afg...
  • Page 94: Program Comments

    ) is also t. To maintain a constant rate between sweeps or repetitions, the duration of f must be accounted for as follows: Sweep time = Sweep repetition time * ((points - 1)/points) specified desired Chapter 4 HP E1340A Sweeping and Frequency-Shift Keying...
  • Page 95: Hp E1340A Arming And Marker Outputs

    HP E1340A Arming and Marker Outputs Chapter Contents This chapter shows you how to arm and gate the HP E1340A AFG in order to start and advance standard and arbitrary waveforms. This chapter also shows how generate the different marker outputs at the "Aux Out" BNC connector.
  • Page 96: Initiating Waveforms

    The arming commands include: [:STARt|SEQuence[1]] [:LAYer[1]] :COUNt < number > :LAYer2 :COUNt < number > :SLOPe < edge > :SOURce < source > The arming commands for continuous waveforms are coupled commands. Chapter 5 HP E1340A Arming and Marker Outputs...
  • Page 97: Setting The Arm Source

    5. Set the Arm Source - ARM[:STARt]:LAYer2:SOURce < source > 6. Set the Edge of the External Arm Signal - ARM[:STARt]:LAYer2:SLOPe < edge > 7. Place the AFG in the Wait-for-arm State - INITiate[:IMMediate] HP E1340A Arming and Marker Outputs Chapter 5...
  • Page 98 !This program arms the AFG with an external signal applied to the !AFG’s "Aux In" port. When armed, the AFG outputs 100 cycles !of a 10 kHz, 1 Vpp square wave. !Assign I/O path between IBASIC and the E1340A. ASSIGN @Afg TO 80910 COM @Afg...
  • Page 99: Setting The Arm And Waveform Cycle Count

    6. Set the Arm Count - ARM[:STARt]:LAYer2:COUNt < number > 7. Set the Number of Waveform Cycles (Burst Count) - number ARM[:STARt][:LAYer[1]]:COUNt < > 8. Place the AFG in the Wait-for-arm State - INITiate[:IMMediate] HP E1340A Arming and Marker Outputs Chapter 5...
  • Page 100 !1 kHz square wave is applied to "Aux In" connector. The AFG outputs !a 5 cycle burst on each positive edge of the external arm signal. !Assign I/O path between IBASIC and the E1340A. ASSIGN @Afg TO 80910 COM @Afg...
  • Page 101: Gating The Waveforms

    ! the gate signal is high, the gate is active and the waveform is !suspended. When the gate signal is low, the gate is inactive and !the waveform resumes. !Assign I/O path between IBASIC and the E1340A. ASSIGN @Afg TO 80910 COM @Afg...
  • Page 102: Aborting Waveforms

    Aborting a waveform places the AFG in the Idle state. The waveform is halted and the output remains at the last amplitude point when the abort was executed. The command which aborts a waveform is: ABORt Chapter 5 HP E1340A Arming and Marker Outputs...
  • Page 103: Marker Outputs

    This outputs a positive marker [SOURce:]MARKer:POLarity pulse. [SOURce:]ROSCillator The source outputs the internal reference oscillator signal. Set the output polarity to NORMal using the [SOURce:]MARKer:POLarity command. This outputs a TTL compatible oscillator signal. HP E1340A Arming and Marker Outputs Chapter 5...
  • Page 104: Generating Zero Crossing Marker Pulses

    5. Generate and Store the First Waveform Segment - [SOURce:]LIST[:SEGMent]:SELect A voltage_list [SOURce:]LIST[:SEGMent]:VOLTage < > 6. Generate and Store the Second Waveform Segment - [SOURce:]LIST[:SEGMent]:SELect B [SOURce:]LIST[:SEGMent]:VOLTage < voltage_list > 7. Generate the Output - [SOURce:]FUNCtion:USER AB INITiate[:IMMediate] Chapter 5 HP E1340A Arming and Marker Outputs...
  • Page 105 HP IBASIC (MARK_OUT) !RE-SAVE“MARK_OUT” !This program outputs marker pulses with all amplitude points less !than 0V. The output sequence consists of two arbitrary waveforms. !Assign I/O path between IBASIC and the E1340A. ASSIGN @Afg TO 80910 COM @Afg,Waveform1(1:4096),Waveform2(1:4096) !Set up error checking ON INTR 8 CALL Errmsg ENABLE INTR 8;2...
  • Page 106 C and QuickBASIC The C program MARK_OUT.C is in directory “ CPROG” , and the Programs QuickBASIC program MARK_OUT.BAS is in directory “ QBPROG” on the example program disk HP P/N E1340-10036. Chapter 5 HP E1340A Arming and Marker Outputs...
  • Page 107: Program Comments

    ARM[:STARt]:LAYer2:SOURce < > command are: Sources EXTernal : The HP E1340A’s front panel "Start Arm In" BNC connector (TTL levels). Available for repetitive burst output only. IMMediate : Immediate arming. An arm is internally generated when the start trigger sequence enters the wait-for-arm state.
  • Page 108: Enabling The Gate

    Before the AFG reference oscillator can be gated, the gate must be enabled. This is done with the command. [SOURce:]ROSCillator:GATE:STATe When the mode is , gating is enabled. When , gating is disabled. Chapter 5 HP E1340A Arming and Marker Outputs...
  • Page 109: Hp E1340A High Speed Operation

    Chapter 6 HP E1340A High Speed Operation Chapter Contents This chapter explains how to use the HP E1340A Arbitrary Function Generator at faster speeds and other operations. Chapter 3 shows how to transfer waveform segments to the AFG as voltage values.
  • Page 110: Program Example

    HP IBASIC Program Example (UNS_DAT) !RE-SAVE“UNS_DAT” !This program downloads AFG data in the form of DAC codes !(unsigned numbers). The data represents a 5V ramp waveform. !Assign I/O path between IBASIC and the E1340A. ASSIGN @Afg TO 80910 COM @Afg,Waveform(1:4096) !Set up error checking ON INTR 8 CALL Errmsg ENABLE INTR 8;2...
  • Page 111 FOR I=2048 TO -2047 STEP -1!calculate waveform points as dac codes Waveform(2049-I)=((I*.0024426)/.0025)+2048 NEXT I OUTPUT @Afg;“SOUR:ARB:DAC:SOUR INT”!dac data source (internal) OUTPUT @Afg;“SOUR:LIST:SEGM:SEL A”!select segment name OUTPUT @Afg;“SOUR:LIST:SEGM:VOLT:DAC ”;Waveform(*) !load ampl points SUBEND SUB Rst SUB Errmsg HP E1340A High Speed Operation Chapter 6...
  • Page 112 “ QBPROG” on the C and QuickBASIC example disk (part number E1340-10036). This program is very similar to the example programs used in Chapter 3. The only difference is that this program transfers the segment data as DAC codes instead of voltage values. Chapter 6 HP E1340A High Speed Operation...
  • Page 113: Using Definite Length Blocks To Transfer Data

    16-bit integer be sent first. For example, to send a waveform segment consisting of 4096 DAC codes (4096 points), the actual number of “ digits” and “ 8-bit data bytes” equals: 4096 * 2 = 8192. HP E1340A High Speed Operation Chapter 6...
  • Page 114: Program Example

    5. Store the Waveform Segment as DAC Data - voltage_list [SOURce:]LIST[:SEGMent]:VOLTage:DAC < > This command stores the waveform segment into segment memory using DAC codes sent as Definite Length Block Data. 6. Generate the Output - name [SOURce:]FUNCtion:USER < > INITiate[:IMMediate] Chapter 6 HP E1340A High Speed Operation...
  • Page 115 !(unsigned numbers). The data is sent in a IEEE-488.2 definite length !block in 16-bit integer format. The waveform is a 4096 point ramp wave. !Assign I/O paths between IBASIC and the E1340A. ASSIGN @Afg TO 80910 ASSIGN @Afg1 TO 80910;FORMAT OFF !path for binary data...
  • Page 116 IOEOI (ISC, 0) IOEOL (ISC, “ ”, 0) respectively. contains the HP-IB select code, and the and “ ” (NULL) values disables the carriage return (CR) and line feed (LF) to allow the AFG to receive a command string without a terminator.
  • Page 117 IOOUTPUTS (ADDR, commands, strlen(commands)); /* Send the last command and data */ IOOUTPUTAB(ADDR, Wave_seg, num_bytes, swap); /* Re-enable EOL and EOI for normal HP-IB operation; then send CR/LF */ IOEOI (ISC, 1);IOEOL (ISC, state, 2); IOOUTPUTS(ADDR,“”,0); HP E1340A High Speed Operation...
  • Page 118 IOEOL (ISC& , “ ”, respectively. ISC& contains the HP-IB select code, and the and “ ” (NULL) values disables the carriage return (CR) and line feed (LF) to allow the AFG to receive a command string without a terminator.
  • Page 119 CALL IOEOL(ISC&, “ ”, 0) CALL IOOUTPUTS(ADDR&, Commands$, LEN(Commands$)) ’ Send the data CALL IOOUTPUTAB(ADDR&, SEG WaveSeg%(1), NumSize%, SwapSize%) ’ Re-enable EOL and EOI for normal HP-IB operation; then send CR/LF CALL IOEOI(ISC&, 1) CALL IOEOL(ISC&, Endline$, LEN(Endline$)) CALL IOOUTPUTS(ADDR&, “”, 0) END SUB...
  • Page 120: Using The Vxibus Backplane

    The example generates a 5 V sine wave and a 0 to +5 V triangle wave (see Waveform next figure). The commands are: Segments in 1. Reset the AFG - *RST Memory 2. Setup the AFG for Output - frequency [SOURce:]FREQuency[:CW|FIXed] < > [SOURce:]FUNCtion[:SHAPe] USER [SOURce:]VOLTage[:LEVel][:IMMediate][:AMPLitude] < amplitude > Chapter 6 HP E1340A High Speed Operation...
  • Page 121 *OPC? This command allows the AFG to wait until it has executed all commands before the computer begins sending the data. If the computer sends the data too soon, it will be lost. HP E1340A High Speed Operation Chapter 6...
  • Page 122 The command or downloading method used depends on the device that downloads the data. For example, the device may be an embedded controller like the HP E1480A V360/Controller. (You can also use the HP E1405A/E1406A Command Module or HP E1300A/E1301A Mainframe, but at a slower data transfer rate.)
  • Page 123 !This method of data transfer is recommended when amplitude data !computation (by IBASIC) is not intensive, but fast downloading is !required. !Assign I/O path between IBASIC and the E1340A. ASSIGN @Afg TO 80910 !Compute the E1340 base address in A16 address space. The base !address is used with the AFG’s input data register offset to form...
  • Page 124 OUTPUT @Afg;“*OPC?” !allow AFG set up to complete ENTER @Afg;Ready FOR I=1 TO 4096 WRITEIO -9826,Base_addr+12;Wave2(I)!load waveform points NEXT I OUTPUT @Afg;“*OPC?” !allow downloading to complete ENTER @Afg;Ready Continued on next page Chapter 6 HP E1340A High Speed Operation...
  • Page 125 However, the command module/mainframe is only used to demonstrate the downloading method for C and QuickBASIC. A better method is to use an embedded controller. If you wish to use the HP E1405A/E1406A Command Module or HP E1300A/E1301A Mainframe to download data, use the method described in “...
  • Page 126: Program To Download Directly To The Dac

    HP E1480A V360/Controller, or IBASIC installed in the HP E1300/E1301 Mainframe or HP E1405/E1406 Command Module. (You can also use an external HP-IB computer connected to the HP E1405A/E1406A Command Module or HP E1300A/E1301A Mainframe, but at a slower data transfer rate.)
  • Page 127 !This program downloads dac codes to the AFG dac from the input !data register. Corresponding amplitude points are output as the !codes are received. !Assign I/O path between IBASIC and the E1340A. ASSIGN @Afg TO 80910 !Compute the E1340 base address in A16 address space. The base !address is used with the input data register offset to form the !complete register address.
  • Page 128 “ QBPROG” on the C and QuickBASIC example disk (part number E1340-10036). The C and QuickBASIC example programs use the HP E1405A/E1406A Command Module or HP E1300A/E1301A Mainframe (version A.06.00 or above) to download the data to the DAC. However, the command module/mainframe is only used to demonstrate the downloading method for C and QuickBASIC.
  • Page 129: Program Comments

    The AFG requires that the data it receives must be correct, or it will not execute it correctly. Unlike using other data transfer methods, the AFG does Operation from not perform any error checking on the data when it is directly downloaded. Incorrect DAC Codes HP E1340A High Speed Operation Chapter 6...
  • Page 130 Chapter 6 HP E1340A High Speed Operation...
  • Page 131: Hp E1340A Command Reference

    Common Command Reference ..... . . Page 188 HP E1340A Command Quick Reference ....Page 197 SCPI Conformance Information .
  • Page 132: Command Types

    (*), and may include one or more parameters. The command keyword is separated from the first parameter by a space character. Some examples of Common Commands are shown below: *RST *CLS *ESE < unmask > *OPC? *STB? Chapter 7 HP E1340A Command Reference 132...
  • Page 133: Scpi Command Format

    COUNt are acceptable forms. Other forms of such as COUN COUNT COUNt will generate an error. You can use upper or lower case letters. Therefore, COUNT coun , or Coun are all acceptable. 133 HP E1340A Command Reference Chapter 7...
  • Page 134: Implied (Optional) Keywords

    ON, OFF, 1, 0 Discrete Selects from a finite number of values. These parameters use mnemonics to represent each valid setting. An example is the ARM[:STARt]:LAYer2:SOURce < source > command where source can be EXTernal IMMediate Chapter 7 HP E1340A Command Reference 134...
  • Page 135: Optional Parameters

    If you send the parameter, the command returns the minimum count available. If you send the parameter, the command returns the maximum count available. There must be a space between the command and the parameter. 135 HP E1340A Command Reference Chapter 7...
  • Page 136: Querying Parameter Settings

    “ Settings conflict” errors will occur if the current values are incompatible with an intended value. As a result, are not recommended for specifying the value of a parameter. Chapter 7 HP E1340A Command Reference 136...
  • Page 137: Linking Commands

    :FIXed :CW | FIXed SCPI Command Reference This section contains the SCPI commands for the HP E1340A 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.
  • Page 138: Abort

    Subsystem Syntax ABORt [no query] Comments ABORt does not affect any other settings of the HP E1340A. 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...
  • Page 139: Arm

    The source and slope for arming (starting) waveform generation. The number of waveform start arms the HP E1340A will accept before the trigger system returns to the idle state. The number of repetitions of a waveform that will be output for each start arm accepted.
  • Page 140: [:Start]:Layer2 :Count

    "Aux In" BNC [:STARt]:LAYer2 edge selects the edge (rising or falling) ARM[:STARt]:LAYer2:SLOPe < > on the HP E1340A’s front panel "Aux In" BNC which starts waveform :SLOPe generation. This edge is significant only with set to . The programmed value is ARM:STARt:LAYer2:SOURce EXTernal retained but not used when other sources are selected.
  • Page 141: [:Start]:Layer2 :Source

    The available sources are: :SOURce EXTernal: The HP E1340A’s front panel "Aux In" BNC connector. Immediate arming. An arm is internally generated two IMMediate: to three reference oscillator cycles after the start trigger sequence enters the wait-for-arm state.
  • Page 142: Calibration

    CALibration:AC:BEGin starts the AC calibration procedure for the HP E1340A. It sets the HP E1340A up for the first of the measurements in the procedure. See the “ Calibration” section of the HP E1340A Service Manual for detailed information on the use of this command.
  • Page 143: Ac:point

    *RST procedure to restore normal operation. See the “ Calibration” section of the HP E1340A Service Manual for detailed information on the use of this command. Comments Most of the HP E1340A’s commands cannot be executed while calibration is in progress.
  • Page 144: [:Dc]:Begin

    CALibration[:DC]:BEGin starts the DC calibration procedure for the HP E1340A. It sets the HP E1340A up for the first of the measurements in the procedure. See the “ Calibration” section of the HP E1340A Service Manual for detailed information on the use of this command.
  • Page 145: State:ac

    CAUTION The HP E1340A uses an active amplitude correction technique, boosting the output signal to compensate for filter and other roll-offs. When waveform generation at high frequencies is...
  • Page 146: Initiate

    INITiate[:IMMediate] INITiate INITiate subsystem initiates the trigger subsystem and prepares the HP E1340A for waveform generation. Once initiated, a start arm received from the programmed arm source ( command) starts the ARM:STARt:SOURce waveform output. For frequency sweeping, the initial waveform frequency is the...
  • Page 147: Output

    :IMPedance OUTPut:IMPedance < impedance > sets the HP E1340A’s output impedance. Since the HP E1340A only provides 50 output impedance, there is no need to send this command. It is provided for SCPI compatibility only. Parameters Parameter Parameter Range of...
  • Page 148: Load

    OUTPut:LOAD < load > indicates whether the actual load applied to the HP E1340A’s "Aux Out" BNC is either matched to the output impedance specified by or is an open circuit. The output voltage OUTPut:IMPedance into an open circuit is twice that into a matched load. Setting...
  • Page 149: [Source:]Arbitrary

    Comments When driving the DAC from the VXIbus data transfer bus, the address for writing the data is offset 12 decimal (0C hex) in the HP E1340A’s A16 address space. Setting the DAC data source to a setting other than...
  • Page 150: Download

    The most significant four bits of each 16-bit word are not used and must be zero. With SOURce:VOLTage:LEVel:IMMediate AMPLitude 5.1175 V set and a matched output load, the least significant bit (LSB) represents 2.5 mV. HP E1340A Command Reference Chapter 7...
  • Page 151 [SOURce:]ARBitrary:DOWNload When downloading waveform segment data from the VXIbus data transfer bus, the address for writing the data is offset 12 decimal (0C hex) in the HP E1340A’s A16 address space. Parameter Parameter Range of Default Name Type Values Units...
  • Page 152: Download :Complete

    Coupled command: No Related Commands: SOURce:ARBitrary:DOWNload *RST Condition: downloading disabled Example Download 4096 points from the VXI backplane to waveform segment "C" ARB:DOWN VXI,C,4096 Set up for download download data ARB:DOWN:COMP Indicate download complete HP E1340A Command Reference Chapter 7...
  • Page 153: [Source:]Frequency

    [SOURce:]FREQuency:DOWNload :COMPlete [SOURce:]FREQuency [SOURce:]FREQuency subsystem controls the HP E1340A’s frequency generator. The generator uses a direct digital synthesis (NCO) technique to generate the specified frequencies. It has an upper frequency limit of the reference oscillator frequency multiplied by .468749999767 and has a resolution of .01 Hz when used with the built-in 42.94 MHz reference oscillator.
  • Page 154: Frequency

    For SOURce:FUNCtion:USER ABCD , four segments are output, and the maximum possible frequency is one-fourth the above value. Waveforms in the HP E1340A are generated by indexing through 4,096 points of memory data (8,192 for SOURce:FUNCtion:USER AB or 16,384 for...
  • Page 155: Center

    The above values bound the legal range for Comments Executable when initiated: Query form only Coupled command: Yes Related Commands: SOURce:FREQuency:MODE SOURce:FUNCtion:SHAPe SOURce:ROSCillator *RST Condition: SOURce:FREQuency:FIXed 10 kHz Example Setting the waveform frequency FREQ 1E3 Set frequency to 1000 Hz Chapter 7 HP E1340A Command Reference...
  • Page 156: Fskey

    FSKey: Selects frequency shift keying mode. SOURce:FREQuency:FSKey activates the mode, and TTL levels on the HP E1340A’s front panel "Aux In" BNC are used to toggle between the two waveform frequencies. Selects frequency sweep mode. SWEep: SOURce:FREQuency:CENTer SPAN...
  • Page 157: Span

    Executable when initiated: Query form only Coupled command: Yes Related Commands: SOURce:FREQuency:CENTer MODE STARt , and STOP SOURce:FUNCtion:SHAPe SOURce:ROSCillator *RST Condition: SOURce:FREQuency:SPAN 15.0 MHz Example Setting the frequency span FREQ:SPAN 1E3 Set frequency span to 1000 Hz Chapter 7 HP E1340A Command Reference...
  • Page 158: Start

    Executable when initiated: Query form only Coupled command: Yes Related Commands: SOURce:FREQuency:CENTer MODE SPAN , and STARt SOURce:FUNCtion:SHAPe SOURce:ROSCillator *RST Condition: SOURce:FREQuency:STOP 15.0 MHz Example Setting the stopping frequency FREQ:STOP 1E3 Set stopping frequency to 1000 Hz HP E1340A Command Reference Chapter 7...
  • Page 159: [Source:]Function

    [SOURce:]FUNCtion[:SHAPe] [SOURce:]FUNCtion [SOURce:]FUNCtion subsystem controls which waveform shape (arbitrary, sinusoid, etc.) the HP E1340A generates. For arbitrary waveform generation, the subsystem controls which of the seven possible segment sequences are selected. Subsystem Syntax [SOURce:] FUNCtion shape [:SHAPe] < > :USER <...
  • Page 160: User

    Selecting square wave generation mode FUNC SQU Select square wave mode :USER name selects which of the seven [SOURce:]FUNCtion:USER < > pre-defined segment sequences the HP E1340A will output when arbitrary waveform generation is selected by SOURce:FUNCtion:SHAPe USER Parameters Parameter Parameter Range of Default...
  • Page 161: [Source:]List

    ", " ". Comments Executable when initiated: Yes Coupled command: No *RST Condition: none Power-On Condition: Segment names A, B, C, and D are defined Example Cataloging waveform segment names LIST:CAT? Catalog waveform segments Chapter 7 HP E1340A Command Reference...
  • Page 162: [:Segment]:Define

    There are only 4 legal segment names: A, B, C, D. Alphabetic character case (upper vs. lower) is ignored. Executable when initiated: Yes Coupled command: No *RST Condition: unaffected Power-On Condition: SOURce:SEGMent:SELect NONE Example Selecting a waveform segment LIST:SEL A Select waveform segment A HP E1340A Command Reference Chapter 7...
  • Page 163: [:Segment]:Voltage

    Related Commands: SOURce:LIST:SEGMent:VOLTage:DAC SOURce:VOLTage:LEVel:IMMediate:AMPLitude *RST Condition: unaffected Power-On Condition: waveform segment contents are unspecified Example Defining a waveform segment voltage point list LIST:SEL B Select waveform segment B LIST:VOLT .5,1,.5,0,-.5,..,-1 Define 4096 waveform voltages Chapter 7 HP E1340A Command Reference...
  • Page 164: [:Segment]:Voltage:dac

    Executable when initiated: Yes Coupled command: No *RST Condition: unaffected Power-On Condition: waveform segment lengths are 0 Example Query voltage point list length LIST:SEL C Select waveform segment C LIST:VOLT:POIN? Query voltage point list length HP E1340A Command Reference Chapter 7...
  • Page 165: Ssequence :Catalog

    A | B | C | D | AB | ABCD | NONE none NONE selects no segment sequence Comments Executable when initiated: Yes Coupled command: No *RST Condition: unaffected Power-On Condition: SOURce:LIST:SSEQuence:SELect NONE Chapter 7 HP E1340A Command Reference...
  • Page 166: Ssequence :Sequence

    Sequence AB contains 2 segments. Sequence ABCD contains 4. Comments Executable when initiated: Yes Coupled command: No *RST Condition: none Power-On Condition: segment sequence lengths are predefined as specified above Example Query segment sequence length LIST:SSEQ:SEQ:SEGM? Query segment sequence length HP E1340A Command Reference Chapter 7...
  • Page 167: [Source:]Marker

    "[SOURce:]ROSCillator" | "[SOURce:]SWEep" Comments Executable when initiated: Query form only Coupled command: Yes Related Commands: SOURce:MARKer:POLarity *RST Condition: SOURce:MARKer:FEED "SEGMent" Example Setting the "Aux Out" BNC source MARK:FEED "SOUR:ROSC" Set marker reference oscillator as source Chapter 7 HP E1340A Command Reference...
  • Page 168: Polarity

    Executable when initiated: Query form only Coupled command: Yes Related Commands: SOURce:MARKer:FEED *RST Condition: SOURce:MARKer:POLarity NORMal Example Setting the "Aux Out" BNC polarity MARK:FEED "SWE" Generate marker pulse at start of sweep MARK:POL INV Set active low output HP E1340A Command Reference Chapter 7...
  • Page 169: [Source:]Ramp

    INVerted | NORMal none Comments Executable when initiated: Query form only Coupled command: Yes Related Commands: SOURce:FUNCtion:SHAPe *RST Condition: SOURce:RAMP:POLarity NORMal Example Selecting ramp polarity FUNC:SHAP RAMP Select ramp output RAMP:POL INV Select negative-going ramp Chapter 7 HP E1340A Command Reference...
  • Page 170: [Source:]Roscillator

    :SOURce < > :FREQuency frequency indicates to [SOURce:]ROSCillator:FREQuency:EXTernal < > the HP E1340A the frequency of an external reference oscillator source. :EXTernal SOURce:FREQuency subsystem uses this value to generate the waveform frequency when is set to SOURce:ROSCillator:SOURce EXTernal Parameters...
  • Page 171: Gate:state

    Enable gating :SOURce source selects the reference oscillator [SOURce:]ROSCillator:SOURce < > source. The available sources are: The HP E1340A’s front panel "Aux In" BNC. EXTernal: The internal 42.94967296 MHz oscillator. Using this INTernal: oscillator with the subsystem gives a SOURce:FREQuency frequency resolution of .01 Hz.
  • Page 172 [SOURce:]ROSCillator:SOURce Executable when initiated: Query form only Coupled command: Yes *RST Condition: SOURce:ROSCillator:SOURce INTernal Example Setting the reference oscillator source ROSC:SOUR EXTernal Select an external oscillator source HP E1340A Command Reference Chapter 7...
  • Page 173: [Source:]Sweep

    1 kHz to 10 kHz, the minimum number of points is 2, and the maximum is (10 kHz - 1 kHz) / .01 Hz + 1, or 900,001 points. Considering sweep time, the fastest the HP E1340A can sweep is 187 S per frequency point with AC amplitude correction disabled, or 250 S per point with AC amplitude correction enabled.
  • Page 174: Count

    [SOURce:]SWEep:COUNt < > HP E1340A will perform. Since the only valid value for this count is INFinity , there is no need to send this command. It is included for SCPI compatibility purposes only.
  • Page 175: Points

    With CALibration:STATe:AC ON set: MINimum selects 0.250 mS * points - 1); MAXimum selects 25.75 mS * ( points - 1). points is specified by the SOURce:SWEep:POINts command. time The above values bound the valid range for Chapter 7 HP E1340A Command Reference...
  • Page 176 SWEep:TIME should be set to .99 S. Executable when initiated: Query form only Coupled command: Yes Related Commands: SOURce:SWEep:POINts, CAL:STATe:AC *RST Condition: SOURce:SWEep:TIME 1.05 Example Setting the duration of the sweep SWE:TIME 20 Set sweep to take 20 seconds HP E1340A Command Reference Chapter 7...
  • Page 177: [Source:]Voltage

    Output amplitude for DC must be programmed in volts; for arbitrary waveform output, volts or peak volts. The query form returns the amplitude in terms of the default units, specified by the SOURce:VOLTage:LEVel:IMMediate:AMPLitude:UNIT:VOLTage command. Chapter 7 HP E1340A Command Reference...
  • Page 178 An amplitude of -9.9e37 DBM or DBMW is equivalent to 0 V. Related Commands: SOURce:FUNCtion:SHAPe SOURce:VOLTage:LEVEL:IMMediate:OFFSet Executable when initiated: Query form only Coupled command: Yes *RST Condition: SOURce:VOLTage:LEVel:IMMediate:AMPLitude 0 V Example Setting output voltage VOLT 5 VPP Set output amplitude to 5 volts peak-to-peak HP E1340A Command Reference Chapter 7...
  • Page 179: [:Level][:Immediate] [:Amplitude]:Unit [:Voltage]

    VPP | VRMS | W Comments Related Commands: OUTPut:LOAD SOURce:VOLTage:LEVEL:IMMediate:AMPLitude Executable when initiated: Yes Coupled command: No *RST Condition: SOURce:VOLTage:LEVel:IMMediate:AMPLitude:UNIT:VOLTage V Example Setting the default voltage units VOLT:UNIT:VOLT VPP Set default units to volts peak-to-peak Chapter 7 HP E1340A Command Reference...
  • Page 180: [:Level][:Immediate]:Offset

    The above values bound the legal range for offset Comments Related Commands: SOURce:VOLTage:LEVEL:IMMediate:AMPLitude Executable when initiated: Query form only Coupled command: Yes *RST Condition: SOURce:VOLTage:LEVel:IMMediate:OFFSet 0 V Example Setting offset voltage VOLT:OFFS 3 Set offset voltage to 3 volts HP E1340A Command Reference Chapter 7...
  • Page 181: Status

    SWEeping ), and 8 ( INITiated ) are defined for Register the HP E1340A. All other bits are always zero. Set (1) during calibration. Cleared (0) Bit 0 - CALibrating: otherwise. Bit 3 - SWEeping: Set (1) while a frequency sweep or list is in progress.
  • Page 182: Operation |Questionable :Condition

    Executable when initiated: Yes Coupling group: none Related commands: STATus subsystem *SRE *STB? *RST Condition: unaffected Power-on Condition: STATUS:OPERation|QUEStionable:ENABLE 0 Example Setting the Operation Register enable mask STAT:OPER:ENAB #H0100 Enable summary on Initiated bit HP E1340A Command Reference Chapter 7...
  • Page 183: Operation |Questionable [:Event]

    Coupling group: none Related commands: STATus subsystem *SRE *STB? *RST Condition: unaffected Power-on Condition: STATUS:OPERation|QUEStionable:NTRansition 0 Example Setting the Operation Register negative transition mask STAT:OPER:NTR #H0008 Set event bit when sweeping condition is cleared Chapter 7 HP E1340A Command Reference...
  • Page 184: Operation |Questionable :Ptransition

    0, the negative transition masks are set to 0, and the positive transition masks are set to 32767. Comments Executable when initiated: Yes Coupling group: none Related commands: STATus subsystem *SRE *STB? *RST Condition: none Example Presetting the STATus subsystem STAT:PRES Preset STATus subsystem HP E1340A Command Reference Chapter 7...
  • Page 185: System

    SYSTem:ERRor? first. The error queue can hold 30 error messages. If the HP E1340A generates more than 30 messages that are not read, it replaces the last error message in the queue with error -350,"Too many errors". No...
  • Page 186: Trigger

    TRIGger[:STARt]:COUNt < > of triggers the HP E1340A would accept after an INITiate:IMMediate command before returning the start trigger sequence to the wait-for-arm state. However, since this is equal to the length of the current waveform, and is not configurable here, the only legal value for this command is 9.91e37 or NaN (not a number).
  • Page 187: [:Start]:Source

    Type Values Units source discrete INTernal none Comments Executable when initiated: Yes Coupled command: No Related Commands: ABORt *RST Condition: TRIGger:STARt:SOURce INTernal Example Setting the start trigger source TRIG:SOUR INT Trigger source is internal Chapter 7 HP E1340A Command Reference...
  • Page 188: Ieee-488.2 Common Commands

    IEEE-488.2 Common Commands This section describes the IEEE-488.2 Common Commands implemented in the HP E1340A. The table below shows the commands listed by functional group; however, commands are listed alphabetically in the reference. Examples are shown in the reference when the command has parameters or returns a non-trivial response;...
  • Page 189: Cls

    Executable when initiated: Yes Coupled command: No Related Commands: *EMC *GMC *LMC *RMC *RST Condition: none; macro defintions are unaffected Power-On Condition: no macros are defined Example Define macro to restart waveform *DMC RESTART,#19ABOR;INIT Define macro Chapter 7 HP E1340A Command Reference...
  • Page 190: Emc And *Emc

    *ESR? returns the value of the Standard Event Status Register. The register is then cleared (all bits 0). Comments Executable when initiated: Yes Coupled command: No *RST Condition: none Power-On Condition: register is cleared HP E1340A Command Reference Chapter 7...
  • Page 191: Gmc

    The first two fields identify this instrument as model number E1340A manufactured by Hewlett-Packard. The third field is 0 since the serial number of the E1340A is unknown to the firmware. The last field indicates the revision level of the firmware.
  • Page 192: Lmc

    Power-On Condition: no macros are defined *LRN? *LRN? returns a sequence of commands that may be resent to the HP E1340A to return it to its current programming state. Only those commands that are affected by are included in the *RST sequence.
  • Page 193: Opc

    *OPC? *OPC? *OPC? causes the E1340A to wait for all pending operations to complete. A single ASCII "1" is then placed in the output queue. is set, the ASCII "1" will be placed in the STATus:OPC:INITiate OFF output queue when all commands received prior to the...
  • Page 194: Rmc

    Executable when initiated: Yes Coupled command: No Related commands: *DMC *PMC *RST Condition: none *RST resets the HP E1340A as follows: *RST Sets all commands to their *RST state. Aborts all pending operations including waveform generation. Sets all stored (...
  • Page 195: Sre And *Sre

    Status Byte Register. Bit 6 (decimal weight 64) *STB? is set if a service request is pending. Comments Executable when initiated: Yes Coupled command: No Related commands: *SRE *RST Condition: none Chapter 7 HP E1340A Command Reference...
  • Page 196: Tst

    A zero response indicates that the self-test passed. Any non-zero reponse indicates that the test failed. See the HP E1340A service manual for information on interpreting non-zero self-test responses. The settings for all SCPI commands are unchanged by this command.
  • Page 197: Hp E1340A Command Quick Reference

    Table 7-1. HP E1340A Command Quick Reference Subsystem Commands TRIGger ABORt ARM[:STARt][:LAYer[1]]:COUNt < number > number ARM[:STARt]:LAYer2:COUNt < > edge ARM[:STARt]:LAYer2:SLOPe < > source ARM[:STARt]:LAYer2:SOURce < > CALibration CALibration:AC:BEGin CALibration:AC:POINt? < value > CALibration:DATA:AC < block > CALibration:DATA[:DC] < block >...
  • Page 198 Table 7-1. HP E1340A Command Quick Reference (continued) Subsystem Commands [SOURce:]LIST [SOURce:]LIST[:SEGMent]:CATalog? [SOURce:]LIST[:SEGMent]:DEFine? name [SOURce:]LIST[:SEGMent]:SELect < > voltage_list [SOURce:]LIST[:SEGMent]:VOLTage < > voltage_list [SOURce:]LIST[:SEGMent]:VOLTage:DAC < > ]LIST[:SEGMent]:VOLTage:POINts? SOURce:]LIST:SSEQuence:CATalog? [SOURce:]LIST:SSEQuence:DEFine? name [SOURce:]LIST:SSEQuence:SELect < > [SOURce:]LIST:SSEQuence:SEQuence? [SOURce:]LIST:SSEQuence:SEQuence:SEGMents? [SOURce:]MARKer [SOURce:]MARKer:FEED < source > [SOURce:]MARKer:POLarity <...
  • Page 199 Table 7-1. HP E1340A Command Quick Reference (continued) Subsystem Commands STATus STATus:OPERation|QUEStionable:CONDition? STATus:OPERation|QUEStionable:ENABle < unmask > STATus:OPERation|QUEStionable[:EVENt]? STATus:OPERation|QUEStionable:NTRansition < unmask > unmask STATus:OPERation|QUEStionable:PTRansition < > STATus:PRESet SYSTem SYSTem:ERRor? SYSTem:VERsion? number TRIGger TRIGger[:STARt]:COUNt < > source TRIGger[:STARt]:SOURce < > 199 HP E1340A Command Quick Reference...
  • Page 200: Scpi Conformance Information

    SCPI Conformance Information The HP E1340A Arbitrary Function Generator conforms to the SCPI-1991.0 standard. The following tables list all the SCPI confirmed, approved, and non-SCPI commands that the HP E1340A can execute. Table 7-2. SCPI Confirmed Commands ABORt [SOURce:] ROSCillator source :SOURce <...
  • Page 201 :SOURce < > :POLarity < > :DOWNload < source >,< dest >,< l ength > ROSCillator :COMPlete :FREQuency frequency FUNCtion :EXTernal < > :USER < name > :GATE :STATe < state > Chapter 7 HP E1340A SCPI Conformance Information...
  • Page 202 HP E1340A SCPI Conformance Information Chapter 7...
  • Page 203: Hp E1340A Afg Status

    HP E1340A AFG Status Introduction This chapter describes the HP E1340A Arbitrary Function Generator status system. Included is information on the status groups used by the AFG, the conditions monitored by each group, and information on how to enable a condition to interrupt the computer.
  • Page 204 Figure 8-1. HP E1340A Status Groups and Associated Registers Chapter 8 HP E1340A AFG Status...
  • Page 205: The Operation Status Group

    Condition Register sets the associated bit in the Event Register. sets the positive transition. For each bit unmasked, a 0 to 1 PTRansition transition of that bit in the Condition Register sets the associated bit in the Event Register. HP E1340A AFG Status Chapter 8...
  • Page 206 Enable Register bit to be unmasked. (Bits 0, 3, and 8 have corresponding decimal values of 1, 8, and 256.) The Enable Register is cleared at power-on, or by specifying an < unmask > value of 0. Chapter 8 HP E1340A AFG Status...
  • Page 207: The Standard Event Status Group

    The Standard Event Status Group monitors command execution, programming errors, and the power-on state. It is the status group used by Status Group the error checking routine in the HP IBASIC example programs found throughout the manual. The Standard Event...
  • Page 208: The Status Byte Status Group

    Event Register, and when the bit is unmasked by the group’s Enable Register. Service Request Bit (RQS): Bit 6 is set (1) when any other bit in the Status Byte Register is set. Chapter 8 HP E1340A AFG Status...
  • Page 209 The Service Request Enable Register specifies which (status group) Enable Register summary bit(s) will send a service request message to the computer over HP-IB. The bits are specified (unmasked) with the command: *SRE <unmask> All unmasked bits in the Enable Register can be determined with the...
  • Page 210: Using The Standard Event Status Group

    > 2. Unmask bit 5 ( ) in the Service Request Enable Register so that a service request is generated when the Standard Event Status Group summary bit is received. *SRE < unmask > Chapter 8 HP E1340A AFG Status...
  • Page 211: Hp E1340A Block Diagram Description

    HP E1340A Block Diagram Description Chapter Contents This chapter shows how the HP E1340A 12-Bit Arbitrary Function Generator (AFG) operates. The sections are as follows: AFG Description ........Page 211 What is an Arbitrary Waveform?.
  • Page 212: Generating Waveforms

    Thus, the waveform frequency depends on the rate at which the DAC receives the codes. The output DAC’s voltage range is from -5.12 V to +5.1175 V. Chapter 9 HP E1340A Block Diagram Description...
  • Page 213: Memory

    The reference oscillator also clocks the RAM and the DAC. Frequency The frequency generator sets the waveform frequency by determining the speed at which the RAM address is addressed. Generators HP E1340A Block Diagram Description Chapter 9...
  • Page 214: Output Circuitry

    Aux Out This connector outputs the marker sources selected by the command. The Output MUX connects the appropriate [SOURce:]MARKer signals to the connector. Chapter 9 HP E1340A Block Diagram Description...
  • Page 215: Hp E1340A Specifications

    Appendix A HP E1340A Specifications Appendix Contents This appendix contains the HP E1340A Arbitrary Function Generator operating specifications. Except as noted, the specifications apply under the following conditions: Period: 1 year Temperature: 0 - 55 C Relative humidity: 0 - 40 C...
  • Page 216 5 lsb Jitter: 23 nS Frequency Sweep Range: 0.01 Hz to 15 MHz Sweep Rate of Change: 0.4 Hz/sec to 2.6 MHz/sec Frequency-Shift (FSK) Rate: to 4 kHz Waveform Repetitions: 1 to 64534 or continuous HP E1340A Specifications Appendix A...
  • Page 217: General And Vxi Characteristics

    Watts per Slot: 13.2 Cooling per Slot: 0.11 mm H O @ 1.06 liters/s Storage Temperature: -40 to 75 C EMC. RFI, Safety: meets: FTZ 1046/1984 CSA 556B IEC 348 UL 1244 Net Weight: 0.6 kg Appendix A HP E1340A Specifications...
  • Page 218 HP E1340A Specifications Appendix A...
  • Page 219: Hp E1340A Useful Tables

    Table B-3. HP E1340A Power-on/Reset ....Page 223 Table B-4. HP E1340A Error Messages ....Page 224...
  • Page 220 Table B-1. HP E1340A Example Program Listing Program Type Program Name Language Description Introductory SLFTST HP IBASIC, C, E1340A Self Test. QuickBASIC (Chapter 1) RSTCLS " Resetting and clearing the AFG. " Power-on/reset configuration. ERRORCHK HP IBASIC Error checking program.
  • Page 221 Table B-1. HP E1340A Example Program Listing (Cont’d) Program Type Program Name Language Description Arming and Marker EXT_ARM HP IBASIC, C, Arming the AFG with a signal applied to Outputs QuickBASIC the ’Aux In’ BNC. (Chapter 5) BURST " 5 cycle burst for each external arm.
  • Page 222 [SOURce:]FUNCtion[:SHAPe] [SOURce:]FUNCtion:USER [SOURce:]MARKer:FEED [SOURce:]MARKer:POLarity [SOURce:]RAMP:POLarity [SOURce:]ROSCillator:FREQuency:EXTernal [SOURce:]ROSCillator:SOURce [SOURce:]SWEep:COUNt [SOURce:]SWEep:POINts [SOURce:]SWEep:TIME [SOURce:]VOLTage[:LEVel][:IMMediate][:AMPLitude] [SOURce:]VOLTage[:LEVel][:IMMediate]:OFFSet Un-coupled ABORt Commands INITiate[:IMMediate] [SOURce:]ARBitrary:DOWNload [SOURce:]ARBitrary:DOWNload:COMPlete [SOURce:]LIST[:SEGMent]:CATalog? [SOURce:]LIST[:SEGMent]:DEFine? [SOURce:]LIST[:SEGMent]:SELect [SOURce:]LIST[:SEGMent]:VOLTage [SOURce:]LIST[:SEGMent]:VOLTage:DAC [SOURce:]LIST[:SEGMent]:VOLTage:POINts? [SOURce:]LIST:SSEQuence:CATalog? [SOURce:]LIST:SSEQuence:DEFine [SOURce:]LIST:SSEQuence:SELect [SOURce:]LIST:SSEQuence:SEQuence? [SOURce:]LIST:SSEQuence:SEQuence:SEGMents? [SOURce:]ROSCillator:GATE:STATe [SOURce:]VOLTage[:LEVel][:IMMediate][:AMPLitude]:UNIT[:VOLTage] TRIGger[:STARt]:COUNt TRIGger[:STARt]:SOURce 222 HP E1340A Useful Tables Appendix B...
  • Page 223 Table B-3. HP E1340A Power-On/Reset Configuration (as returned by *LRN?) Parameter Command Power-on/Reset Setting Macro usage *EMC AC calibration :CAL:STAT:AC 1 (enabled) DAC data source :ARB:DAC:SOUR INTernal Waveform amplitude units :VOLT:AMPL:UNIT:VOLT External reference osc. frequency :ROSC:FREQ:EXT +4.294967296E+007 INTernal Reference oscillator source...
  • Page 224 Table B-4. HP E1340A Error Messages Code Message Description -101 Invalid character Unrecognized character in parameter. -102 Syntax error Command is missing a space or comma between parameters. -103 Invalid separator Parameter is separated by a character other than a comma.
  • Page 225 Note the information associated with the message for a description of the failure. -350 Too many errors The HP E1340A A error queue is full and additional errors have occurred. -410 Query INTERRUPTED The HP E1340A was sent a command before it was finished responding to a query command.
  • Page 226 Command cannot be sent to the HP E1340A while the device is calibrating. 1019 Illegal while not calibrating The command is only valid when the HP E1340A is calibrating. 1100 Illegal segment name Attempting to download to a segment that doesn’t exist, or selecting a segment name that’s the same as...
  • Page 227 Table B-4. HP E1340A Error Messages (Cont’d) Settings Conflict Error Messages The following shows the conflicting settings and the change(s) made internally by the AFG. SOUR:FREQ:FIX frequency < minimum; SOUR:FREQ:FIX MIN set SOUR:FREQ:FIX frequency > maximum; SOUR:FREQ:FIX MAX set ARB:DAC:SOUR VXI and CAL:STAT:AC ON; CAL:STAT:AC OFF set ROSC:SOUR EXT and ROSC:FREQ:EXT not 42.94967296 MHz and CAL:STAT:AC ON;...
  • Page 228 Table B-4. HP E1340A Error Messages (Cont’d) Settings Conflict Error Messages (Cont’d) SOUR:FREQ:STAR > SOUR:FREQ:STOP; values exchanged SOUR:FREQ:STAR frequency < minimum; SOUR:FREQ:STAR MIN set SOUR:FREQ:STAR frequency > maximum; SOUR:FREQ:STAR MAX set SOUR:FREQ:STOP frequency < minimum; SOUR:FREQ:STOP MIN set SOUR:FREQ:STOP frequency > maximum; SOUR:FREQ:STOP MAX set SWE:POIN >...
  • Page 229: Hp E1340A Register-Based Programming

    The HP E1340A Arbitrary Function Generator (AFG) is a register-based device which does not support the VXIbus word serial protocol. When a SCPI command is sent to the AFG, the AFG driver in the HP E1300/01 Mainframe (Series B) or in the HP E1405/E1406 Command Module (Series C) parses the command and writes the information to the AFG registers.
  • Page 230 Figure C-1A. HP E1340A AFG Registers within A16 Address Space Figure C-1B. AFG Registers within HP E1300/E1405 A16 Address Space 230 HP E1340A Register-Based Programming Appendix C...
  • Page 231 E1300/E1301 Instrument BASIC (IBASIC) External Computer over HP-IB to E1300/E1301 Mainframe or E1405/E1406 Command Module V/360 Embedded Controller (C-Size system) Table C-1. Computer Configurations used with the HP E1340A Computer Programming Method Base Address E1300/E1301 IBASIC...
  • Page 232: Computer Configurations

    VXI:WRITE (register access is over HP-IB). Embedded If the E1340A AFG is part of a C-Size VXI system, the fastest throughput is achieved using an embedded computer such as the HP E1480 V/360. The Computer embedded computer allows you to access the registers from the VXIbus...
  • Page 233: External Computer Programming

    IBASIC programming using absolute addressing or select code 8 is faster than either DIAG:PEEK? DIAG:POKE VXI:READ? VXI:WRITE because the registers are accessed from the VXIbus backplane rather than from the HP-IB. Also, are not parsed. READIO WRITEIO Appendix C HP E1340A Register-Based Programming 233...
  • Page 234: Programming Guidelines

    The ID Register The AFG’s ID Register indicates the classification, addressing mode, and the manufacturer of the device. Address 11 - 0 base + 00 Device Class Address Mode Manufacturer ID 234 HP E1340A Register-Based Programming Appendix C...
  • Page 235: The Device Type Register

    The Device Type The Device Type Register contains a model code which identifies the device. Register Address base + 02 Model Code Model Code. The model code of the HP E1340 AFG is FFA0 Appendix C HP E1340A Register-Based Programming 235...
  • Page 236: The Status Register

    (set it to one (1)) to indicate that a command or parameter is being processed. When Bit 7 is zero (0), bit 1 is invalid. This allows the AFG time to set those bits to the correct states based on the conditions they represent. 236 HP E1340A Register-Based Programming Appendix C...
  • Page 237: The Query Response Register

    SYSFAIL line. Writing a zero (0) allows the AFG to drive SYSFAIL during a reset. Every program (except "Querying AFG Parameters") in the “ Programming Examples” section begins by resetting the AFG. Appendix C HP E1340A Register-Based Programming 237...
  • Page 238: The Command And Parameter Registers

    The Input Data The Input Data Register is used to download amplitude points to RAM or directly to the AFG DAC. Register Address 15 - 12 Base + 0C Not Used Amplitude data 238 HP E1340A Register-Based Programming Appendix C...
  • Page 239: Command Descriptions And Formats

    Command Descriptions and Formats The AFG commands and parameters are in the form of opcodes and data bytes. Table C-2 lists the command opcodes and the format of the parameters. Appendix C HP E1340A Register-Based Programming 239...
  • Page 240 Table C-2. HP E1340A Command Opcodes and Parameter Formats Setting the function and loading RAM Command Opcode = 5 Weight DAC Source Download Mode Waveform selection (waveform EEPROM) Purpose 0 - Input Data 0 - waveform 0 0 0 0 - Sine wave...
  • Page 241 Table C-2. HP E1340A Command Opcodes and Parameter Formats (Cont’d) Setting the Attenuation Command Opcode = 4 Bit Weight Byte 1 -------> Atten Corr not used MS nibble of attenuation 0 - enable 20 dB 0 - enable sine Setting...
  • Page 242 Table C-2. HP E1340A Command Opcodes and Parameter Formats (Cont’d) Setting the Clock Source and Output Mode Command Opcode = 9 Byte 1 Weight Aux Out Aux In Level Clock Source Aux Out Aux In Purpose Level (Marker) 0 - Normal...
  • Page 243: Setting The Output Function And Loading Ram

    (RAM 0 through RAM 3). Each RAM is loaded from the waveform EPROM, from the Input Data Register, or from both. An example of this Sequence feature is located in the “Example Programs” section. Appendix C HP E1340A Register-Based Programming 243...
  • Page 244: Setting The Signal Frequency

    15 MHz. At 10.48576 kHz, each amplitude point is output once. At lower frequencies, some or all points may be output more than once. At higher frequencies, some points are skipped on each repetition. 244 HP E1340A Register-Based Programming Appendix C...
  • Page 245: Setting The Output Attenuation

    50 : Atten = (2 / 5.1175) * 2047 = 03 + 128 = 131 byte 1 byte 2 128 is added to set bit 7, which turns the 20 dB attenuator off. Appendix C HP E1340A Register-Based Programming 245...
  • Page 246: Setting The Amplitude Offset

    / .0025) * 10) + 2048 Offset with 20 dB attenuation into open circuit: Offset = ((V / .005) * 10) + 2048 Offset is the offset value set from the Parameter Register and is the desired offset. 246 HP E1340A Register-Based Programming Appendix C...
  • Page 247: Setting The Sweep Rate

    "Aux In" BNC port is low. The burst mode is set with the output mode bytes covered in the next section. The “ Example Programs” section demonstrates how to set up internal and external triggered bursts. Appendix C HP E1340A Register-Based Programming 247...
  • Page 248: The Afg Output Mode

    This source is set for the "direct DAC access" mode (bits 4 - 2 of byte 2). No clock - setting this condition stops the internal reference clock or the acceptance of an external clock. 248 HP E1340A Register-Based Programming Appendix C...
  • Page 249 RAM bank when the output function is set (see “ Setting the Output Function” ). The output mode (bits 4 - 2) or RAM size (bits 1 - 0) may override the RAM bank bits. Appendix C HP E1340A Register-Based Programming 249...
  • Page 250 Sweep - this mode sets a linear sweep from the (start) frequency in Frequency Register 1 to the (stop) frequency in Frequency Register 2. The RAM bank bits (7 -6) select the waveform which is swept. 250 HP E1340A Register-Based Programming Appendix C...
  • Page 251: Starting The Waveform

    Each time opcode 13 and a query opcode are sent one byte is returned. For example, to query the frequency, opcode 13 must be sent four times (with a different query code) to return the four bytes which set the frequency. Appendix C HP E1340A Register-Based Programming 251...
  • Page 252: Afg Soft Reset

    This section contains generalized flowcharts and comments for performing these and other procedures such as querying parameters. The flowcharts identify the registers used and the status bits monitored to ensure proper execution of the program. 252 HP E1340A Register-Based Programming Appendix C...
  • Page 253: Afg Reset Sequence

    AFG from asserting SYSFAIL . Writing a "0" to bit 0 turns the reset function off. 4. Bit 2 of the Status Register is monitored to determine when the reset is finished. 5. Writing a "0" to bit 1 re-enables SYSFAIL. Appendix C HP E1340A Register-Based Programming 253...
  • Page 254: Configuring The Afg

    4. Repeated passes through the flowchart are made until each AFG parameter (e.g. function, frequency, etc.) has been set. 254 HP E1340A Register-Based Programming Appendix C...
  • Page 255: Querying Afg Parameters

    3. Status Register bit 0 is monitored to determine when the query opcode can be written to the Parameter Register. 4. Status bit 1 is monitored to determine when the response to the query is in the Query Response Register. Appendix C HP E1340A Register-Based Programming 255...
  • Page 256: Example Programs

    Example Programs The examples in this section program the E1340A AFG at the register level. The program listings are HP Instrument BASIC (IBASIC) programs, and are contained on the example programs disk HP P/N E1340-10035. C and QuickBASIC versions of these programs are on example programs disk HP P/N E1340-10036.
  • Page 257 Mode: 0 - Continuous (fixed) 4 - Triggered burst 1 - FSK 5 - Sweep 2 - Wave hop 6 - Direct DAC access 3 - Single burst 7 - Fast frequency change Appendix C HP E1340A Register-Based Programming 257...
  • Page 258: Generating A Sine Wave

    160 END 170 ! C and QuickBASIC The C program RGBSINE.C is in directory "CPROG", and the Programs QuickBASIC program RGBSINE.BAS is in directory "QBPROG" on the example program disk HP P/N E1340-10036. 258 HP E1340A Register-Based Programming Appendix C...
  • Page 259: Multiple Waveforms

    1/2 of the programmed frequency. If four waveform segments (RAM 0 through RAM 3) are used, the output frequency is 1/4 of the programmed frequency. The actual frequency of the waveform in this program is 250 Hz. Appendix C HP E1340A Register-Based Programming 259...
  • Page 260: Internally Triggering A Burst Of Cycles

    The C program MULTFUNC.C is in directory "CPROG", and the Programs QuickBASIC program MULTFUNC.BAS is in directory "QBPROG" on the example program disk HP P/N E1340-10036. Internally The following program outputs a burst of 50,000 waveform cycles when the AFG’s internal trigger occurs.
  • Page 261: Externally Triggering A Burst Of Cycles

    The C program INT_BRST.C is in directory "CPROG", and the Programs QuickBASIC program INT_BRST.BAS is in directory "QBPROG" on the example program disk HP P/N E1340-10036. Externally The following program outputs a burst of 50,000 waveform cycles when an external trigger is received.
  • Page 262: Frequency-Shift Keying

    The C program EXT_BRST.C is in directory "CPROG", and the Programs QuickBASIC program EXT_BRST.BAS is in directory "QBPROG" on the example program disk HP P/N E1340-10036. Frequency-Shift The following program sets the AFG’s frequency-shift keying mode. The frequency of the output signal switches between 1 kHz and 10 kHz Keying depending on the level of the signal applied to the "Aux In"...
  • Page 263: Waveform Hopping

    "Aux In" port in order to select a waveform with the other edge. 2. Sending any command to the AFG while the Wave hop mode is set aborts the mode. Appendix C HP E1340A Register-Based Programming 263...
  • Page 264: Sweeping

    The C program WAVE_HOP.C is in directory "CPROG", and the Programs QuickBASIC program WAVE_HOP.BAS is in directory "QBPROG" on the example program disk HP P/N E1340-10036. Sweeping The following program generates a linear sweep from 1 kHz to 10 kHz in 5 seconds.
  • Page 265: Gating The Output

    C and QuickBASIC The C program GATE.C is in directory "CPROG", and the QuickBASIC Programs program GATE.BAS is in directory "QBPROG" on the example program disk HP P/N E1340-10036. Appendix C HP E1340A Register-Based Programming 265...
  • Page 266: Downloading An Arbitrary Waveform

    270 FOR I=0 TO 4095 WRITEIO -9826,Base_addr+12;Waveform(I) 290 NEXT I 300 !Set the frequency (frequency register 1) 310 Frequency1(10000) !10 kHz 320 !Set amplitude, offset, impedance, correction 330 Amplitude(5,0,50,0) !5 Vpk, 0V, 50 ohms, correction enabled 266 HP E1340A Register-Based Programming Appendix C...
  • Page 267 4. All AFG clock sources and modes (Table C-2) are applicable for arbitrary waveforms. C and QuickBASIC The C program ARBWAVE.C is in directory "CPROG", and the Programs QuickBASIC program ARBWAVE.BAS is in directory "QBPROG" on the example program disk HP P/N E1340-10036. Appendix C HP E1340A Register-Based Programming 267...
  • Page 268: Fast Frequency Changes

    IF POS(S$,"!") THEN S$=S$[POS(S$,"!")+1] !set string not to include ! ENTER S$;Freq,Duration !enter frequency and duration Frequency1(Freq) !write frequency byte WAIT Duration 250 END LOOP 260 Check_done 270 Done:DISP "END OF FREQUENCY FILE REACHED" 280 END 268 HP E1340A Register-Based Programming Appendix C...
  • Page 269 FOR I=1 TO 20 Freq=10000.+RND*10000. Duration=1+RND OUTPUT @F;VAL$(Freq)&","&VAL$(Duration) NEXT I 100 ASSIGN @F TO * 110 ASSIGN @F TO "Fdata" 120 FOR I=1 TO 20 ENTER @F;Line$ PRInt Line$ 150 NEXT I 160 END Appendix C HP E1340A Register-Based Programming 269...
  • Page 270 (Table C-2) are ignored. C and QuickBASIC The C program FASTFREQ.C is in directory "CPROG", and the Programs QuickBASIC program FASTFREQ.BAS is in directory "QBPROG" on the example program disk HP P/N E1340-10036. 270 HP E1340A Register-Based Programming Appendix C...
  • Page 271: Sending Data Directly To The Dac

    The output remains at the last level written to the DAC. The ’Direct DAC access’ mode is useful for setting the output to a given level before a burst occurs. Appendix C HP E1340A Register-Based Programming 271...
  • Page 272: Example Program Subprograms

    The C program DACDRIVE.C is in directory "CPROG", and the Programs QuickBASIC program DACDRIVE.BAS is in directory "QBPROG" on the example program disk HP P/N E1340-10036. Example Program The following file contains the subprograms used by the preceding example programs.
  • Page 273 550 ! 560 SUB Frequency1(Freq1) 570 Frequency1: !Subprogram which sets the output frequency using frequency !register 1. COM Base_addr Freq=(Freq1*100) C$=DVAL$(Freq,16) 630 !Load the frequency value Write_reg(8,1) Write_reg(10,IVAL(C$[1;2],16)) Write_reg(10,IVAL(C$[3;2],16)) Write_reg(10,IVAL(C$[5;2],16)) Write_reg(10,IVAL(C$[7;2],16)) Check_done 700 SUBEND Appendix C HP E1340A Register-Based Programming 273...
  • Page 274 Offset=(Offset/.0025)+2048 1010 ELSE 1020 Atten=Atten+(Ampl/.51175)*2047 1030 C$=DVAL$(Atten,16) 1040 Offset=((Offset/.0025)*10)+2048 1050 END IF 1060 CASE ELSE 1070 IF Ampl>1.0235 OR Offset>1.0235 THEN 1080 Atten=Atten+(Ampl/10.235)*2047 1090 C$=DVAL$(Atten+32768,16) !32768 = no attenuation 1100 Offset=(Offset/.005)+2048 1110 ELSE 274 HP E1340A Register-Based Programming Appendix C...
  • Page 275 1460 !Load the phase increment, tic count, and sweep type value 1470 Write_reg(8,7) 1480 Write_reg(10,IVAL(C$[1;2],16)) !phase increment 1490 Write_reg(10,IVAL(C$[3;2],16)) !phase increment 1500 Write_reg(10,IVAL(C$[5;2],16)) !phase increment 1510 Write_reg(10,IVAL(C$[7;2],16)) !phase increment 1520 Write_reg(10,BINAND(Tic_cnt+1,255)) !tic count 1530 Write_reg(10,0) !linear sweep 1540 Check_done Appendix C HP E1340A Register-Based Programming 275...
  • Page 276 !External 1860 Clock=Clock+1 1870 CASE 1 !Gated 1880 Clock=Clock+9 1890 CASE 2 !Burst 1900 Clock=Clock+16 1910 CASE 3 !Internal (default) 1920 Clock=Clock+24 1930 CASE 4 !Input Data Register 1940 Clock=Clock+32 1950 END SELECT 276 HP E1340A Register-Based Programming Appendix C...
  • Page 277 !Single burst 2300 Out_mode=Out_mode+12 2310 CASE 4 !Triggered burst 2320 Out_mode=Out_mode+16 2330 CASE 5 !Sweep 2340 Out_mode=Out_mode+20 2350 CASE 6 !Direct dac access 2360 Out_mode=Out_mode+24 2370 CASE 7 !Fast frequency change 2380 Out_mode=Out_mode+28 Appendix C HP E1340A Register-Based Programming 277...
  • Page 278 2690 CALL Read_status(Pass_fail,Ready,Done) 2700 UNTIL Pass_fail 2710 SUBEND 2720 ! 2730 SUB Check_done 2740 Check_done: !Monitors command completion 2750 REPEAT 2760 CALL Read_status(Pass_fail,Ready,Done) 2770 UNTIL Done 2780 SUBEND 2790 ! 2800 SUB Check_ready 278 HP E1340A Register-Based Programming Appendix C...
  • Page 279 2850 SUBEND 2860 ! 2870 SUB Read_status(Pass_fail,Ready,Done) 2880 Read_status:!Subprogram which reads the arb’s Status Register 2890 COM Base_addr 2900 Status=READIO(-9826,Base_addr+4) 2910 Ready=BIT(Status,0) 2920 Pass_fail=BIT(Status,2) 2930 Done=BIT(Status,7) AND Ready 2940 Qryrdy=BIT(Status,1) AND Done 2950 SUBEND Appendix C HP E1340A Register-Based Programming 279...
  • Page 280: Querying Afg Parameters

    Returns the tic count (sent as a one byte parameter query). Returns ’Byte 1’ (Table C-2) of the clock source and output mode. Mode Returns ’Byte 2’ (Table C-2) of the clock source and output mode. 280 HP E1340A Register-Based Programming Appendix C...
  • Page 281: Write_Reg

    PRInt Byte 190 SUBEND 200 ! 210 SUB Parm2(Byte1,Byte2) 220 Parm2: !Subprogram which queries two byte parameters COM Base_addr Write_reg(8,13) Write_reg(10,Byte1) Queryrdy Byte1=READIO(-9826,Base_addr+8) Byte1=BINAND(Byte1,255)*2^8 Write_reg(8,13) Write_reg(10,Byte2) Queryrdy Byte2=READIO(-9826,Base_addr+8) Byte2=BINAND(Byte2,255) Value=Byte1+Byte2 PRInt Value SUBEND Appendix C HP E1340A Register-Based Programming 281...
  • Page 282: 2580 Sub Write_Reg(Reg,Cp_Data)

    700 SUB Write_reg(Reg,Cp_data) 710 Write_reg: !Subprogram which writes data to command and parameter !registers COM Base_addr Check_ready WRITEIO -9826,Base_addr+Reg;Cp_data 760 SUBEND 770 ! 780 SUB Check_ready 790 Check_ready: !Monitors command and parameter execution REPEAT 282 HP E1340A Register-Based Programming Appendix C...
  • Page 283 (base + 08 ). Each time command opcode 13 and a query opcode are sent, one byte is returned. Thus, for multiple byte parameters, command opcode 13 must be sent for each byte queried. Appendix C HP E1340A Register-Based Programming 283...
  • Page 284 284 HP E1340A Register-Based Programming Appendix C...
  • Page 285 Index HP E1340A Arbitrary Function Generator User’s Manual drivers, downloading, 15 - 16 frequency modes, 94, 107, 156 - 157 frequency-shift keying, 83, 92, 156 *CLS, 188 - 189 high speed operation, 109 - 130 installation, 15 *DMC, 188 - 189...
  • Page 286 CALibration Subsystem, 142 - 145 list of, 188 CALibration:AC:BEGin, 142 CALibration:AC:POINt, 143 Computer Configurations, 18, 231 - 232 CALibration:DATA:AC, 143 Condition Register, 182, 205 CALibration:DATA[:DC], 143 reading, 205 Configuring the AFG, 254 CALibration:STATe:AC, 145 HP E1340A Arbitrary Function Generator User’s Manual Index...
  • Page 287 IBASIC program structure, 22 Documentation history, 10 Downloading INT_BRST, 260 AFG device drivers, 15 - 16 introductory, 36 arbitrary waveforms, 243, 266 - 267 LINSWEEP, 264 data using VXIbus backplane, 120 LRN, 38 Index HP E1340A Arbitrary Function Generator User’s Manual...
  • Page 288 ARB_GEN, 61 non-swept waveform, 155 ARB_HOP, 70 parameters, 244 ARBWAVE, 266 points, 94 BURST, 100 register, 250 CHARGE, 78 setting signal, 244 DACBLOK, 115 shift keying, 83, 92, 156, 262 DACDRIVE, 271 HP E1340A Arbitrary Function Generator User’s Manual Index...
  • Page 289 232 - 233 Microprocessor, purpose of, 214 declaring variables in COM memory, 234 MINimum and MAXimum Parameters in coupling groups, 136 select code 8, 232 - 233 subprograms, 256 using, 53 Index HP E1340A Arbitrary Function Generator User’s Manual...
  • Page 290 164 waveform, 56 waveform segment names, 161 OUTPut Subsystem, 147 - 148 Query Response Register, 237 OUTPut:IMPedance, 147 Questionable Signal Status Register, 181 OUTPut:LOAD, 148 QuickBASIC Language Example Programs HP E1340A Arbitrary Function Generator User’s Manual Index...
  • Page 291 READ, 234 - 237 external computers, 233 external triggered bursts, 247, 261 service request enable, 209 fast frequency changes, 268 - 270 standard event status, 207 frequency format, 244 standard event status enable, 208 Index HP E1340A Arbitrary Function Generator User’s Manual...
  • Page 292 SOURce:ARBitrary:DAC:SOURce, 149 SOURce:RAMP subsystem, 169 SOURce:ROSCillator subsystem, 170 - 173 SOURce:ARBitrary:DOWNload, 150 - 151 SOURce:SWEep subsystem, 173 - 176 SOURce:ARBitrary:DOWNload:COMPlete, 152 - 154 SOURce:FREQuency Subsystem, 153 - 158 SOURce:VOLTage subsystem, 177 - 181 HP E1340A Arbitrary Function Generator User’s Manual Index...
  • Page 293 85, 158 SWP_PVST Example Program, 90 *SRE, 188, 195 SYSTem Subsystem, 185 *SRE?, 188, 195 Standard Commands for Programmable Instruments SYSTem:ERRor?, 185 See SCPI Command SYSTem:VERSion?, 185 Index HP E1340A Arbitrary Function Generator User’s Manual...
  • Page 294 102, 138, 252 built-in, 73 - 74 cycle count, 99, 107 damped sine waves, 76 - 77 data, 150 - 151 downloading in memory, 120 - 122 executing several segments, 65 - 66 HP E1340A Arbitrary Function Generator User’s Manual Index...
  • Page 295 Index HP E1340A Arbitrary Function Generator User’s Manual...

Table of Contents