User`s manual

Writing Custom Applications
compiler implements the GUI differently, each version of the example project uses the same file to interact with the hardware
and acquire data.
Program Design
The Snap example is designed to allow repeated data reception operations on command from the host. As mentioned earlier,
received data can be saved as Host disk files. When using modest sample rates, data can be logged to standard disk files.
However, full bandwidth storage of multiple A/D channels can require up more capacity, so a dedicated RAID0 drive array
partitioned as NTFS for data storage may be required, or data may have to be cached online and stored after stopping data
flow. The example application software is written to perform minimal processing of received data and is a suitable template
for high-bandwidth applications.
The example uses various configuration commands to prepare the module for data flow. Parametric information is obtained
from a Host GUI application, but the code is written to be GUI-agnostic. All board-specific I/O is performed within the
ApplicationIo.cpp/.h unit. Data is transferred from the module to the Host as packets of Buffer class objects.
The Host Application
The picture to the right shows the main window of an X5 example (for the X5-400M). This form is from the designer of the
MSVC 9.0 version of the example, but the Borland version is similar. It shows the layout of the controls of the User
Interface.
User Interface
This application has five tabs. Each tab has its
own significance and usage, though few are
interrelated. All these tabs share a common
area, which displays messages and feedback
throughout the operation of the program.
Configure Tab
As soon as the application is launched, the
Configure tab is displayed. In this tab, a combo
box is available to allow the selection of the
device from those present in the system. All X5
family devices of whatever type share a
sequence of target number identifiers. The first
board found is Target 0, the second Target 1,
and so on.
Click the Open button to open the driver. To
change targets, click the Close button to close the driver, select the number of the desired target using the Target # combo
box, then click Open to open communications with the specified target module. The order of the targets is determined by the
X5-GSPS User's Manual 46