I/Q Data File Format (iq-tar)
R&S
®
FSV/A3000 I/Q
Analyzer
291
User Manual 1178.8536.02 ─ 01
Example: Element order for complex cartesian data (3 channels)
Complex data: I[channel no][time index], Q[channel no][time index]
I[0][0], Q[0][0], // Channel 0, Complex sample 0
I[1][0], Q[1][0], // Channel 1, Complex sample 0
I[2][0], Q[2][0], // Channel 2, Complex sample 0
I[0][1], Q[0][1], // Channel 0, Complex sample 1
I[1][1], Q[1][1], // Channel 1, Complex sample 1
I[2][1], Q[2][1], // Channel 2, Complex sample 1
I[0][2], Q[0][2], // Channel 0, Complex sample 2
I[1][2], Q[1][2], // Channel 1, Complex sample 2
I[2][2], Q[2][2], // Channel 2, Complex sample 2
...
Example: Element order for complex cartesian data (1 channel)
This example demonstrates how to store complex cartesian data in float32 format
using MATLAB
®
.
% Save vector of complex cartesian I/Q data, i.e. iqiqiq...
N = 100
iq = randn(1,N)+1j*randn(1,N)
fid = fopen('xyz.complex.float32','w');
for k=1:length(iq)
fwrite(fid,single(real(iq(k))),'float32');
fwrite(fid,single(imag(iq(k))),'float32');
end
fclose(fid)
I/Q Data Binary File