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

learn more… | top users | synonyms (1)

0
votes
1answer
15 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: ...
2
votes
0answers
56 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 ...
0
votes
0answers
57 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 ...
3
votes
1answer
73 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 ...
0
votes
0answers
46 views

When using NETLink, what is sufficient sanitization?

I am writing a webapp where I use MM via NETLink to process user inputs. In one example, the user will have a textbox in which they can write some simple numerical expression, and using MM together ...
5
votes
1answer
118 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
39 views

load static library (.lib) using NETLink

is it possible to load static library (.lib) compiled in c++ using NETLink or similar in Mathematica?
0
votes
1answer
41 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 ...
17
votes
1answer
620 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
47 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), ...
0
votes
0answers
91 views

Extract pointer to a structure via netlink

In a dll library I have the C function DRV_DioReadBit, containing the structure ...
1
vote
0answers
67 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
53 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
241 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
81 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
81 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 ...
12
votes
1answer
229 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 ...
0
votes
0answers
38 views

netlink ikernellink. How to ignore unread data

I use IKernelLink class. When I call evaluate method, I get an exception, because I have unread data. How can I ignore it?
5
votes
2answers
127 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? ...
4
votes
1answer
137 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
282 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
61 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 ...
1
vote
1answer
131 views

Interface C# STAThread

How do I convert a .NET STAThread into .NET/Link Mathematica code? Alternatively what would be the easiest way to compile and run the program below from within mathemaitca? ...
3
votes
2answers
201 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. EDIT: ...
2
votes
0answers
252 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
195 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 ...
10
votes
1answer
448 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
165 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
119 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
214 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: ...
1
vote
1answer
221 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#?
7
votes
1answer
292 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
135 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 ...
10
votes
1answer
633 views

Load a Mathematica Package via .Net code

I'm using C# to pass data to Mathematica and return graphs: ...
1
vote
1answer
280 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
124 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 ...
9
votes
2answers
643 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 ...
4
votes
1answer
257 views

How to output from a .NET console app to an existing Notebook in Mathematica?

I'm wondering if its possible push output from a .NET console application to an existing Notebook that is open in Mathematica. The reason I'd like this is that I want to use Mathematica as a ...
7
votes
0answers
173 views

Socket communication and player pro

I'd like to create a simple communication channel between MMA and the animation package 'Maya'. This is possible over sockets ( very simple, just sending and receiving strings). I've got this working ...
6
votes
0answers
420 views

Using Mathematica as a data visualization front end for .Net applications?

I have a C# application that has 3-dimensional data that I wish to plot. Controls in C# for surface modeling are, in my experience, rather limited. I wish to have my C# application send the 3D point ...
10
votes
1answer
1k views

How can I deploy DLL files created by a Fortran function and call them from Mathematica

This is my Fortran function, established by Intel visual Fortran 11.1 ...
15
votes
2answers
631 views

Is it possible to embed the Mathematica editor?

Is it possible to embed a Mathematica window into a .NET application? I mean not just the interop, but actually making the notebook editor window part of a .NET form. Is this possible?
16
votes
2answers
1k views

Open Excel file with Mathematica

I would like to open an Excel file and manipulate it as a COM object. While I'm able to open an instance of excel with ...
7
votes
1answer
564 views

Efficiently deleting rows in many large text files

I have 500 text files each of about 200000 rows. I need to delete one row in each of them as fast as possible (later such operations will repeat). What is the best way to do this with Mathematica? ...
21
votes
2answers
1k views

How do I call a 32-bit DLL using .NET/Link and a 64-bit version of Mathematica?

The .NET/Link tutorial shows how to call functions defined in DLLs. The example uses the GetTickCount Win32 API function ...
21
votes
1answer
786 views

Using .NET 4.0 from NETLink

Using Mathematica 8, I can check the version of the .NET framework used by NETLink as follows: ...
22
votes
3answers
956 views

Calling IronPython code from Mathematica

I'd like to call some IronPython code from Mathematica using .NET/Link. The problem is that the code lives in .py files, yet from Mathematica I can only load .NET assemblies which are DLLs. So it ...
9
votes
1answer
254 views

Suppress Mathematica Kernel taskbar tab when using .NETLink

Is there a possibility to suppress the Mathematica Kernel taskbar tab when accessing it through .NETLink on Windows?
13
votes
1answer
609 views

Is it possible to use C# LINQ from Mathematica using .NET/Link?

Using Mathematica's .NET/Link (NETLink`) package, is it possible to call out to .NET's LINQ facilities for list manipulation and other operations?