Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

write to com port

Status
Not open for further replies.

acer1

Computer
Nov 20, 2008
2
Hi
I dont know any basic but have to write a small prog to send a code to my com3 port
Lprint chr$(27) sends to printer
how can I send this to com3?
any help greatly appreciated
Acer1
 
Replies continue below

Recommended for you

Open com3 as a sequential file and then print to the file handle.

Good Luck
--------------
As a circle of light increases so does the circumference of darkness around it. - Albert Einstein
 
Thanks for your reply I tried
50 open "O", #1, "com3:"
51 print #1, "07"
52 close 1

basic says 'bad file number in 51'
sorry I dont know any basic bu would really appreciate your help
Regards
Acer1
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor