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.

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.....
 

kordix

Member level 3
Joined
Jan 18, 2006
Messages
58
Helped
8
Reputation
16
Reaction score
4
Trophy points
1,288
Activity points
1,825
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

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 try to find your posted topic on basic code for sending & recieving data but i failed to find it

please post the topic again.
 

niket_304

Member level 4
Joined
Dec 21, 2005
Messages
72
Helped
3
Reputation
6
Reaction score
3
Trophy points
1,288
Activity points
2,002
u can use msdn.
try serching in msdn "mscomm"control.
u will get the examples
bye
 

kordix

Member level 3
Joined
Jan 18, 2006
Messages
58
Helped
8
Reputation
16
Reaction score
4
Trophy points
1,288
Activity points
1,825
I hope it's not too late!!
 

algilsan

Advanced Member level 4
Joined
Jan 20, 2002
Messages
116
Helped
7
Reputation
14
Reaction score
6
Trophy points
1,298
Location
chile
Activity points
1,078
//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
 

niket_304

Member level 4
Joined
Dec 21, 2005
Messages
72
Helped
3
Reputation
6
Reaction score
3
Trophy points
1,288
Activity points
2,002
I have attached some sample codes which will help you for kickstart. You can get more VB codes on
**broken link removed**
 

prana85

Newbie level 1
Joined
Apr 9, 2006
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,286
please get me a Visual Basic code for loan process in a bank
 

sinanweb

Junior Member level 2
Joined
Jun 8, 2003
Messages
22
Helped
2
Reputation
4
Reaction score
2
Trophy points
1,283
Activity points
179
VisualBasic - Rs232 Comm Sample "Video Tutorials"
-- Language = Japan :cry:

and
 

phamhoangdung

Newbie level 1
Joined
Apr 11, 2006
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,288
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
 

mobile-it

Advanced Member level 1
Joined
Apr 24, 2004
Messages
464
Helped
22
Reputation
44
Reaction score
8
Trophy points
1,298
Activity points
3,344
why do you choose for VB and not for VB.NET ?
 

scr_wld

Junior Member level 1
Joined
Dec 11, 2004
Messages
16
Helped
2
Reputation
4
Reaction score
2
Trophy points
1,283
Activity points
106
hi, look this post
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top