EasyManua.ls Logo

Rohde & Schwarz R&S SMW200A - Page 321

Rohde & Schwarz R&S SMW200A
1403 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...
Configuring the Internal Baseband Source
R&S
®
SMW200A
321User Manual 1175.6632.02 ─ 30
Length = Number of I/Q pairs * 4 + 1 = 20*4 + 1 = 81 bytes
Place the string {WAVEFORM-81:# at the beginning of the data set
Place the symbol } at the end of the data set
The contents of the waveform file SICO.wv for 20 I/Q pairs is now ready for opera-
tion and reads:
{TYPE: SMU-WV,0}
{CLOCK: 10e6}
{LEVEL OFFS: 3.010300,0.000000}
{WAVEFORM-81:#I0Q0I1Q1...InQn}
Note: There is no readable representation for binary values in this document. This
is why we use the sequence I0Q0I1Q1...InQn to characterize the binary code in
the present example.
The following figure shows this waveform in a data editor.
Example: C-program for creating a waveform file
C-program SICO.cpp for creating the file SICO.txt containing 20 sine and cosine
pairs, converting them into binary data and creating the waveform file SICO.wv.
// SICO.cpp
// Defines the entry point for the console application
#include "stdafx.h"
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
int _tmain(int argc, _TCHAR* argv[])
{
const unsigned int samples = 20;
const float pi = 3.141592654f;
int i;
// SICO.txt
// Creating the file SICO.txt containing 20 sine and cosine pairs
float grad, rad;
FILE *fp;
Using the Arbitrary Waveform Generator (ARB)

Table of Contents