|
by Yuri Magda
Start ý The
Software ý The Input Signal Handler and
Interface ý Code Concerns ý The
Design and Details ý Sources and PDF
CODE CONCERNS
There are some notes concerning the program
code that Iýll cover that will hopefully be useful to you.
The first concerns the event handler
for the timer in the interface part of the code. I have established
a property interval value of 1000, which corresponds to one second.
You can establish other intervals of time for measurement, but take
into account that the minimal interval of time cannot be less than
55 ms. The hardware timer PC does not allow this interval to be less!
The second note is with developing the
interface. Iýve used the interface described here only as a sample.
Naturally, you can develop your own interface using other Delphi components.
You even design the diagram by means of a component TChart because
the GetData function can be used as a separate module.
Additionally, I would like to offer
the C++ fans a simple console application
written in Visual C++ 6.0 as an alternate for the control program
(see Listing 2). The input
signal handler is realized as function GetData (lines 25ý47
of Listing 2) and can be used separately while developing the application.
PREVIOUS
NEXT
Circuit Cellar provides up-to-date information for engineers. Visit
www.circuitcellar.com for
more information and additional articles.
For subscription information, call (860) 875-2199, subscribe@circuitcellar.com
or subscribe online.
ýCircuit Cellar, the Magazine for Computer Applications. Posted with
permission. |