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: [mg21043] Re: Sending test to COM1 under win98 from Mathematica
  • From: dlkeith at my-deja.com
  • Date: Sun, 12 Dec 1999 23:51:10 -0500 (EST)
  • References: <803aj6$aos@smc.vnet.net> <80as60$iss@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

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


In article <80as60$iss at smc.vnet.net>,
  Eckhard Hennig <hennig at itwm.uni-kl.de> wrote:
>
> 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
> -----------------------------------------------------------
>
>


Sent via Deja.com http://www.deja.com/
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