EasyManua.ls Logo

Agilent Technologies N5183A User Manual

Agilent Technologies N5183A
366 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 #226 background imageLoading...
Page #226 background image
216 Agilent N518xA, E8663B, E44x8C, and E82x7D Signal Generators Programming Guide
Creating and Downloading Waveform Files
Creating Waveform Data
Line Code—Interleaving and Byte Swapping for Little Endian Order
20
21
22
23
24
25
26
27
28
29
30
char iqbuffer[NUMSAMPLES*4];
for(index=0; index<numsamples; index++)
{
short ivalue = idata[index];
short qvalue = qdata[index];
iqbuffer[index*4] = (ivalue >> 8) & 0xFF;
iqbuffer[index*4+1] = ivalue & 0xFF;
iqbuffer[index*4+2] = (qvalue >> 8) & 0xFF;
iqbuffer[index*4+3] = qvalue & 0xFF;
}
return 0;
Line Code Description—Interleaving and Byte Swapping for Little Endian Order
20 Define a character array to store the interleaved I and Q data. The character array makes byte swapping
easier, since each array location accepts only 8 bits (1 byte). The array size increases by four times to
accommodate two bytes of I data and two bytes of Q data.
21–29 Create a loop to do the following:
Save the current I data array value to a variable.
NOTE In rare instances, a compiler may define short as larger than 16 bits. If this condition exists,
replace short with the appropriate object or label that defines a 16- bit integer.
Save the current Q data array value to a variable.
Swap the low bytes (bits 0–7) of the data with the high bytes of the data (done for both

Table of Contents

Questions and Answers:

Agilent Technologies N5183A Specifications

General IconGeneral
Amplitude Accuracy±0.5 dB
I/Q ModulationYes
Modulation TypesAM, FM, PM, Pulse, FSK, PSK
Output Impedance50 ohm
Harmonics-30 dBc
Switching Speed (frequency)≤ 900 μs
Power Requirements100 to 240 VAC, 50/60 Hz
Subharmonics-60 dBc

Summary

Using IO Interfaces

Using LAN

Explains LAN interface setup, protocols, and configuration for remote control.

Programming Examples

Using GPIB

Covers GPIB interface setup, examples, and function statements.

LAN Programming Interface Examples

Provides examples for VXI-11, Sockets LAN, and related protocols.

Programming the Status Register System

Accessing Status Register Information

Details methods for monitoring conditions and accessing status information.

Creating and Downloading Waveform Files

Downloading Waveform Data

Details methods for downloading I/Q waveform data from simulation and programming environments.

Loading, Playing, and Verifying a Downloaded Waveform

Provides procedures for loading, playing, and verifying downloaded waveforms.

Creating and Downloading User-Data Files

Pattern RAM (PRAM) Data Downloads (E4438C and E8267D)

Explains how to download PRAM data for real-time Custom and TDMA modulation.

FIR Filter Coefficient Downloads (N5182A, E4438C and E8267D)

Covers downloading FIR filter coefficients for specific models and options.

Save and Recall Instrument State Files

Describes saving and recalling instrument state settings using SCPI commands.

User Flatness Correction Downloads Using C++ and VISA

Details downloading user flatness correction values using C++ and VISA.

Data Transfer Troubleshooting (N5182A, E4438C and E8267D Only)

Provides troubleshooting steps for data transfer issues on specific models.

Related product manuals