Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2002
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2002

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

Search the Archive

Re: MathLink and Serial Ports

  • To: mathgroup at smc.vnet.net
  • Subject: [mg35526] Re: MathLink and Serial Ports
  • From: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>
  • Date: Thu, 18 Jul 2002 03:06:07 -0400 (EDT)
  • Organization: Universitaet Leipzig
  • References: <ah24d5$r2s$1@smc.vnet.net>
  • Reply-to: kuska at informatik.uni-leipzig.de
  • Sender: owner-wri-mathgroup at wolfram.com

Hi,

have you a "non-MathLink" program that work correctly ?

How is the timer implementet ?

I would use a timer function to look for the data on the port
and write every new temperature in a loopback link. 

The MathLink function itself transfers only the data from the
loopback link to Mathematica and hinders the timer function 
to fill data into the loopback link while the data are
transfered.

Regards
  Jens

"Mark T. Gordon" wrote:
> 
> I'm not sure how to categorize my problem so I guess I'll
> just describe it.  I have a program in Visual C++ that I am
> using via MathLink.  It gets data from the serial port,
> basically as fast as it can (approx. once every second), and
> retuns it to Mathematica.  The problem is that it will run
> fine for a while (over 20 minutes), but then, seemingly
> randomly, it will take about 6 minutes to get the next
> reading.  That reading will also come back incorrect.  What
> exactly is happing is that I'm getting a temperature from a
> MELCOR temperature controller.  It gets readings around 83
> degrees Celcius or so (about one per second) and then it
> will pause for about 6 minutes and return 528.24 degrees
> Celcius.  Any help would be greatly appreciated.
> 
> mgordo76 at calvin.edu


  • Prev by Date: RE: Problems with simulating society ch4 section 4.3
  • Next by Date: RE: Re: Factoring problem
  • Previous by thread: MathLink and Serial Ports
  • Next by thread: Integration problem