The code manual
- how to get started -
This program will be used at its full power only if the user is able to
tailor it to the personal demand. Because the program cannot cope with all situations
it will be necessary to modify the program source code and compile the program yourself.
The language is C++, but to modify the program only a basic knowledge of
C++ is required. To modify the program it is recommended to use Microsoft Visual Studio.
Apart from some standard libraries, a few functions of the MFC (microsoft foundation class) are used,
but I think these are rather selfexplaining when called and you probably don't need to messa
round with these program parts... Note though that the library for the PowerDAQ
board is used a lot of course. Slight modifications will be possible with this documentation,
but if you want to do deeper changes (e.g. add completely new functions) you should refer the the
DAQ software developer documentation. UEI provides some nice sample code, too.
To get started just open the project file named PDMFDOU.DSP and all source code files of this
program are loaded to the current workspace.
This includes the following source code files:
main.cpp - the main code
These header files:
myIncludes.h - a list of all required include files
myIO.h - header for the DAQ class
fio.cpp - header for FIO class
LED.h - header for LED class
ctrl.h - header for control class
These class implementations:
myIO.cpp implementation of the DAQ class
fio.cpp implementation of the FIO class
LED.cpp implementation of the LED class
ctrl.cpp implementation of the CTRL class
To tailor the program to your needs you will probably change the main.cpp,
ctrl.h|.cpp files.
NOTE I: In this code documentation section many parts of the code
are skipped by [...]. These parts will
probably not be changed by the user anyway and therefore are left out to focus more on
the important sections.
NOTE II: Not every character and the spacing in the online printed code got 100% correctly reprinted,
there are some characters inside the code that are not compatible to HTML
(and I was too lazy to adjust this issue manually).
NOTE III: The comments in the sources are mostly English, but there are also some German comments present.
Let's start looking to the main.cpp file on the
next page.
back to the Blue IO main page
back to main page and contact information
--
latest change: 26-08-2009 -- (c) U. Beckers
|