EasyManuals Logo

Keysight Technologies N5166B CXG Programming Guide

Keysight Technologies N5166B CXG
398 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 #256 background imageLoading...
Page #256 background image
256 Keysight CXG, EXG, and MXG X-Series Signal Generators Programming Guide
Creating and Downloading Waveform Files
Programming Examples
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
interleaved IQ
// data. The I/Q data is signed short integers (16 bits).
// The data has values scaled between +-32767 where
// DAC Value Description
// 32767 Maximum positive value of the DAC
// 0 Zero out of the DAC
// -32767 Maximum negative value of the DAC
// The internal arb expects the data bytes to be in Big Endian
format.
// This is opposite of how short integers are saved on a PC
(Little Endian).
// For this reason the data bytes are swapped before being saved.
// Find the Maximum amplitude in I and Q to normalize the data
between +-1
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] )

Table of Contents

Other manuals for Keysight Technologies N5166B CXG

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Keysight Technologies N5166B CXG and is the answer not in the manual?

Keysight Technologies N5166B CXG Specifications

General IconGeneral
BrandKeysight Technologies
ModelN5166B CXG
CategoryPortable Generator
LanguageEnglish

Related product manuals