Keysight Technologies X-Series Programming Manual page 256

Signal generators
Hide thumbs Also See for X-Series:
Table of Contents

Advertisement

Creating and Downloading Waveform Files
Programming Examples
interleaved IQ
format.
(Little Endian).
between +-1
256
for( i=0; i<points; i++ )
{
phase = i * phaseInc;
Iwave[i] = cos(phase);
Qwave[i] = sin(phase);
}
// 2.) Save waveform in internal format **********************
// Convert the I and Q data into the internal arb format
// The internal arb format is a single waveform containing
// data. The I/Q data is signed short integers (16 bits).
// The data has values scaled between +-32767 where
//
DAC Value
//
32767
//
0
//
-32767
// The internal arb expects the data bytes to be in Big Endian
// This is opposite of how short integers are saved on a PC
// For this reason the data bytes are swapped before being saved.
// Find the Maximum amplitude in I and Q to normalize the data
maxAmp = Iwave[0];
minAmp = Iwave[0];
for( i=0; i<points; i++)
{
if( maxAmp < Iwave[i] )
maxAmp = Iwave[i];
else if( minAmp > Iwave[i] )
minAmp = Iwave[i];
if( maxAmp < Qwave[i] )
Keysight CXG, EXG, and MXG X-Series Signal Generators Programming Guide
Description
Maximum positive value of the DAC
Zero out of the DAC
Maximum negative value of the DAC

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents