EasyManua.ls Logo

Agilent Technologies E4438C - Page 165

Agilent Technologies E4438C
208 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Downloading and Using Files
ARB Waveform Data Downloads
Chapter 4 159
Program Comments
10: Program file name
20: Sets the number of points in the waveform.
30: Allocates integer data array for I and Q waveform points.
40: Sets HP BASIC to use degrees for cosine and sine functions.
50: Sets up first loop for I waveform points.
60: Calculate and interleave I waveform points.
70: End of loop
80 Sets up second loop for Q waveform points.
90: Calculate and interleave Q waveform points.
100: End of loop.
120: Calculates number of bytes in IQ waveform.
130: Opens an I/O path to the signal generator using GPIB. 7 is the address of
the GPIB card in the computer, and 19 is the address of the signal
generator. This I/O path is used to send ASCII data to the signal generator.
140: Opens an I/O path for sending binary data to the signal generator.
150: Creates an ASCII string representation of the number of bytes in the
waveform.
160 to 170: Finds the number of digits in Nbytes.
190: Sends the first part of the SCPI command, MEM:DATA along with the
name of the file, data_file, that will receive the waveform data. The name,
data_file, will appear in the signal generator’s memory catalog.
200 to 210: Sends the rest of the ASCII header.
230: Sends the binary data. Note that ESGb is the binary I/O path.
240: Sends an End-of-Line to terminate the transmission.
250 to 260: Closes the connections to the signal generator.
290: End the program.

Table of Contents

Other manuals for Agilent Technologies E4438C

Related product manuals