How to handle serial ports hardware interrupts 
Author Message
 How to handle serial ports hardware interrupts


I am newbie using Visual Basic, and I was trying to use it in a project
that uses a data acquisition board via a RS232 link.
But, reading the VB 5.0 online manual I realizaed that there isnt a
way  to handle hardware interrupts like C++ do.
Please, does anybody knows how to deal with this problem.


Fri, 14 Apr 2000 03:00:00 GMT  
 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
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)

Fri, 14 Apr 2000 03:00:00 GMT  
 [ 2 post ] 

 Relevant Pages 

1. Hardware-Access + Interrupt-Handling in Win32

2. Hardware-Access + Interrupt-Handling in Win32

3. How do I handle port interrupts ?

4. Efficient handling of strings from serial port device?

5. Serial Port error handling

6. Need help in Serial Port handling!

7. HELP: Serial port handling in VB 3.00?

8. script to handle a serial port

9. ocx that handles modem and serial port !!

10. I/O port, Parallel port, Serial port

11. Hooking powerbasic code to interrupt (hardware !)

12. Q: Hardware Interrupts under VB


Powered by phpBB® Forum Software