PRODUCTS
Products Overview
Mathematica
Mathematica Student Edition
Mathematica Home Edition
Wolfram
CDF Player
(free download)
Computable Document Format (CDF)
web
Mathematica
grid
Mathematica
Wolfram
Workbench
Wolfram
SystemModeler
Wolfram
Finance Platform
Mathematica
Add-Ons
Wolfram|Alpha Products
SOLUTIONS
Solutions Overview
Engineering
Aerospace Engineering & Defense
Chemical Engineering
Control Systems
Electrical Engineering
Image Processing
Industrial Engineering
Materials Science
Mechanical Engineering
Operations Research
Optics
Petroleum Engineering
Biotechnology & Medicine
Bioinformatics
Medical Imaging
Finance, Statistics & Business Analysis
Actuarial Sciences
Data Analysis & Mining
Econometrics
Economics
Financial Engineering & Mathematics
Financial Risk Management
Statistics
Software Engineering & Content Delivery
Authoring & Publishing
Interface Development
Software Engineering
Web Development
Science
Astronomy
Biological Sciences
Chemistry
Environmental Sciences
Geosciences
Social & Behavioral Sciences
Design, Arts & Entertainment
Game Design, Special Effects & Generative Art
Education
STEM Education Initiative
Higher Education
Community & Technical College Education
Primary & Secondary Education
Students
Technology
Computable Document Format (CDF)
High-Performance & Parallel Computing (HPC)
See Also: Technology Guide
PURCHASE
Online Store
Other Ways to Buy
Volume & Site Licensing
Contact Sales
Software
Service
Upgrades
Training
Books
Merchandise
SUPPORT
Support Overview
Mathematica
Documentation
Knowledge Base
Learning Center
Technical Services
Community & Forums
Training
Does My Site Have a License?
Wolfram User Portal
COMPANY
About Wolfram Research
News
Events
Wolfram Blog
Partnerships
Employment Opportunities
History of
Mathematica
Stephen Wolfram's Home Page
Contact Us
OUR SITES
All Sites
Wolfram|Alpha
Demonstrations Project
MathWorld
Integrator
Wolfram Functions Site
Mathematica Journal
Wolfram Media
Wolfram
Tones
Wolfram Science
Stephen Wolfram
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE
DOCUMENTATION CENTER
FOR THE LATEST INFORMATION.
DOCUMENTATION CENTER SEARCH
New to
Mathematica
?
Find your learning path
»
Mathematica
>
Systems Interfaces & Deployment
>
MathLink API
>
MathLink Mathematica Functions
>
LinkReadyQ
>
BUILT-IN MATHEMATICA SYMBOL
Using MathLink to Communicate between Mathematica Sessions
Tutorials »
|
LinkRead
LinkWrite
LinkInterrupt
See Also »
|
MathLink Mathematica Functions
More About »
LinkReadyQ
LinkReadyQ
[
link
]
tests whether there is an expression ready to read from the specified
MathLink
connection.
LinkReadyQ
waits for up to
t
seconds to see if an expression becomes ready to read.
LinkReadyQ
tests all the
in parallel, returning as soon as any of them are ready to read from.
MORE INFORMATION
The
must be active
LinkObject
objects, as returned by functions like
LinkLaunch
or
Links
.
LinkReadyQ
returns a list of
True
and
False
, specifying which of the
are ready to read from.
If
LinkReadyQ
[
link
]
returns
True
, then
LinkRead
[
link
]
will not block under any normal circumstances.
If
LinkReadyQ
[
link
]
returns
False
, then
LinkRead
[
link
]
will block, and will not return until something becomes available to read on
link
.
LinkReadyQ
[
link
]
tests whether there is any data to read; it cannot determine whether the data represents a complete expression.
The basic form of
LinkReadyQ
corresponds to the
MathLink
library function
MLReady()
.
EXAMPLES
CLOSE ALL
Basic Examples
(1)
Launch a subsidiary
Mathematica
kernel process:
Test whether there is an expression ready to be read:
Read the expression:
Close the link:
Launch a subsidiary
Mathematica
kernel process:
In[1]:=
Out[1]=
Test whether there is an expression ready to be read:
In[2]:=
Out[2]=
Read the expression:
In[3]:=
Out[3]=
Close the link:
In[4]:=
SEE ALSO
LinkRead
LinkWrite
LinkInterrupt
TUTORIALS
Using
MathLink
to Communicate between
Mathematica
Sessions
MORE ABOUT
MathLink
Mathematica
Functions
New in 3 | Last modified in 6