User`s manual

Writing Custom Applications
The Wave Example for Linux
With the release of Linux support for Malibu and for Innovative products, there are versions of the example programs for
this platform. This section discusses the Linux Wave example.
The ApplicationIo Class
Because we designed the original examples to separate Malibu and Baseboard functionality into a portable class, this code
can move to the Linux example unchanged. So the above discussion of the features of the ApplicationIo class is directly
applicable to the Linux example. In fact, the code itself is shared between the platforms.
User Interface
Again, much of the Wave example's
interface is the same as that of the Snap
example described above. An exception
is the “Waveform Data Source” section
that configures the output waveform.
There are two potential sources for a
waveform. The first is the FPGA can
generate a test waveform internally that
is either a ramp or the sum of two sine
waves. The FPGA group allows this to
be configured. If the Enable box is
checked the logic generator will be used.
Alternatively the software can generate a
waveform to be played. This is
configured by the “Software” section.
The frequency and amplitude of the
wave can be controlled, or the data can
be read from a file.
A single block is pre-calculated with this
waveform and sent when data is needed.
This avoids issues with the speed of
calculation of a buffer when data is
required, at the cost of some flexibility.
X5-GSPS User's Manual 65