EasyManua.ls Logo

Rohde & Schwarz SMBV100A - Page 470

Rohde & Schwarz SMBV100A
780 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...
Remote Control Commands
R&S
®
SMBV100A
453Operating Manual 1407.6062.32 ─ 08
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.
Note: There is no readable representation for binary values in this document. This is
why we use the sequence IQIQIQ to characterize the binary code in the present
example!
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");
if (fp == 0)
return;
for (i=0; i<samples; i++)
{
grad = (360.0 / (float)samples) * (float)i;
R&S Signal Generator Waveform and List Format

Table of Contents

Other manuals for Rohde & Schwarz SMBV100A

Related product manuals