DOCUMENTATION CENTER SEARCH
Mathematica
>
MathLink Mathematica Functions
>
Built-in
Mathematica
Symbol
Using MathLink to Communicate between Mathematica Sessions
Tutorials »
|
LinkReadyQ
LinkWrite
Read
See Also »
|
Calling External Programs
External Operations
MathLink API
MathLink Expression Packet Handling
MathLink Mathematica Functions
Parallel & Grid Computing
More About »
LinkRead
LinkRead
[
link
]
reads one expression from the specified
MathLink
connection.
LinkRead
[
link
,
h
]
wraps
h
around the expression read before evaluating it.
MORE INFORMATION
link
must be an active
LinkObject
, as returned by functions like
LinkLaunch
or
Links
.
LinkRead
will wait until it has read a complete expression before returning.
You can test whether an expression is ready to be read from a particular link using
LinkReadyQ
.
You can use
LinkRead
[
link
,
Hold
]
to get an expression from a link without evaluating it.
EXAMPLES
CLOSE ALL
Basic Examples
(1)
Launch a subsidiary
Mathematica
kernel process:
In[1]:=
Out[1]=
Read the first packet:
In[2]:=
Out[2]=
Write a packet to enter 10!:
In[3]:=
Read a packet representing the output prompt:
In[4]:=
Out[4]=
Read the actual result from the computation:
In[5]:=
Out[5]=
Close the link:
In[6]:=
SEE ALSO
LinkReadyQ
LinkWrite
Read
TUTORIALS
Using
MathLink
to Communicate between
Mathematica
Sessions
MORE ABOUT
Calling External Programs
External Operations
MathLink API
MathLink Expression Packet Handling
MathLink Mathematica Functions
Parallel & Grid Computing
New in 3
© 2008 Wolfram Research, Inc.