192
SDA-OM-E Rev H
//------------------------------------------------------------------------------------------
// FastWavePortClient.cpp :
//
// Prototype C++ client application for "Fast Wave Port' Math Processor
//
// Compatibility:
// Microsoft Visual C++ 6.0, 7.1
// MinGW 'gcc' based compiler (free download from
www.mingw.org
)
// Compile with: mingw32-c++ -o fastWavePortClient.exe fastwaveportclient.cpp
//------------------------------------------------------------------------------------------
#include "windows.h"
#include <stdio.h>
//------------------------------------------------------------------------------------------
// FastWavePort header, describes various properties of the waveform passed to the user-
processing
// function. Also used to carry the properties of the processed waveform back to the DSO.
//
#define FLAGS_OUTPUT_VALID 0x01
typedef unsigned __int64 lecTimeStamp;
lecTimeStamp lecTimeStampOneSecond = 1000000000; // 1 ns units in a second
#pragma pack(push, 4) // pack on 4-byte boundaries (Important!)
struct CDescHeader
{
int descVersion; // header version number
int flags; // misc. flags indicating the status of input, and how to treat the output
int headerSize; // size of the header, data starts immediately after the hdr.
int windowSize; // total size of the window ( data)
int numSamples; // total number of samples in the input waveform
int segmentIndex; // index of this segment, usually zero when input waveform is not a
sequence
int numSweeps;
int _dummy1; // not used
double verGain; // scale factor that relates integer sample data values to the vertical
units of the waveform.
double verOffset; // vertical offset (in vertical units, e.g. Volts) of the waveform
double verResolution; // vertical resolution of the measurement system (also in vertical
units)
double horInterval; // scale factor that relates integer sample indices to the horizontal units
of the waveform.
double horOffset; // horizontal offset (in horizontal units, e.g. seconds) of the waveform
double horResolution; // horizontal resolution of the measurement system (also in
horizontal units)
lecTimeStamp trigTime; // trigger time, units of 1ns since 00:00:00 on Jan 1st 2000, 64-bit
unsigned integer
char verUnit[48]; // vertical units of the waveform ("V" for example)
char horUnit[48]; // horizontal units of the waveform ("s" for example)
Summary of Contents for SDA
Page 1: ...SERIAL DATA ANALYZER OPERATOR S MANUAL December 2007 ...
Page 223: ...SDA Operator s Manual Example 6 SDA OM E Rev H 223 ...
Page 225: ...SDA Operator s Manual SDA OM E Rev H 225 ...
Page 246: ...246 SDA OM E Rev H ...
Page 247: ...SDA Operator s Manual Excel Example 5 Using a Surface Plot SDA OM E Rev H 247 ...
Page 279: ...SDA Operator s Manual Convolving two signals SDA OM E Rev H 279 ...
Page 310: ...The jitter wizard is accessed from the Analysis drop down menu 310 SDA OM E Rev H ...
Page 327: ...SDA Operator s Manual SDA OM E Rev H 327 ...
Page 328: ...328 SDA OM E Rev H ...
Page 394: ...394 SDA OM E Rev H ...