MathGroup Archive 1999

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Sending test to COM1 under win98 from Mathematica

  • To: mathgroup at smc.vnet.net
  • Subject: [mg20713] Re: Sending test to COM1 under win98 from Mathematica
  • From: Eckhard Hennig <hennig at itwm.uni-kl.de>
  • Date: Wed, 10 Nov 1999 00:17:34 -0500
  • Organization: ITWM
  • References: <803aj6$aos@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Barthelet, Luc schrieb in Nachricht <803aj6$aos at smc.vnet.net>...
>
>I connected a plotter to my PC under Win98. It works fine, and I would like
>to send strings I built with Mathematica to the plotter to control it.
>I know how to built the string with all the commands, but how to send the
>string to COM1 or LPT1 under Mathematica?


You can use OpenWrite and Write as follows.

plotter = OpenWrite["lpt1:"]
Write[plotter, "blabla"]
Close[plotter]

Note that you will have to do some extra formatting to prevent the output
from being enclosed in string quotes.

-- Eckhard

-----------------------------------------------------------
Dipl.-Ing. Eckhard Hennig      mailto:hennig at itwm.uni-kl.de
Institut fuer Techno- und Wirtschaftsmathematik e.V. (ITWM)
Erwin-Schroedinger-Strasse,  67663 Kaiserslautern,  Germany
  Voice: +49-(0)631-205-3126    Fax: +49-(0)631-205-4139
    http://www.itwm.uni-kl.de/as/employees/hennig.html

     ITWM - Makers of Analog Insydes for Mathematica
        http://www.itwm.uni-kl.de/as/products/ai
-----------------------------------------------------------





  • Prev by Date: Re: QR vs. Gram Schmidt
  • Next by Date: Re: Re: Combinatorica questions!!!
  • Previous by thread: Sending test to COM1 under win98 from Mathematica
  • Next by thread: Re: LU factorization in Mathematica