EasyManuals Logo

Agilent Technologies 33120A User Manual

Agilent Technologies 33120A
312 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 #260 background imageLoading...
Page #260 background image
. . . continued
for (loop = 211; loop <= 4000; loop++)
{
waveform[loop] = 0; /* Set remaining points to zero */
}
/* Call function to download the 4000 data points to volatile memory */
download_data(waveform, num_points);
/* Free memory allocated for data points */
free(waveform);
}
/**************************************************************************/
void download_data(float *waveform, int num_points)
{
/* Download the waveform array (4000 points) to volatile memory.
The function generator expects to receive the arb waveform data as
one contiguous block. To do this, suppress the carriage return (CR)
and line feed (LF) before downloading the data. */
static char state[2] = {13, 10}; /* ASCII 13 = carriage return
ASCII 10 = line feed */
/* First, disable EOI (End-or-Identify) and EOL (End-of-Line) */
IOEOI (ISC,0); IOEOL (ISC, " ", 0);
/* Send "DATA VOLATILE" header and suppress CR/LF */
printf("Downloading Arb...\n\n");
IOOUTPUTS (ADDR, "DATA VOLATILE,", 14);
/* Re-enable EOI and EOL for normal GPIB operation and send the data */
IOEOI (ISC,1); IOEOL (ISC, state, 2);
/* Use the IOOUTPUTA to output the waveform data as an ASCII array */
IOOUTPUTA (ADDR, waveform, num_points); printf("Download Complete\n\n");
/* Call the function to check for errors */
check_error("download_data");
}
/**************************************************************************/
Chapter 6 Application Programs
Downloading an Arbitrary Waveform over GPIB
258

Table of Contents

Other manuals for Agilent Technologies 33120A

Questions and Answers:

Question and Answer IconNeed help?

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

Agilent Technologies 33120A Specifications

General IconGeneral
BrandAgilent Technologies
Model33120A
CategoryInverter
LanguageEnglish

Related product manuals