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

Reply via email to