
Remote Control Commands
R&S
®
SMJ100A
508
Operating Manual 1403.7458.32 ─ 14
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;
fp = fopen("SICO.txt", "w");
if (fp == 0)
return;
for (i=0; i<samples; i++)
{
grad = (360.0f / (float)samples) * (float)i;
rad = grad * (pi / 180.0f);
fprintf(fp, "%f %f\n", sin(rad), cos(rad));
}
fclose(fp);
Waveform and List Format
Содержание SMJ100A
Страница 34: ...Preface R S SMJ100A 18 Operating Manual 1403 7458 32 14 Notes on Screenshots...
Страница 86: ...Preparing for Use R S SMJ100A 70 Operating Manual 1403 7458 32 14 LXI Configuration...
Страница 139: ...Manual Operation R S SMJ100A 123 Operating Manual 1403 7458 32 14 Legend of Front Panel Controls...
Страница 140: ...Manual Operation R S SMJ100A 124 Operating Manual 1403 7458 32 14 Legend of Front Panel Controls...
Страница 454: ...Instrument Function R S SMJ100A 438 Operating Manual 1403 7458 32 14 Baseband Signal Baseband Block...
Страница 826: ...Remote Control Commands R S SMJ100A 810 Operating Manual 1403 7458 32 14 UNIT Subsystem...
Страница 828: ...Maintenance R S SMJ100A 812 Operating Manual 1403 7458 32 14 Storing and Packing...
Страница 843: ...Hardware Interfaces R S SMJ100A 827 Operating Manual 1403 7458 32 14 Figure A 2 BERT circuit diagram BERT Connector...
Страница 844: ...Hardware Interfaces R S SMJ100A 828 Operating Manual 1403 7458 32 14 BERT Connector...