MathGroup Archive 1999

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

Search the Archive

Re: Sending test to COM1 under win98 from Mathematica

  • To: mathgroup at
  • Subject: [mg21043] Re: Sending test to COM1 under win98 from Mathematica
  • From: dlkeith at
  • Date: Sun, 12 Dec 1999 23:51:10 -0500 (EST)
  • References: <803aj6$> <80as60$>
  • Sender: owner-wri-mathgroup at

Is there a way to read and write to a com port under Mathematica 4.0/NT4?

In article <80as60$iss at>,
  Eckhard Hennig <hennig at> wrote:
> Barthelet, Luc schrieb in Nachricht <803aj6$aos at>...
> >
> >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
> >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
> from being enclosed in string quotes.
> -- Eckhard
> -----------------------------------------------------------
> Dipl.-Ing. Eckhard Hennig      mailto:hennig at
> 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
>      ITWM - Makers of Analog Insydes for Mathematica
> -----------------------------------------------------------

Sent via
Before you buy.

  • Prev by Date: Partial evaluation
  • Next by Date: Re: How to call a notebook via a mathlink connection
  • Previous by thread: Re: Partial evaluation
  • Next by thread: discrepancy in Hypergeometric1F1 results