![Rohde & Schwarz SMBV100A Скачать руководство пользователя страница 544](http://html1.mh-extra.com/html/rohde-and-schwarz/smbv100a/smbv100a_operating-manual_1477735544.webp)
Remote Control Commands
R&S
®
SMBV100A
529
Operating Manual 1176.8016.02 ─ 17
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
Содержание SMBV100A
Страница 1: ...R S SMBV100A Vector Signal Generator Operating Manual Operating Manual 1176 8016 02 17 ÚÞ 2 ...
Страница 31: ...Contents R S SMBV100A 16 Operating Manual 1176 8016 02 17 ...
Страница 129: ...Manual Operation R S SMBV100A 114 Operating Manual 1176 8016 02 17 Legend of Front Panel Controls ...