Example Programs; Opcode/Parameter Quick Reference - HP E1340A User Manual

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

Advertisement

Example Programs

IBASIC Subprograms
Opcode/Parameter
Quick Reference
256 HP E1340A Register-Based Programming
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.
The examples in this section include:
Generating a Sine Wave
Multiple Waveforms
Internally Triggering a Burst of Cycles
Externally Triggering a Burst of Cycles
Frequency-Shift Keying
Waveform Hopping
Sweeping
Gating the Output
Downloading an Arbitrary Waveform
Fast Frequency Changes
Sending Data Directly to the DAC
Querying AFG Settings
The IBASIC programs, which are based on the flowcharts found in the
" Program Timing and Execution" section, pass opcodes and parameters to
a series of subprograms. The subprograms are in a separate file (file name
"SUBS") that is accessed by each IBASIC program. The subprograms are
listed after the program "Sending Data Directly to the DAC".
Table C-3 lists the command opcodes and parameter values (where
applicable) as they are used in the example programs.
Appendix C

Advertisement

Table of Contents
loading

Table of Contents