
How to handle serial ports hardware interrupts
Hi Pascal,
Normally, you don't want to try to handle interrupts yourself. Windows
imposes substantial penalties (and complexity) to this process.
Fortunately, however, for serial communications, Windows built-in interrupt
service routines are superior to any that you might, reasonably, code
yourself. Access to these can be via the Windows API (hard, but it can be
done), or by using a comms add-on. MSComm comes with the Pro or Enterprise
versions of VB. This is satisfactory for the majority of data acquisition
applications. There also are a number of commercial comms add-on
manufacturers that add additional capability.
I detail all of this, from the API through MSComm, and various commercial
add-ons, in my book (see below for information). I have a number of
project examples in my book that might be similar to what you have to do
(for example, I have a Data Logger example).
--
{*filter*} Grier
Author of: Visual Basic Programmer's Guide to Serial Communications,
ISBN 1-890422-25-8. Check my homepage at
http://www.*-*-*.com/
to order this book. For fastest delivery, order from the publisher at
http://www.*-*-*.com/ .
Contact me at:
Hard & Software
12962 West Louisiana Avenue
Lakewood, CO 80228
303-986-2179 (voice)
303-986-3143 (fax)