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.

visual basic (MSComm)

Status
Not open for further replies.

dodong15

Newbie level 3
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.
 

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 :cry:

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.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top