25.2.1 Launching the Tool

To communicate Origin with individual instance of Mathematica directly, you must configure Mathematica to run Origin's kernel OSequencer.exe. Otherwise Origin can only communicate with a Mathematica kernel that is launched when the Mathematica Link tool is invoked.
If you don't need to communicate between Origin and a Mathematica instance that is launched, please ignore the first part of configuration inside Mathematica.

Configure Mathematica to run Origin's kernel OSequencer.exe when starts up
  1. Start Mathematica, select Evaluate: Kernel Configuration Options from Mathematica main menu.
  2. In the dialog that opens, click Add button to bring up the Kernel Properties dialog.
  3. Give a name to the Kernel. Set Arguments to MLOpen as -LinkName "<Origin install folder path>\OSequencer -mathlink -noicon". Note that full path of OSequencer.exe is needed.
    Mathematica link 01.png
    The kernel named "OSequncer" is now added to the list.


Launch the Mathematica Link tool in Origin.
  1. Select from Origin main menu Connectivity: Mathematica Link, Origin will ask for Mathematica's Kernel for the first time.
  2. Locate Mathematica installation folder, and then select MathKernel.exe.
  3. The Origin Link for Mathematica dialog is then open.

Once done, you can go to folder C:\Users\<username>\AppData\Local\Temp and open the OMAthLinkConfig.INI file.

[MathKernelExecutable]
Location=C:\Program Files\Wolfram Research\Mathematica\<MathVersion>\MathKernel.exe

Check if the path points to the correct Mathematica installation folder with which you want Origin to communicate. It is especially important when you have more than one version of Mathematica installed. If not the correct path, you can:

  • Change the path directly and re-save OMAthLinkConfig.INI. Then re-start Origin

Or

  • Delete OMAthLinkConfig.INI. Re-start Origin. Origin will ask for the Kernel again.You can then select the correct Kernel.