Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2000
*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 2000

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

Search the Archive

Service multiple mathlinks

  • To: mathgroup at smc.vnet.net
  • Subject: [mg25012] Service multiple mathlinks
  • From: "Eric and Rachael Farmer" <erfarmer at erols.com>
  • Date: Fri, 1 Sep 2000 01:09:44 -0400 (EDT)
  • Sender: owner-wri-mathgroup at wolfram.com

This is my first post here; I have scanned this group for a while looking
for references to my problem, but haven't found any.  Any help is
appreciated...

I am working on an OpenGL application that uses a MathLink interface with
Mathematica.  I have developed "versions" of this application that use two
distinct approaches:

1.  The OpenGL window is created from Mathematica, but then operates (for
the most part) independently of Mathematica; contents of the window can be
periodically modified or read from a Mathematica session via MathLink
template functions.  This allows GUI window "stuff" and separate Mathematica
front end stuff to go on simultaneously, but at a price: the GUI window
process can't initiate a Mathematica computation and retrieve a result,
since the kernel is a slave to the front end connection.

2.  A Mathematica function initiates "operation" of the OpenGL window, which
then works as before, but in addition can get computation results from the
kernel.  This time, the price is loss of access to the kernel by the front
end until the GUI window gives it up.

What I'm really looking for, then, is the ability to make the kernel
"service" multiple mathlinks.  This would allow front end use of the kernel,
but at the same time allow the GUI window process to get "immediate"
responses from the kernel as well.  I imagine this somehow involves
manipulation of $ParentLink, but I have been unable to make it work.  Is
this possible, and if so, how is it done?

Thanks in advance,
Eric Farmer





  • Prev by Date: looking for a faster way
  • Next by Date: Re: Re: mathlink
  • Previous by thread: looking for a faster way
  • Next by thread: Re: Service multiple mathlinks