288
aPPenDix B
% T he internal arb format is a single waveform
containing interleaved IQ
% d ata. The I/Q data is signed short integers
(16bits).
% 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
% T he internal arb expects the data bytes to be in Big
Endian format.
% T his is opposite of how short integers are saved on
a PC (Little Endian).
% F or this reason the data bytes are swapped before
being saved.
% Interleave the IQ data
waveform(1:2:2*points) = Iwave;
waveform(2:2:2*points) = Qwave;
%[Iwave;Qwave];
%waveform = waveform(:)';
% Normalize the data between +-1
wav eform = waveform / max(abs(waveform)); % Watch out
for ...