Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sending and recieving information through com 1

Status
Not open for further replies.

Kryzsoccer

Programmer
Oct 15, 2002
85
US
I have a micro-controller called the HandyBoard(if you want to know more about it go to It connects into a serial interface by a telephone cord and the serial interface connects to my computer's Com 1. I would like to know if I could recieve information from my handyboard's sensors. I would also like to know how to run motors hooked up through the handyboard. Any help would be greatly appreciated, THANKS!
 
How do I use the MSComm control and where do I get it(I don't see it in the list of available controls).
 
click Project -> Components and then chose the MS Comm control from the list. there are several simple ms comm tutorials on the web(try searching on google). but if you only want to send data these few lines are enough:

mscomm.portopen = true
mscomm.output = "message to send" & chr(13)
mscomm.portopen = false

The chr(13) is VERY important as it sends line feed and will not work without it.
note that you must close the port before you try and open it. to set the properties (baud rate, comm port etc) look at the properties for the control on your form.

Hope that helps!

neil
 
I am using the VB6 that came with microsoft word 2002 that came with windows XP and I do not have a "project" button. I can however get to the controls but I dont see ms comm in the list. It goes from movieBVR class to ms tv video control. Thanks for all your help!
 
As far as I know the VB6 that comes with Word2002 is only an enhanced version of VBA. It doesn't include most of VB (not even as much as Learning edition) Let me know if this helps
________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first

'There are 10 kinds of people in the world: those who understand binary, and those who don't.'
 
The Basic that comes with Office applications is VBA, NOT VB. Whilst tyey are very similar they are not the same thing, I'm afraid.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top