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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sending text to com1

Status
Not open for further replies.

Johnbus

Technical User
Apr 9, 2002
2
US
I have a device on com1 which I would like to send the following text "!0SOG" from within a clipper application.

I can create a file.bat which contains
"echo !0SOG > com1"

which works fine when executing the .bat file from the command prompt, but when I try "run file.bat" from my clipper application I recieve

Write fault error writing to device com1
Abort,Retry,Ignore,Fail?

Can anyone help?
 
You need to use OVERLAY(), a third party library, that has the ability to break out of the clipper application and run DOS commands. You can run your batch file this way. The only other way to access data to or from a com port from within the Clipper application is to use a communication library. I prefer to use SilverClip, but there are others out there.
 
Thanks Elkari,

I downloaded iolib.lib which included communication commands. Worked great first try.

Thanks again

Johnbus
 
Hello Johnbus

Could you say me where can I get iolib.lib or if it's possible send it me ??? Thanks
galoz2001@hotmail.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top