Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica > Systems Interfaces & Deployment > MathLink API > MathLink Mathematica Functions >

LinkInterrupt

LinkInterrupt[link]
sends an interrupt to the program at the other end of the specified MathLink connection.
  • It is up to the external program to determine how it will handle the interrupt.
  • External programs created from MathLink templates will by default set the global variable MLAbort if they receive an abort.
Launch a subsidiary Mathematica kernel process:
Read the first packet:
Send an infinite loop program:
Use LinkReadyQ to check whether the program has finished:
Send an interrupt:
The process has stopped with an interrupt menu:
Close the link:
Launch a subsidiary Mathematica kernel process:
In[1]:=
Click for copyable input
Out[1]=
Read the first packet:
In[2]:=
Click for copyable input
Out[2]=
Send an infinite loop program:
In[3]:=
Click for copyable input
Use LinkReadyQ to check whether the program has finished:
In[4]:=
Click for copyable input
Out[4]=
Send an interrupt:
In[5]:=
Click for copyable input
The process has stopped with an interrupt menu:
In[6]:=
Click for copyable input
Out[6]=
Close the link:
In[7]:=
Click for copyable input
New in 3
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team