Demo Software Description
Home :: Linux
:: Demo Software
Demo Software Description
XDScope Source Code Overview
File Overview
| File |
Purpose |
| Hwmgrdlg.cpp |
The wxWindows interface that shows up when you initially run the program |
| Xprog.cpp |
Core program source code |
| Inputhandler.cpp |
Handles input for the main application window |
| Painthandler.cpp |
Handles redrawing the trace lines in the main application window |
| Dsp.cpp |
Class that interfaces to the hardware |
| Globals.cpp |
Miscellaneous global variables |
Program Execution Overview
The program begins execution in Onlnit in Hwmgrdlg.cpp. This bring up the
wxWindows dialog interface that you see at the beginning of the program (see Figure 1).

Figure 1: wxWindows dialog interface
|
After the user enters the desired parameters into the dialog, the program then calls
RunXDScope, which is located in xprog.cpp.
RunXDScope then
initializes and creates the primary display window,
and assigns the parameters entered in the HwMgr dialog interface to the DSP class.
Then, the DSP Hardware Initialization begins.
The board is assigned a board handle,
and the board is reset.
The DSP COFF file entered in the HwMgr dialog is downloaded to the DSP,
the selected processors are reset,
and all the variables needed to run the DSP are downloaded.
The selected processors are run,
and thus the data transfer loop
begins. When the DSP signals that it is ready,
a buffer of data is uploaded to the host PC,
and the display is updated.
After the user presses a key,
the program breaks out of the data transfer loop
and stops the DSP hardware.
XDScope then closes down the main window
and exits.
|
|
|
|
Hypersignal is a registered trademark of Hyperception. Signalogic, DirectDSP, and DSPower are registered trademarks, and VDS, DirectRT, SigBook, Visual Bench, and Real-Time Convolver are trademarks of Signalogic. MATLAB is a registered trademark of The MathWorks. Telogy Networks is a registered trademark of Texas Instruments-Telogy. LabVIEW is a registered trademark of National Instruments.
Windows and Visual Studio are trademarks of Microsoft.
Some of the pictures used on this website Copyright © 2002 by Daniel Speck at
FreeStockPhotos.com
|