Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsVB SyntaxEnterprise DevelopmentDatabase AccessControlsCOMWin APICrystal ReportDeploymentGeneralGeneral 2
Related Topics
VB.NET / ASP.NETMS SQL ServerMS AccessOther Database ProductsMore Topics ...

VB Forum / COM / January 2005



Tip: Looking for answers? Try searching our database.

serial port communication with VB6

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Bernd Dworrak - 17 Jan 2005 14:49 GMT
I do have a program with source code that is written in VB6.

The target of this program is to switch relais on a board that is connected
to the serial port of the PC.
Unfortunatelly this program acts only in interactive mode, which means that
a mouseclick on a button representing the relais is neccessary to switch the
relais from off to on and vice versa.
I am a bloody newbie in VB programming and ask for help wheteher one could
support me with this just turning the interactive program into a batch
program that gets the information on the relais to be switched from a file
on the pc.

If someone is interested in the code and the programm I am able to send it
via email.
Thanks
Bernd
Phil - 18 Jan 2005 20:13 GMT
Hi Bernd,

Send it. I'll see what I can do. Looks simple...Does your file need to
have a special format?

Phil
Phil - 18 Jan 2005 20:15 GMT
Ooops, address is junk...

pls reply to the address indicated on this message

Phil
Phil - 19 Jan 2005 15:39 GMT
Bernd,

Got your file...Was just trying to contact you but the mail I send bounces
back to me.

Pls contact me again with another email address

Phil
Dick Grier - 19 Jan 2005 16:33 GMT
Hi,

I have code examples for exactly this sort of thing in my book (see below).
Basically what I did was to write a routine that is passed the string to
send as an argument.  Then, I loop through the string,
on-character-at-a-time, sending that character, and add a programmable delay
between each character.  When working with some very slow hardware, that
delay might be as much as 40 to 50 mS for each character.

Dick

Signature

Richard Grier  (Microsoft Visual Basic MVP)

See www.hardandsoftware.net for contact information.

Author of Visual Basic Programmer's Guide to Serial Communications, 4th
Edition ISBN 1-890422-28-2  (391 pages) published July 2004.  See
www.mabry.com/vbpgser4 to order.

Darrell1 - 19 Jan 2005 23:26 GMT
will also be glad to help... have a routine to open 24 relays via the comm
port, but has to communicate to a device receiving serial data in numbers
or letters to command which gate to open..

kevin
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.