EasyManua.ls Logo

Keysight Technologies N5166B CXG - Page 285

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
Loading...
Keysight CXG, EXG, and MXG X-Series Signal Generators Programming Guide 285
Creating and Downloading Waveform Files
Programming Examples
byte swapping and interleaving for little endian order data
I and Q interleaving for big endian order data
binary data file storing to a PC or workstation
reversal of the data formatting process (byte swapping, interleaving, and
normalizing the data)
function main
%
% Program name: offset_iq_ml
% Using MatLab this example shows how to
% 1.) Create a simple IQ waveform
% 2.) Save the waveform into the EXG/MXG Internal Arb format
% This format is for the N5182B
% 3.) Load the internal Arb format file into a MatLab array
% 1.) Create Simple IQ Signal
*****************************************
% This signal is a single tone on the upper
% side of the carrier and is usually refered to as
% a Single Side Band Suppressed Carrier (SSBSC) signal.
% It is nothing more than a cosine wavefomm in I
% and a sine waveform in Q.
%
points = 1000; % Number of points in the waveform
cycles = 101; % Determines the frequency offset from the
carrier
phaseInc = 2*pi*cycles/points;
phase = phaseInc * [0:points-1];
Iwave = cos(phase);
Qwave = sin(phase);
% Alternate way to calculate the waveform RMS voltage

Table of Contents

Other manuals for Keysight Technologies N5166B CXG

Related product manuals