Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

I'm looking for VB progrimming with RS232

Status
Not open for further replies.

J_expoler2

Member level 4
Joined
May 10, 2003
Messages
77
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
619
Hi
I'm looking for VB progrimming with RS232
using Events on comm

thank
 

hai,

install msdn.the code is avilable in vb/sample dir
under mscomm dir
 

anyway if you are ging to do a real serious job don't use vb...
1. control and time response is not so deterministic
2. if you put the vb program in a "complex language system" (chinese for example) it will not work (or to make it works you have to do bad jobs a spend a lot of time)

bye
 

This may help you or try www.planetsourcecode.com
++++++++++++++++++++++++++++++++++++++
Private Sub acomm_OnComm()

Select Case acomm.CommEvent
' Handle each event or error by placing

' Errors
Case comEventBreak ' A Break was received.
Case comEventCDTO ' CD (RLSD) Timeout.
Case comEventCTSTO ' CTS Timeout.
Case comEventDSRTO ' DSR Timeout.
Case comEventFrame ' Framing Error.
Case comEventOverrun ' Data Lost.
Case comEventRxOver ' Receive buffer overflow.
Case comEventRxParity ' Parity Error.
Case comEventTxFull ' Transmit buffer full.
Case comEventDCB ' Unexpected error retrieving DCB
' Events
Case comEvCD ' Change in the CD line.
Case comEvCTS ' Change in the CTS line.
Case comEvDSR ' Change in the DSR line.
Case comEvRing ' Change in the Ring Indicator.
Case comEvReceive ' Received RThreshold # of chars.
Case comEvSend ' There are SThreshold number of characters in the transmit buffer.

Case comEvEOF ' An EOF character was found in the input stream.

End Select
End Sub
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top