Remote Control Commands
R&S
®
SMU200A
511Operating Manual 1007.9845.32 ─ 15
2. The file SICO.WV now contains the binary data set corresponding to the 20 I/Q pairs.
Before this binary data set can be further processed in step 3, the TYPE and the
CLOCK tag must be placed in front.
To enter the TYPE tag in the SICO.WV file an ASCII editor which is able to handle
binary data as well, e.g. the Microsoft Windows editor NOTEPAD.EXE, must be used.
Now the contents of the SICO.WV file read:
{TYPE: SMU-WV, 0}{CLOCK: 10e6} IQIQIQIQIQIQIQIQIQI ... IQ
To simplify our example the checksume is set to 0, i.e. the instrument does not eval-
uate a checksum.
3. The binary data must now be packed into a WAVEFORM tag with the following struc-
ture:
{WAVEFORM-Length: #IQIQIQIQIQIQIQIQIQI ... IQ}
The editor mentioned above which can handle binary data is now used to place the
string {WAVEFORM-81: # in front and the symbol } at the end of the data set.
The Length of the data set is the number of bytes of the data set and is calculated
as the sum of the number of I/Q pairs * 4 (2 bytes per I and per Q value) and one 1
byte for the symbol #.
In our example containing a sine and a cosine with 20 pairs for each wave, the result-
ing length is 81.
The contents of the waveform file SICO.WV for 20 I/Q pairs is now ready for operation
and reads.
{TYPE: SMU-WV,0}
{CLOCK: 10e6}
{WAVEFORM-81: #IQIQIQIQIQIQ ... IQ}
The tags TYPE, CLOCK and WAVEFORM are mandatory for each waveform. All other
tags are optional and can be inserted after the TYPE tag in arbitrary order, e.g.
{TYPE: SMU-WV,0}
{COMMENT: I/Q=sine/cosine, 20 points, clock 10 MHz}
{CLOCK: 10e6}
{Samples:20}
{WAVEFORM-81:#IQIQIQIQIQIQ ... IQ}
C-programs for creating the SICO.TXT file and for generating the waveform file
C-program for creating the file SICO.TXT containing 20 sine and cosine pairs:
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
void main(void)
{
const unsigned int samples = 20;
const float pi = 3.141592654;
float grad, rad;
FILE *fp;
int i;
fp = fopen("SICO.TXT", "w");
R&S Signal Generator Waveform and List Format