----- Original Message -----
From: <[EMAIL PROTECTED]>
To: "RBASE-L Mailing List" <[email protected]>
Sent: Wednesday, December 03, 2008 8:11 AM
Subject: [RBASE-L] - Re: Writing to COM port
Anyway, I am running with the LAUNCH command for the time being. I may
have to work on getting rid of the black command prompt window and some
other issues. I will try to test Emmitt's idea as well.
It is the ShellExecute part of the explanation in the archive.
http://www.mail-archive.com/[email protected]/msg13873.html
Thanks all,
-Bob
--
Thompson Technology Consultants
LaPorte, IN 46350
219-363-7441
-------------- Original message --------------
From: "Alastair Burr" <[EMAIL PROTECTED]>
Bob,
Further back in the help under the heading: About the OUTPUT Command
R:BASE cannot tell that the argument LPT1 or COM1 is not the name of a
file. For example, if you use the command OUTPUT LPT1, R:BASE creates a
file named LPT1. Because R:BASE thinks LPT1 is a file, R:BASE does not
print the last buffer of output until you redirect output to the screen.
As Emmitt said, it looks like you need to fool R:Base in some way. You
should be able to find a file named COM1 somewhere that should confirm
what has been happening.
Regards,
Alastair.
----- Original Message -----
From: [EMAIL PROTECTED]
To: RBASE-L Mailing List
Sent: Tuesday, December 02, 2008 7:47 PM
Subject: [RBASE-L] - Writing to COM port
Any thoughts on the following?
Output COM1
Write .vVar1
Write .vVar2
Write .vVar3
OutPut Screen
Nothing goes to the COM port. (I have a LED communications monitor on the
port)
Output Test.dat
Write .vVar1
Write .vVar2
Write .vVar3
OutPut Screen
Output COM1
Type test.dat
Output screen
Nothing goes to the COM port.
Make a batch file Test.Bat containing:
Print /D:COM1 Test.dat
Exit
Launch Test.Bat
The data flows to the COM port perfectly.
I would like not to use the Launch command if possible. Help states :
The following command sends data and messages to the printer, designated
as COM1. COM1 is treated as a file that is automatically copied to a
printer device when the OUTPUT SCREEN command is issued.
OUTPUT COM1
Any thoughts on how I write to the COM1 serial port directly without using
Launch?
Thanks,
-Bob
--
Thompson Technology Consultants
LaPorte, IN 46350
219-363-7441
No virus found in this incoming message.
Checked by AVG - http://www.avg.com
Version: 8.0.176 / Virus Database: 270.9.13/1825 - Release Date:
02/12/2008 20:44
--- RBASE-L
================================================
TO POST A MESSAGE TO ALL MEMBERS:
Send a plain text email to [email protected]
(Don't use any of these words as your Subject:
INTRO, SUBSCRIBE, UNSUBSCRIBE, SEARCH,
REMOVE, SUSPEND, RESUME, DIGEST, RESEND, HELP)
================================================
TO SEE MESSAGE POSTING GUIDELINES:
Send a plain text email to [email protected]
In the message SUBJECT, put just one word: INTRO
================================================
TO UNSUBSCRIBE:
Send a plain text email to [email protected]
In the message SUBJECT, put just one word: UNSUBSCRIBE
================================================
TO SEARCH ARCHIVES:
Send a plain text email to [email protected]
In the message SUBJECT, put just one word: SEARCH-n
(where n is the number of days). In the message body,
place any
text to search for.
================================================