|
by
George Martin
Start
Program Requirements
Getting it all Set Up Programming
the Fundamental Modules Creating a
Prototype that Really Books Getting
Functional Visual Basic's Role
Picking up the Pace Sources
Off-the-Shelf
Data Acquisition Using Visual Basic
Over the years, Ive had several
requests for data-gathering programs, typically for factory-testing
applications. Each assembly was tested, and results were printed in
report form and filed away for trend analysis. Ten years ago, it was
a difficult task, requiring lots of custom programming, which meant
I had a reasonable chance of winning the contract.
Recently, however, Ive observed a change in the requests. Todays
typical user has a spreadsheet and can graph data quite well, thank
you very much. Also, most data-acquisition systems advertise easy-to-use
interfaces.
Factor in the lower cost and higher power of todays desktop
computers, and youve got a changed market. Fewer companies are
willing to spend large amounts of money on custom hardware and software
development. You have the choice to adapt or die.
This month, Id like to participate in this new world order
or at least the embedded corner of it. Ive been threatening
to write a general-purpose data logger, so here we go. My goal is
to take an off-the-shelf, data-acquisition board, combine it with
some Visual Basic (VB) software, and chart the data. Id like
to develop generic code for this article so that you can easily alter
my work to suit your needs. (If you wish to compile the code, download
the source code because it has not been altered, as the Listings
have been, for viewing.)
Ive done some work with the Micromint
Answer MAN modules and would like to use them as the basis for
the data-acquisition system. Theyre low cost and powerful. Ill
let you decide if theyre easy to use.
Im going to use a modular design for the critical interfaces
to all the major components so they can be easily rewritten. VB requires
a modular discipline to develop a good design. Adapting it to your
hardware should be straightforward.
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.
|