Creating and Downloading Waveform Files

Downloading Waveform Data

Line

Code Description—Download the I/Q data

6Download the I/Q waveform data to the signal generator by using the function call (agt_waveformload) from the Agilent Waveform Download Assistant. Some of the arguments are optional as indicated below, but if one is used, you must use all arguments previous to the one you require.

Notice that with this function, you can perform the following actions:

download complex I/Q data

name the file (optional argument)

set the sample rate (optional argument)

If you do not set a value, the signal generator uses its preset value of 125 MHz (N5182A) or 100 MHz (E4438C/E8267D), or if a waveform was previously play, the value from that waveform.

start or not start waveform playback after downloading the data (optional argument) Use either the argument play or the argument no_play.

whether to normalize and scale the I/Q data (optional argument)

If you normalize and scale the data within the body of the code, then use no_normscale, but if you need to normalize and scale the data, use norm_scale. This normalizes the waveform data to the DAC values and then scales the data to 70% of the DAC values.

download marker data (optional argument)

If there is no marker data, the signal generator creates a default marker file, all marker set to zero.

To verify the waveform data download, see “Loading, Playing, and Verifying a Downloaded Waveform” on page 224.

7–9

If the download fails, display an error message.

Using Advanced Programming Languages

This procedure uses code from the C++ programming example “Importing, Byte Swapping, Interleaving, and Downloading I and Q Data—Big and Little Endian Order” on page 249.

For information on creating I/Q waveform data, refer to “Creating Waveform Data” on page 212.

There are two steps in the process of downloading an I/Q waveform:

1.Open a connection session.

2.Download the I/Q data.

1. Open a connection session with the signal generator.

The following code establishes a LAN connection with the signal generator or prints an error message if the session is not opened successfully.

Line

Code Description—Open a Connection Session

1char* instOpenString ="lan[hostname or IP address]";

//char* instOpenString ="gpib<primary addr>,<secondary addr>";

2INST id=iopen(instOpenString);

3if (!id)

4{

5fprintf(stderr, "iopen failed (%s)\n", instOpenString);

6return -1;

7}

Agilent N518xA, E8663B, E44x8C, and E82x7D Signal Generators Programming Guide

221

Page 231
Image 231
Agilent Technologies E8663B, N5183A manual Using Advanced Programming Languages, Line Code Description-Download the I/Q data

N5183A, N5183A MXG, E8663B, N5181A/82A specifications

Agilent Technologies is renowned for its innovative solutions in electronic test and measurement equipment. Among its offerings are several signal generators including the N5181A, N5182A, E8663B, and N5183A MXG. These models are distinguished not only by their performance but also by their versatility across various applications in communications, aerospace, and electronics.

The Agilent N5181A and N5182A, part of the MXG family, are highly versatile signal generators known for their exceptional frequency performance and flexibility. The N5181A operates from 100 kHz to 6 GHz, while the N5182A extends that range up to 12 GHz. They provide high fidelity signals with low phase noise, making them ideal for the development and testing of RF components and systems. These generators support a wide variety of modulation formats, including AM, FM, PM, and pulse modulation, catering to diverse application needs.

The E8663B, meanwhile, is designed for the range of 250 kHz to 3 GHz and is also recognized for its high-performance features. Its built-in capabilities for modulation make it effective for testing wireless devices, ensuring that signals can be simulated accurately in both laboratory and field environments. It is especially beneficial for users requiring a straightforward and efficient solution with high reliability.

The N5183A MXG signal generator enhances the lineup with frequency coverage up to 6 GHz and advanced capabilities. It integrates various modulation capabilities while ensuring high signal integrity. Its architecture is tailored for both production test environments and research applications, providing users with the flexibility to adapt to changing testing requirements.

Common characteristics across these models include a user-friendly interface that simplifies configuration and operation. They are often equipped with LAN and USB interfaces for easy remote control and integration into automated test systems. The robustness of these generators allows them to perform reliably in challenging environments, making them essential tools in laboratories, manufacturing floors, and field testing scenarios.

In summary, Agilent's signal generators, including the N5181A, N5182A, E8663B, and N5183A MXG, represent a blend of advanced technology, flexibility, and precision. These instruments are vital in facilitating the evolution of cutting-edge communication technologies, ensuring that designers and engineers can confidently meet the demands of modern electronics.