Operational Notes; Example Applications - LeCroy WaveMaster 8600A Operator's Manual

X-stream oscilloscopes
Table of Contents

Advertisement

D. At the end of the "Variable Value" string, append ;C:\MinGW\bin for the case of the
GNU C Compiler (GCC) for example.
E. Click OK.
5. Open the Command Prompt window (Start --> Programs --> Accessories --> Command
Prompt) and compile your application.
6. Run your application.

Operational Notes

Once FastWavePort is selected, the right-hand dialog shows the current settings. The first of these
is critical, and indicates the base name of the memory window and the two events, which are global
within the Windows O/S. This should be left at its default value and only changed if multiple
FastWavePort functions are used in parallel. Note that this name must match the base name used
in the client application.
The full names of these global objects are:
Memory Mapped File
Data Available Event
Processing Complete Event
The "Timeout" field specifies the amount of time that the scope will wait for the custom processing
function to complete. This prevents the scope from waiting indefinitely for a potentially
unforthcoming custom processing function. Be careful to set this value to something reasonable,
which means a time that is longer by a reasonable margin than the custom processing is ever
expected to take.

Example Applications

This simple C++ application may be used as a starting point for a custom processing function. It
demonstrates the following:
How to create handles to the global objects (the memory window and the two events)
How to read data from the memory window when the scope flags that it's available
How to scale the data into units of volts using data in the header that's stored at the
beginning of the memory window.
How to perform a simple processing function (in this case the absolute value)
How to define the physical units of the output of the processing function (in this case
'Amps')
How to flag to the scope application that processing is complete
//---------------------------------------------------------------------------------------
---
// FastWavePortClient.cpp :
//
WM-OM-E Rev I
X-Stream Operator's Manual
"FastWavePort1File"
"FastWavePort1MutexDataAvailable"
"FastWavePort1MutexProcessingComplete"
225

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents