MathGroup Archive 1998

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

Search the Archive

error from MathLink, plotting results from a c++ simulation

  • To: mathgroup at smc.vnet.net
  • Subject: [mg15019] error from MathLink, plotting results from a c++ simulation
  • From: "Richard W. Singerman" <rws at helix.nih.gov>
  • Date: Sat, 5 Dec 1998 01:30:21 -0500
  • Sender: owner-wri-mathgroup at wolfram.com

Hi,

I'm using Mathematica on a Windows95 machine. I want to use MathLink.
I've read the developers kit documentation and I'm trying get the
addtwo.exe to install. However, I get an error message.  Comments would
be helpful.

Install["addtwo.exe`"]

and 
Install["addtwo.exe"]

give the same response

LinkOpen::"linkf": "\!\(LinkOpen[\"addtwo.exe`\"]\) failed."

However addtwo.exe appears in the path.

Please comment.

Question2:  Once I have this working, I want to use mathematica to
display results from a C++ simulation of wave propagation.  I wanted to
see the results as the simulation marched through time steps. I plan
todo  this by writing each time step result (the wave at a given time) 
to the file tmpwaveresults. Then I would do

MLPutFunction( link, "ToExpression", 1); MLPutString( link,
"wave=Readlist["tmpwaveresults", Number, RecordLsts->True"]

MLPutFunction( link, "ToExpression", 1);
    MLPutString(link, "ListDensityPlot[wave]")

I'd like to eventually make a movie of the wave propagation.

Please comment.


--Richard Singerman




  • Prev by Date: Variables names
  • Next by Date: Re: Contour Integration
  • Previous by thread: Re: Re: Variables names
  • Next by thread: Re: error from MathLink, plotting results from a c++ simulation