EasyManuals Logo

LeCroy SDA User Manual

LeCroy SDA
397 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
Page #192 background imageLoading...
Page #192 background image
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 (header + 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)

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the LeCroy SDA and is the answer not in the manual?

LeCroy SDA Specifications

General IconGeneral
BrandLeCroy
ModelSDA
CategoryMeasuring Instruments
LanguageEnglish