Skip to Content
Computer Busses
book

Computer Busses

by William Buchanan
March 2000
Intermediate to advanced
632 pages
18h 6m
English
Butterworth-Heinemann
Content preview from Computer Busses
27

RS-232 Programming using Visual Basic

27.1 Introduction

This chapter discusses how Visual Basic can be used to access serial communication functions. Windows hides much of the complexity of serial communications and automatically puts any received characters in a receive buffer and characters sent into a transmission buffer. The receive buffer can be read by the program whenever it has time and the transmit buffer is emptied when it is free to send characters.

27.2 Properties

The Comm component is added to a form whenever serial communications are required (as shown in left-hand side of Figure 27.1). The right-hand side of Figure 27.1 shows its properties. By default, the first created object is named MSComm1 (the second is named MSComm2, and so ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Fieldbus and Networking in Process Automation

Fieldbus and Networking in Process Automation

Sunit Kumar Sen

Publisher Resources

ISBN: 9780080529721