MathLink is a suite of Mathematica functions that implement a protocol for the communication/interfacing of Mathematica with external programs.

learn more… | top users | synonyms

0
votes
0answers
18 views

Can't get the most basic WSTP demo (addtwo.c) to build and link. Help?

I am trying to use WSTP and started with the addtwo demo. I converted the template file to C using wsprep, then in Visual Studio 2013, added that, the addtwo.c file, the wstp libraries and the header ...
0
votes
1answer
35 views

problems with wstp32 (WSTP / mathlink)

I've been recompiling old mathlink programs in Visual Studio 2013. No major problems so far until I got to a program that is seemingly similar to the others but that fails dramatically in the linking ...
2
votes
0answers
51 views

WSTP (formerly MathLink) problem

I recently set about to re-compile some old (2008-2009) applications that use MathLink in preparation for creating new, modified versions. Mathlink has been deprecated but WSTP seems like a fairly ...
4
votes
0answers
41 views

Using mathlink/WSTP with fortran

I would like to access Mathematica functions from within a Fortran program. I am unsure how to start (which is probably related to my lack of up-to-date Fortran knowledge). Is it necessary to write a ...
2
votes
1answer
79 views

Convert C program using mathlink to WSTP

I have been using heavily a custom frontend to mathematica based on mathlink. I derived it from http://library.wolfram.com/infocenter/Demos/174/frontend.c?file_id=4692 . I just learned that mathlink ...
0
votes
1answer
34 views

Error message LNK2019, unresolved external symbol _output referenced in function __tr0

I've successfully compiled the simple addtwo function predefined in Mathematica as per: MathLink dependencies: "LNK2019: unresolved external symbol _MLMain" I am now attempting to write an ...
2
votes
1answer
38 views

MathLink dependencies: “LNK2019: unresolved external symbol _MLMain”

I am trying to compile the MathLink examples included with Mathematica. I am careful to ensure that the libraries are present in the Visual Studio folder as indicated by the installation manual. I am ...
6
votes
1answer
85 views

Tools for MathLink traffic analysis?

I noticed that the documentation for LinkSnooper says that it is "obsolete". I don't have any experience with this tool, but I thought it looked interesting after seeing results it was able to provide ...
0
votes
1answer
41 views

ml32i1m.lib and ml64i3m.lib Files

I have to install a package to use together with MatLab (http://www.mathworks.com/matlabcentral/fileexchange/6044-mathematica-symbolic-toolbox-for-matlab-version-2-0]1) that requires locating files ...
4
votes
1answer
142 views

How can I integrate Open-CV with Mathematica?

I would like to run Open-CV functions from within Mathematica, can anyone figure out how to do this?
4
votes
0answers
54 views

Any Progress with a Python MathLink? [duplicate]

I just want to asking if there any progress to connect Python with Mathematica Version 10 as Java or C, I mean a MathLink. I've been looking for a alternatives but I couldn't find it. Thanks,
1
vote
1answer
72 views

Mathlink compiling error MLPutReal32Array()

I have some c++ code I wrote in Windows that compiles and runs just fine. I was going to use it on a Linux machine but I am getting the error when I try to compile following the Makefile procedure ...
1
vote
0answers
52 views

choose a WSTP program to launch

When I run an external program(compiled by Visul C++ 2012 in windows 7) to use the wolframkernal by WTSP, for example:project1.exe -linkmode launch,it will open a dialog box named "choose a WSTP ...
9
votes
1answer
92 views

Installing LinkSnooper on Windows

I tried to install LinkSnooper on my Windows 7 computer, as described in the documentation and here. According to the answer of @Todd Gayley, I entered the following string in the field MLOpen: ...
5
votes
1answer
127 views

How to use RunProcess to import external function?

I have a functions written in an external language called GO. How can I quickly load them into the kernel for use as Mathematica functions? The two ways I've tried are with MathLink and LibraryLink ...
2
votes
0answers
68 views

Configuring remote access when using a VPN

To address some of the responsiveness issues, I use the Mathematica front end (v9 or v10) to access a remote kernel on a Raspberry Pi. The (advanced) kernel configuration used is this: Arguments to ...
5
votes
1answer
52 views

Changing MathKernel process priority on the startup

In the built-in Documentation there is an example how it is possible to change the priority of the MathKernel process using NetLink: ...
2
votes
0answers
62 views

ParallelTable kernels die - maybe Mathlink timeout?

I am new to parallel computing in Mathematica. I am using LaunchKernels[16] ParallelTable[] to parallelize calculations. The ParallelTable consists of approx ...
2
votes
0answers
89 views

webMathematica - MathLink linkname missing or malformed

I just installed webMathematica on Linux Debian + Tomcat7 + Mathematica 9.0. I'm getting this error web testing any example. HTTP 403 - MathLink linkname missing or malformed. The error is also ...
2
votes
0answers
86 views

Generating Mathlink executables by CCompilerDriver

I'm trying to generate a MathLink executable by CreateExecutable from CCompilerDriver ...
4
votes
1answer
64 views

what's the meaning of “-mathlink” as part of Arg for LinkLaunch?

LinkLaunch["MathKernel -mathlink"] LinkLaunch["MathKernel"] The both code line above can launch a MathKernel. What's the difference of them? what's the meaning of ...
0
votes
0answers
28 views

what's the difference between CreateKernelLink() and CreateKernelLink(String Arg)?

I have a .NET program which will connect to MathKernel. When the program runs, there will be a icon of MathKernel on the taskbar. ...
0
votes
2answers
69 views

Is there anyway to use a named argument in calling mathematica from .NET?

I want to write a .NET program calling Mathematica as a computing engine. But here is a problem that argument a1 is not a constant and its value depends on ...
10
votes
1answer
393 views

WSTP broken by upgrade to 10.0.1?

Ubuntu 12.04, Mathematica 10.0.1. Everything was working fine with WSTP (the successor to MathLink) in 10.0.0. But I upgraded to 10.0.1 today and now I can't compile either my programs (I've changed ...
6
votes
0answers
123 views

MathLink error while calling a custom Mathematica function - MLGet out of sequence

I am trying to call Mathematica 10 from F#. Following the C# sample code found in the Mathematica directory, I have written the following F# code: ...
0
votes
0answers
79 views

Data acquisition from NI USB-6008, NI-DAQmx

I want to connect an interface from National Instruments to Mathematica in mac, i already download the driver Ni-DAQmx_Base_3.6 from NI page. How to tell Mathematica to dump data from the interface?
8
votes
1answer
179 views

Connect Frontend to Kernel Started by JVM via JLink

I have a MathKernel started and controlled via JLink from a JVM. The $CommandLine for this kernel is: ...
2
votes
0answers
104 views

Mathlink program with low cpu usage on linux machines only

Question I am incorporating some c++ code via Mathlink into my simulations in Mathematica. My questions involves the execution efficiency of the c++ code on different machines. For example, on my ...
5
votes
1answer
67 views

WSTP Callbacks into CDF

Essentially, what I am trying to find out is the limitation of the WSTP/LINK protocols in Enterprise-licensed CDF. Specifically, are any callbacks to the kernel from those protocols allowed in CDF , ...
1
vote
0answers
55 views

Mathlink and Fortan: A list with more than 10 elements as result [closed]

I have a problem with Mathlink (Mathematica 9.0), form which I call a Fortran subroutine which should return a list of 13 numbers. I have written a C-wrapper to call the Fortran subroutine (called ...
3
votes
1answer
62 views

How to wait until a Listen mode link gets connected to?

Suppose we create a link like this: link = LinkCreate["mylink", LinkMode -> Listen] How can we wait until this link gets connected to by another process, and ...
2
votes
1answer
130 views

Cannot launch MathLink from C

I am trying to launch a MathLink from a 64bit C dll that I am building, using the following code: ...
5
votes
1answer
113 views

Undocumented WolframLibraryData::evaluateExpression

It seem there's this promising function in the callback object provided to MathLink C functions: ...
1
vote
0answers
33 views

Correct use of Mathlink's MLGetRealList

I am attempting to use Mathlink from C. I have managed to return single values from mathlink to my c program, but I am having trouble with lists. Consider the Mathematica operation: ...
4
votes
1answer
111 views

How to do assignments through MathLink?

In Mathematica I can make the assignment 'foo = bar' with Set[foo,bar]. However, if I try to evaluate 'Set[foo,bar]' through MathLink then it appears that MathLink gets stuck while trying to read ...
2
votes
1answer
190 views

MathLink c++ passing lists of real values simple example

So this may come down to me not being a very competent programmer but I am struggling with passing list from Mathematica via MathLink that aren't of integers. The final code I am hoping to get out of ...
3
votes
1answer
64 views

How to return escaped characters from MathLink?

I'd like to return Greek symbols through MathLink from a C function. However, returning the usual escape sequence (such as \[Alpha]) does not seem to work. Here's a minimal example .tm file ...
0
votes
0answers
181 views

Visual Studio 2013 Mathlink addtwo

I was needing to use Mathlink to call some c++ code so I thought I would learn from the basic examples but I am running into strange issue. Following the procedure outlined from the Mathematica ...
1
vote
0answers
58 views

Multiple scripts run using same kernel

I have an external program that calls Mathematica scripts upon certain events. Each script requires a large Mathematica library to load (takes a while). Is there some way to run an initial script ...
5
votes
0answers
121 views

Can Apple's Numbers spreadsheet link to a Mathematica function?

I use Apple's Numbers spreadsheet for a single thing, a double entry accounting model to understand complicated financial transactions. A current model depends on the value of a single initialization ...
2
votes
0answers
60 views

Pass Real32 to Mathlink

I've written a Mathlink program that is called from Mathematica 9. It works very well but currently uses double precision numbers in the C++ function. I've already replaced them with floats in C++ ...
0
votes
0answers
51 views

Reading Error Message from Mathematica using Mathlink C++

I am developing an UI on Visual Studio C++ and communicating with Mathematica using Mathlink. I create a function via Mathlink and in that function, I coded in such a way that it gives a message ...
11
votes
1answer
344 views

Multiplayer game in Mathematica: how to communicate between kernels?

This may have been asked already, but I am considering making a game in Mathematica that two people can play. However, the issue with my idea is that the other player can't view the cards of the first ...
1
vote
1answer
79 views

Hide MathKernel Tab on Taskbar when using C++ [duplicate]

I am connecting to MathKernel.exe using C++ via MathLink on Windows. Hence, to create the link, this is what I use: ...
1
vote
0answers
101 views

Read expression from Mathematica via Mathlink C++

This is a simple C++ program to send an expression to the_Mathematica_ Kernel and get its response. ...
1
vote
1answer
63 views

MLEvaluate() Function Gives Error

I am trying to link my C++ program to Mathematica Kernel. I am trying to use the MLEvaluate() evaluate but I receive an error while compilation. My codes are as below: ...
1
vote
2answers
194 views

MathLink Graphical Output (Plots) to File

In a custom Mathematica frontend based on MathLink I try to make use of plots produced in Notebooks. The idea is to write them to files whenever they get produced. According to C-code snippets I ...
0
votes
0answers
45 views

MathLink wrapper for NIntegrate

I wonder if I can benefit from the Mathematica numerical quadrature routines in a way which integrates completely into an existing C-program. To be more specific I have C-program which does numerical ...
0
votes
0answers
45 views

Set form of all output to InputForm

I try to interact with mathematica using MathLink for symbolic computations. By default it returns strings such as 2\012-1 + E\012-------\012 3\012 E if the ...