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!

(VISUAL BASIC 6)Interfacing a RS-232 DB9 serial com port on a display.

Status
Not open for further replies.

bbqrob8

Technical User
Mar 26, 2003
8
CA
Hello:
What i need is some information on using Visual basic. I have very little exposure to VB, but am aware that MSCOMM is needed, and that is as far as i know. I have a display( ) that is connected to my computer via the RS-232 cable. What i need is to send in a 2 bit signal, (00,01,10,11) that will trigger different messages on the display. I initally wanted to have the PC on the wireless Txed side and send the information to the display, but since my Txer and Rxer is ASK i don't think it may be possible. (If it is could you let me know.) Any other ideas would be greatly appreciated.
Thank-you




[thumbsup] [cheers]
 
Hi
MSCOMM work oriented in characters.
Try the following command.
mscomm.output=chr(0) , case to send 00
mscomm.output=chr(1) , case to send 01
etc, etc
Good luck
 
Hi again
Keep in mind 1 character is 1 byte if you do
mscomm.output=chr(1)
you are sending 00000001
 
Thanks sanlop:

But i need to know how to basically start from scratch. I need to know where to begin, i guess right from an option explicit, the what to declare and how to store the string i want displayed.
 
Read:

1. VBHelp - Contents - Getting Started

2. IDG's 'VB for Dummies' or Sams 'Pure Visual Basic' Books

and then get your hands dirty on the keyboard!
________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first

'People who live in windowed environments shouldn't cast pointers.'
 
I have been reading alot of info about Vb, but there is such an extensive amount of material. I have done a course using the book (Programming with Microsoft Visual Basic 6.0 Enhanced Edition) but that is as far as i know about it.

Any other suggestions would be greatly appreciated.

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top