Agilent Technologies 35670A Manual page 744

Dynamic signal analyzer gpib programming
Hide thumbs Also See for 35670A:
Table of Contents

Advertisement

Example Programs
ARBSRC
Comments for ARBSRC (continued)
Verify that a legal resolution value has been selected. An error message appears if an illegal
420 - 540
value is selected.
Allocate space for the tone data that will be loaded into the data register.
570
Compute the delta t (D) between time points in the tone data.
590
Compute the tone data for two tones. SIN(2*PI*Tones(T)*I*D5) generates a time
600 - 640
waveform for a tone. The first time through the loop generates time data for the first tone.
The second time through the loop, adds in time waveform data for the second tone.
Setup a display window.
670 - 710
If the program is running in Instrument BASIC on the analyzer, set the display format to
670 - 680
QUAD. Print to the lower half of the display.
If the program is running on an external controller, set the display to UPPER/LOWER format.
700
Print the first ten values in data register D1.
730 - 750
The data block format (FORMAT:DATA) is 64-bit binary.
780
Display Channel 1 time data in trace A.
810
Store Channel 1 time data in data register D1. The data register contains real data because we
860
saved baseband time data (start frequency = 0) in the data register.
Before a data register can be loaded with new data from GPIB, the register must be initialized so
it can accept the proper amount and representation of data. Use the CALC1:FEED command to
set the trace data to the type of data you will be putting in the data register, then save the trace into
the data register using the TRAC:DATA command.
TRAC:DATA D1,#0 uses the indefinite length block to load the data into data register D1. The #
890
identifies the data as block data, the "0" after the # indicates the indefinite length block. the last
byte of the output is a new line character sent with END.
Output the data in binary.
900
Output a line feed with EOI (new line) at the end of the data block.
910
F-6

Advertisement

Table of Contents
loading

Table of Contents