Operational Notes; Data Length Limitations; Performance; Choice Of Programming Language - LeCroy SDA Operator's Manual

Serial data analyzer
Table of Contents

Advertisement

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 DSO will wait for the custom processing
function to complete. This prevents the DSO 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.

Data Length Limitations

The size of the memory window is fixed at 80 Mbytes, which equates to 40 MSamples.

Performance

This is by far the fastest way to process data using a user-defined algorithm on an X-Stream
DSO.

Choice of Programming Language

The system was designed for use with the C/C++ programming language. However, it is
theoretically possible for the processing to be implemented in any language that supports
Windows named events (Mutex) and can open a named memory-mapped file. No guarantee can
be given, however, as to the behaviour of the system using anything but C/C++.

Example Application

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 DSO 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 DSO application that processing is complete
SDA-OM-E Rev H
SDA Operator's Manual
"FastWavePort1File"
"FastWavePort1MutexDataAvailable"
"FastWavePort1MutexProcessingComplete"
191

Advertisement

Table of Contents
loading

Table of Contents