14.06.2014 Views

R&S WinIQSIM2 Software Manual - Rohde & Schwarz

R&S WinIQSIM2 Software Manual - Rohde & Schwarz

R&S WinIQSIM2 Software Manual - Rohde & Schwarz

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

R&S ® <strong>WinIQSIM2</strong><br />

Remote Control Commands<br />

R&S Signal Generator Waveform and List Format<br />

rad = grad * (pi / 180.0f);<br />

fprintf(fp, "%f %f\n", sin(rad), cos(rad));<br />

}<br />

fclose(fp);<br />

// SICO.wv<br />

// Generating a binary data set from the I/Q pairs in the file SICO.txt<br />

// and storing the result to file SICO.wv<br />

FILE *fp_sour, *fp_dest;<br />

float i_float, q_float;<br />

unsigned short i_usint, q_usint;<br />

fp_sour = fopen("SICO.TXT", "rt");<br />

if (fp_sour == 0)<br />

return -1;<br />

fp_dest = fopen("SICO.WV", "wb");<br />

if (fp_dest == 0)<br />

{<br />

fclose(fp_sour);<br />

return -1;<br />

}<br />

// Write required tags to waveform file<br />

fprintf(fp_dest, "{TYPE: SMU-WV,0}");<br />

fprintf(fp_dest, "{CLOCK: 10e6}");<br />

fprintf(fp_dest, "{SAMPLES: %d}", samples);<br />

// RMS, Peak<br />

fprintf(fp_dest, "{LEVEL OFFS: %f,%f}", -1.0f * 20.0f * log10(1.0f/sqrt(2.0f)), 0.0f);<br />

fprintf(fp_dest, "{WAVEFORM-%d:#", (samples * 4) + 1);<br />

for (i=0; i

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!