×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Serial Connection

Serial Connection

Serial Connection

(OP)
I am working on an autonomus vehicle and I want to be able to send bits from my controler to my lap top and from my lap top to my controller to control the vehicles motion.

Can anyone point me in the right direction and tell me if i can do this with VB or C++ and which one is easier?

Thanks

RE: Serial Connection

Years ago I've done similar with a robot controller and a BASIC module in a PLC rack.  The PLC would get the I/O bits from field devices and stuff them into a byte register.  The BASIC module would take the byte of data, change it to the corresponding ASCII character, and collect into a string of characters with a special end of string terminating character.  When the string was full, the BASIC module would write the string to the serial port.

The robot controller would read the string and pull off each character in turn.  Then convert to the byte of data, and programmatically act on the data in the byte.

And vice versa from robot to PLC.

You would have to do something similar.  Don't know if VB or C++ is easier.  They both have bit and byte and ASCII character functions.

TygerDawg

RE: Serial Connection

(OP)
Do you know a good book/web site that would be able to give me a good kick in the right direction.

Cheers

DG

RE: Serial Connection

nope.  I learned it the hard way.

TygerDawg

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources