Questions about integrating Mathematica and .Net using the .NET/Link functionality provided with Mathematica.

learn more… | top users | synonyms (1)

0
votes
0answers
41 views

Mathlink returning wrong output [on hold]

My code below shows the function I am putting into the kernel to compute mathskernel.Compute("NSolve[" + yaxisin + ", y]"); where ...
1
vote
0answers
26 views

Sub-processes (like XML.exe, GZIP.exe) not ended properly

I have difficulties with running MathKernel.exe from .NET and sub-processes like XML.exe and GZIP.exe, which are not terminated properly. Sometimes even the MathKernel.exe task stays active and is ...
3
votes
1answer
65 views

Get .NET Link to work on Raspberry Pi

Is it possible to get the .NET Link working on Raspberry Pi? I understand that Linux and MacOS versions of Mathematica come with .NET Link running on Mono and now even possibly under new open-source ...
0
votes
0answers
77 views

Call functions from a notebook inside C#

Is there a way to use functions from a notebook in C# with NETLink ? I found only this: Evaluate Notebook from .Net, but it is not of much help. Any suggestions ?
1
vote
1answer
82 views

Load a package and use it's functionality inside C#

I am trying to make a windows C# form which uses some functions that I wrote inside Mathematica. Suppose that we have the following package: ...
0
votes
0answers
62 views

How to work with Wolfram .NET/Link

I evaluate Needs["NETLink`"]; InstallNET[]; A window opens and offers to open an .EXE file. I don't know what is it.
3
votes
1answer
151 views

Problem with .NET/Link - Unable to load DLL 'ml32i4.dll'

I have programmed this example for the last 6 years with various versions of Mathematica and .NET. This year I have moved to Version 10.0.2 and it doesn't work. I am using Visual Studio 12 for C#. My ...
0
votes
0answers
39 views

What kind of objects in NETLink for PicoScope interfacing?

I have two issues in my mathematica code for control PicoScope using NETLink. PicoScope series 3206 remote controll was in one paper already shown ...
6
votes
2answers
117 views

How can I create an object in NETLink from System.Collections.Generic.List

I am using NETLink and I am trying to construct the following .NET object List<string> list = new List<string>(); My first question is how can I load ...
1
vote
1answer
99 views

How to fill a Marshal buffer with whitespace using NETLink

Further to Todd Gayley's answer on string handling in a DLL function, I have the following code: ...
0
votes
0answers
37 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
92 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 ...
4
votes
0answers
76 views

How to use named arguments in .NET/Link (COM interface to Excel)

I am using Excel from Mathematica through .NET/Link (specifically using the COM interface). The following C# code adds a sheet after the last sheet: ...
1
vote
0answers
116 views

Call Mathematica function From .NET

What is the easiest way to call a function defined in Mathematica from .NET? I have the following defined in my current local Mathematica session. ...
6
votes
0answers
177 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: ...
2
votes
0answers
122 views

Problems creating CDF via .NET DLL

I have read several posts at SE and googled a lot, but I still have difficulties to create a CDF via .NET. My first try was the Wolfram example MathKernelApp.exe ...
3
votes
1answer
3k views

A .NET exception occurred: System.IO.FileLoadException:Could not load file or assembly

Note: Answering my own question as a wiki for future reference. When loading a .Net DLL: ...
4
votes
1answer
161 views

Using the OSX Cocoa-APIs from Mathematica via Link-Technology

I'd like to access Cocoa-API's (Foundation, AppKit) from Mathematica and have researched the following ways: CocoaLink: A deprecated Package by Rob Schlofield from 2009, which is still available on ...
6
votes
1answer
294 views

Calling a dll from Mathematica

I would like to call the following function from Mathematica ps3000aOpenUnit PICO_STATUS ps3000aOpenUnit ( short * handle, char * serial ) I define the ...
5
votes
1answer
116 views

Run encoded package code through .NET/Link?

An earlier question of mine, Prevent package from being opened in a notebook interface, never received an answer, but Albert Retey's comments did lead me to an entirely different solution. To secure ...
5
votes
1answer
164 views

Prevent package from being opened in a notebook interface

I have a package which I need to deploy in a client's environment. It has proprietary code and solutions that I need to protect from prying eyes and inquisitive minds. The forum has discussed much ...
1
vote
1answer
66 views

load static library (.lib) using NETLink

is it possible to load static library (.lib) compiled in c++ using NETLink or similar in Mathematica?
3
votes
1answer
76 views

.NET link - index of property

I have a property in .NET Type, which is actually a generic list of objects. When I try access the property using numeric index e.g. 10, this works. However when I iterate through indices using ...
19
votes
1answer
937 views

Web Browser Screen Shot

I have Safari, Opera, Chrome, Firefox and IE installed how might a get a browser screen shot of a set of HTML code from inside Mathematica(for any of those browsers)? (Image is optional) The ...
0
votes
0answers
67 views

Plot hangs Mathematica through NETLink

I have a C# function that calls Mathematica via Wolfram.NETLink. On our home computers all the test calls work perfectly, but on our AWS server (both a microinstance and a beefy c3.xlarge instance), ...
1
vote
0answers
107 views

Load a Mathematica Notebook using .Net code

I have gotten a tremendous amount of information from the question posted at (Load a Mathematica Package via .Net code), which my application is very similar to. Specifically in that thread, the ...
1
vote
0answers
72 views

Extract information from functions that returns nested structures with DefineDLLFunction

Where can I find examples devoted to extracting information from functions that returns nested structures with DefineDLLFunction in Mathematica? The only example I found and understood, was given by ...
5
votes
0answers
365 views

How to extract structured array data from DefineDLLFunction in Mathematica

I want to use my Bluechip PCI-ADC acquisition card in Mathematica via his dynamic link library “Bcdll32.dll”; (used to access functions on my PCI data acquisition cards). My problem is the function ...
0
votes
0answers
110 views

Netlink interface for arduino - led blink example implementation

I'm trying to learn of how I can use netlink in Mathematica to communicate with arduino. So question is the following: Can some one that has such experience in programming arduino using netlink in ...
1
vote
2answers
99 views

Identify / change working directory for the InstallableNET runtime

I am currently attempting to use .NET/link to call a third party DLL from Mathematica using DLLDefinedFunction. I have been able to link against and call many of ...
13
votes
1answer
376 views

Formatting Excel Borders with .Net

I have various tables generated in a Mathematica application and need to export this to MSExcel formatted in a specific way. The ...
6
votes
2answers
166 views

getting Mathematica messages in .NET

For example, equation Sin[10*x]-Log[x]==0 can't be solved by NSolve. Mathematica returns message "NSolve::nsmet". How can I get messages in my c# program? ...
6
votes
1answer
202 views

How can multiple null terminated strings be handled in a DLL-function result?

I am trying to connect a classic System Dynamics tool (Vensim DSS) with Mathematica using a DLL that is included in Vensim DSS. Reading though the instructions on how to define DLL functions on how to ...
15
votes
2answers
333 views

MathKernel doesn't return all Messages

In Mathematica I run this command: Plot[Sin[x], {x, 1, 15}, GridLines -> error] It generates a Plot with this error message: A GridLines specification ...
1
vote
1answer
85 views

Aborting a computation correctly in .NETLink to allow future computations

Has anyone had any success using the AbortEvaluation() function in IKernelLink to stop a computation and then do more ...
5
votes
2answers
306 views

How to access graphics from .NET in Mathematica?

I would like to use Wolfram.NETLink.MathKernel.Graphics to retrieve an image generated from a Mathematica command. Which Mathematica command do I use to do this? ...
4
votes
0answers
336 views

Retrieving Data from Excel Using NETLink / Pulling data using RTD Link

Reference: I've looked at the posting Open excel file with Mathematica. My intention is to be able to use Excel's RTD capability in order to pull market data into Mathematica. To my knowledge, this ...
3
votes
1answer
257 views

Command to get License Management Monitor info

Using Netlink, when we have more users than Mathematica licenses (used in a pool), we get messages such as: Error code: 11. Connected MathLink program has closed the link, but there might still be ...
11
votes
1answer
693 views

Mathematica Functions from VBA

I'm trying to call Mathematica functions from VBA (Excel) using .NETLink without success. (Yes, I know Mathematica Link for Excel exists. And yes, I know the proper thing to do is buy it. However, ...
2
votes
1answer
222 views

Using NetLink to Import Excel File

I can import an Excel file into Mathematica easily: But when I try from .Net it fails: These are the commands and errors I am getting: ...
3
votes
1answer
198 views

NetLink Exporting Images doesn't work (Unknown string escape)

Exporting Image files (intermittently) doesn't work: I get messages back indicating the error is to do with escaping characters: ...
4
votes
1answer
265 views

CreateCOMObject doesn't work on home edition

I can call an application named "PinPoint.Plate" with Visual Basic, Python and Mathematica version 8 but not with version 9. I can still call Excel though. How can I fix this? This is what I did: ...
2
votes
1answer
404 views

Evaluate Notebook from .Net

How is it possible to send the whole content of an existing notebook to Mathematica for evaluation by using NetLink/C#?
9
votes
1answer
404 views

Running .NET/Link on Mono (On MacOS or any UNIX or Linux Distro)

Has anyone have any luck running .NET/Link on Mono? When I run .NET/Link to call Mathematica from within a Mono program, this is the error message I receive. ...
6
votes
0answers
158 views

In .NET/Link, how do I not open multiple kernels?

I'm writing an ASP.NET page intended for multiple users. On the backend we have datatypes that are primarily mathematical, and interact with Mathematica for string-to-double evaluations, among ...
11
votes
1answer
1k views

Load a Mathematica Package via .Net code

I'm using C# to pass data to Mathematica and return graphs: ...
1
vote
1answer
442 views

Converting Excel serial dates with NETLink

Excel serial dates are not straightforward to convert since they include non-existent dates, e.g. {DatePlus[{1990, 1, 0}, 59], DatePlus[{1990, 1, 0}, 60]} ...
5
votes
0answers
151 views

Embed a Microsoft RichEdit 8 control in a Mathematica notebook using .NETLink?

Does anyone know whether or not it's possible to embed a RichEdit 8 control within a Mathematica Notebook using .NETLink? The goal here would be able to both view and edit mathematical text typeset ...
12
votes
2answers
777 views

Does Mathematica have a “MATLAB Builder” equivalent?

I was wondering if Mathematica has an equivalent of MATLAB's "MATLAB Builder" as seen here? I found this but it reads as if all programs using .NET/Link must have Mathematica installed on them as ...