visual basic (MSComm)

Status
Not open for further replies.

dodong15

Newbie level 3
Joined
Feb 16, 2006
Messages
4
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,322
sir

i need help on visual basic MSComm serial control.

what are the syntax in initializing MSComm control?

any recommend site.....
 

i uploaded a basic code for sending & recieving data 2 weeks ago on edaboard search if you don't find it just say it
 

    dodong15

    Points: 2
    Helpful Answer Positive Rating
sir

i try to find your posted topic on basic code for sending & recieving data but i failed to find it

please post the topic again.
 

hi
search the web. you can find alot of codes.
 

    dodong15

    Points: 2
    Helpful Answer Positive Rating
u can use msdn.
try serching in msdn "mscomm"control.
u will get the examples
bye
 

I hope it's not too late!!
 

//You can define this Arrays
Flujos = Array("Sin control de flujo", "XON/XOFF", "HardwareCTS/RTS", "RTS/CTS, XON/XOFF")

Baudios = Array("110", "300", "600", "1200", "2400", "4800", "9600", "14400", "19200", "28800", "38400", "57600", "128000", "256000")

Paridad = Array("Par", "Marca", "Ninguna", "Impar", "Espacio")
ParidadEnglish = Array("E", "M", "N", "O", "S")
BitsData = Array("4", "5", "6", "7", "8")
BitsStop = Array("1", "1.5", "2")

// and a type of data SERIE with configuration parameters, so....
// To open and configure PORT

MSComm1.CommPort = Serie.Com
MSComm1.Settings = Baudios(Serie.Baud) & "," & ParidadEnglish(Serie.Paridad) & "," & BitsData(Serie.Datos) & "," & BitsStop(Serie.Stop)
MSComm1.InputLen = 0 ' Read entire buffer
MSComm1.InputMode = comInputModeText

MSComm1.PortOpen = True ' Opens the port
MSComm1.RThreshold = 1 ' Call **_OnComm for each char
d = MSComm1.Input ' empty the bufffer at start
MSComm1.InputLen = 1 ' Only read one char from buffer


//For closing PORT
MSComm1.PortOpen = False

It's very simple to use serial port in VB

hope it helps

Regards
 

I have attached some sample codes which will help you for kickstart. You can get more VB codes on
**broken link removed**
 

please get me a Visual Basic code for loan process in a bank
 

VisualBasic - Rs232 Comm Sample "Video Tutorials"
-- Language = Japan

and
 

please get me a Visual Basic code for loan process in a bank

Added after 49 seconds:

please get me a Visual Basic code for loan process in a bank. thanks
 

why do you choose for VB and not for VB.NET ?
 

hi, look this post
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…