EasyManuals Logo

LeCroy WavePro 7300A User Manual

Default Icon
437 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 #229 background imageLoading...
Page #229 background image
X-Stream Operator’s Manual
WM-OM-E Rev I 227
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)
};
#pragma pack(pop) // restore packing
//---------------------------------------------------------------------------------------
---
// The buffer size is 80MB (40,000,000 samples, stored as short integers) plus 0x1000
// bytes for the header.
const unsigned long HEADER_SIZE = 0x1000
const unsigned long MEM_MAP_FILE_SIZE = 80000000 + HEADER_SIZE; // = 40MSamples,
// or 80MBytes
int main(int argc, char* argv[])
{
// names based on 'FastWavePort1' name defined in Processor setup.
char szMapFileName[] = "FastWavePort1File";
char szMutexDataAvailableName[] = "FastWavePort1MutexDataAvailable";
char szMutexProcessingCompleteName[] = "FastWavePort1MutexProcessingComplete";
// Associate shared memory file handle value.
HANDLE m_hMMFile = CreateFileMapping ((HANDLE)0xffffffff, NULL, PAGE_READWRITE, 0,
MEM_MAP_FILE_SIZE, szMapFileName);
if(m_hMMFile == 0)
{
printf("Unable to create file mapping\n");
return 0;
}
// Map a view of this file for writing.
short *m_lpMMFile = (short *)MapViewOfFile (m_hMMFile, FILE_MAP_ALL_ACCESS, 0, 0, 0);
if(m_lpMMFile == 0)
{
printf("Unable to map view of file\n");
return 0;
}
// create/open events used for synchronization

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the LeCroy WavePro 7300A and is the answer not in the manual?

LeCroy WavePro 7300A Specifications

General IconGeneral
BrandLeCroy
ModelWavePro 7300A
CategoryTest Equipment
LanguageEnglish

Related product manuals