EasyManuals Logo

Agilent Technologies E8267C Programming Guide

Agilent Technologies E8267C
198 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
Page #174 background imageLoading...
Page #174 background image
168 Chapter 4
Downloading and Using Files
Downloading ARB Waveform Data
Downloading Using HP BASIC for UNIX
The following program uses HP BASIC for UNIX to download waveforms. The code is similar to that
shown for “Downloading Using HP BASIC for Windows” on page 166, but there is a formatting
difference in line 130 and line 140. As discussed at the beginning of this section, I and Q waveform data is
interleaved into one file in 2’s compliment form and a marker file is associated with this I/Q waveform file.
In the Output commands, USING "#,K" formats the data. The pound symbol (#) suppresses the automatic
end of line (EOL) output. This allows multiple output commands to be concatenated as if they were a single
output. The “K” instructs HP BASIC to output the following numbers or strings in the default format.
10 ! RE-SAVE "UNIX_file"
20 Num_points=200
30 ALLOCATE INTEGER Int_array(1:Num_points*2)
40 DEG
50 FOR I=1 TO Num_points*2 STEP 2
60 Int_array(I)=INT(32767*(SIN(I*360/Num_points)))
70 NEXT I
80 FOR I=2 TO Num_points*2 STEP 2
90 Int_array(I)=INT(32767*(COS(I*360/Num_points)))
100 NEXT I
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 generators memory catalog.
200 to 210: Sends the rest of the ASCII header.
230: Sends the binary data. Note that Psgb 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.
Program Comments (Continued)

Table of Contents

Other manuals for Agilent Technologies E8267C

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Agilent Technologies E8267C and is the answer not in the manual?

Agilent Technologies E8267C Specifications

General IconGeneral
BrandAgilent Technologies
ModelE8267C
CategoryPortable Generator
LanguageEnglish

Related product manuals