LinkInterrupt

LinkInterrupt[link]

sends an interrupt to the program at the other end of the specified WSTP connection.

Details

  • link must be an active LinkObject, as returned by functions such as LinkLaunch or Links.
  • It is up to the external program to determine how it will handle the interrupt.
  • External programs created from WSTP templates will by default set the global variable WSAbort if they receive an abort.

Examples

Basic Examples  (1)

Launch a subsidiary Wolfram Language 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:

Introduced in 1996
 (3.0)