Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

Serial Connection

Status
Not open for further replies.

dgiudici

Mechanical
Jul 20, 2005
2
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
 
Replies continue below

Recommended for you

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
 
Do you know a good book/web site that would be able to give me a good kick in the right direction.

Cheers

DG
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor