Jump to content

How to write/read from COM port in VB.net xpress 2008

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
3 replies to this topic

#1
Johnnyboy

Johnnyboy

    Learning Programmer

  • Members
  • PipPipPip
  • 56 posts
Hey everyone.

I need to be able to write information, just simple lines of text, to the COM port on a Dell machine and then receive back a response from that same COM port. I need to do this from VB 2008 express edition.

What I'd be communicating with is a piece of machinery hooked up to the COM port that engraves metal parts.

I just need a start. Like what namespaces I should be using, or is it not even possible. Or a better suggestion then VB?

Thanks for the help,
:D When things work the way they should it's a wonderful thing! It's the should part that gets me.

#2
Guest_Jordan_*

Guest_Jordan_*
  • Guests
Here are some samples that you can use/download:

Download details: Visual Basic .NET Code Sample: Using the COM Port in VB.NET
VB Sample Code: Using the COM port in VB.NET, from Microsoft - Free Downloads on ZDNet | Shareware, Trialware, Evaluation Software

#3
computerdiva

computerdiva

    Newbie

  • Members
  • Pip
  • 5 posts
the info from this url explains the process of initializing the com port. it isn't using VB, but it might give you some ideas.
Opening a communications port

#4
brainworks

brainworks

    Newbie

  • Members
  • Pip
  • 2 posts
i wrote a dll that can help u on this ,this dll do all what u want it to do
this is very simple email me your email address then i can send u the dll and how to implemt this i found that the serial port programming can be a bit (S&*(&(& if you are new to RS232 Comminication . that's why i wrote this .dll to help me. netsoftwaresolutions@webmail.co.za all for the best on your project