Questions tagged [.netlink]
Questions about integrating Mathematica and .Net using the .NET/Link functionality provided with Mathematica.
38
questions with no upvoted or accepted answers
8
votes
0
answers
267
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 ...
7
votes
0
answers
207
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:
...
6
votes
0
answers
209
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 others....
5
votes
0
answers
773
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 “...
5
votes
0
answers
210
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 ...
4
votes
0
answers
63
views
Is it possible to load F# types using .NET/Link?
Suppose I define a type in F# such as:
...
4
votes
0
answers
657
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
0
answers
63
views
How to do simple operations on the .Net side using NETLink`?
I am trying to learn how the NETLink functionality works. Consider the following example:
I import the library:
...
3
votes
0
answers
200
views
Use NETLink to call C# code that uses packages from nuget
I can successfully load and run methods of a static class I have written in c# using:
...
3
votes
0
answers
133
views
FORTRAN complex number passing to Mathematica through NETLink
I used to use NETLink to call FORTRAN functions or subroutines compiled into a dll file. This works very well until now that I want to call a function which has complex arguments and returns a complex ...
3
votes
0
answers
220
views
VS c# NetLink - pictureBox - MathCommand
Has anyone experiance or a running example how to use within VS C# the NetLink.UI pictureBox to plot graphics, especially using the pictureBox - "MathCommand"
I use the code example below which throw ...
2
votes
0
answers
50
views
On the Force32Bit option of NETLink
It seems that the 32-bit option of NETLink has been planed to be ommited since 12.0+. I found that the code
...
2
votes
0
answers
93
views
NetLink with SsfPack (a .dll) for use in State Space Time Series
I have recently been doing work in the field of State Space Time Series. Mathematica does not have a lot of built in tools for working in this area. There is a well known package that is available, ...
2
votes
0
answers
1k
views
Load function returning array or string from DLL created in Delphi
I'm trying to call a function from a 32-bit DLL created in Delphi. My (simplified) function is defined in Delphi like so:
...
2
votes
0
answers
232
views
How to handle DLL dependencies between .NET dll and non-.NET dll's
I think my problem arises because I am successful with loading a .NET assembly, creating an instance and calling methods from a .NET dll. Certain methods, however, call methods from other non.NET ...
2
votes
0
answers
91
views
Call Remote Kernel from NETLink
Is it possible to run a remote kernel from NETLink in some way as suggested by the second method below: DoRemoteMathCommand?
(...
2
votes
0
answers
166
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 ...
1
vote
0
answers
25
views
Does .NET/Link work with .NET 7.0 assemblies?
Is it possible to call methods in a .NET 7.0 assembly from Mathematica? If so, then how is that accomplished?
This is my first foray using .NET/Link. I was able to get a test project working that ...
1
vote
0
answers
31
views
MathKernel.exe not being killed while running from .NET C#
I am using Mathematica from .NET (C#) to compute the result based on some input, following is the code snippet of C#
...
1
vote
0
answers
224
views
How to integrate a function written in fortran that solves a set of nonlinear equations into mathematica?
I am trying to integrate the solver for the set of nonlinear equations link written in Fortran language into mathematica . To do so i developed a function called netlib based on the explanation given ...
1
vote
0
answers
63
views
How to pass parameter to netlink objects
NETBlock[
InstallNET[];
excel=GetActiveCOMObject["Excel.Application"];
excel@ActiveWorkbook@SaveAs["blahblah.xlsb"]
];
How do i pass the fileformat ...
1
vote
0
answers
105
views
How to send Map[Plus[1, #] &, {1, 2, 3}] to Mathematica from C# via IKernelLink?
Here is a piece of my code
...
1
vote
0
answers
92
views
Using FindMinimum of a function imported via DefineDLLFunction
Mathematica newbie here, just used it today for the first time.
So I've successfully "imported" a function from a dll I've built (in C++ with VS), using .NET/LINK and DefineDLLFunction and I've ...
1
vote
0
answers
52
views
Instant detection of digital or analogue variation of a variable with Mathematica in Windows 8.1
I am using an assembly that contains two acquisition board (PCI-1742U-AE and PCIE-1816H-AE) and an external circuit, connected to boards. The computer uses Windows 8.1, and the communication is done ...
1
vote
0
answers
56
views
Passing boolean parameters to a .NET Method using NETLink
According to the NETLink documentation, NETLink automatically handles type conversions from Mathematica to a .NET dll. One of the issues I have is that the .NET method I want to use expects a Boolean ...
1
vote
0
answers
147
views
1
vote
0
answers
523
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.
...
1
vote
0
answers
180
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
0
answers
122
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 ...
1
vote
0
answers
194
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 ...
0
votes
0
answers
46
views
Unable to load DLL 'ml32i4.dll' when calling .NETLink for .NET Framework 4.6.1 application
I have added Wolfram.NETLink to a C# .NET Framework 4.6.1 application via NuGet. NuGet installs this to the C:\Users\[user]\.nuget\packages\wolfram.netlink\1.7.1 ...
0
votes
0
answers
53
views
Pass parameters to notebook being opened?
Is there a way to pass a parameter to a notebook which is being programmatically opened?
For example, I would like to be able to pass a parameter to myNotebook.nb
...
0
votes
0
answers
35
views
How to get Excel cell dependents from other sheets in the same workbook?
I have an excel file with two sheets Sheet1 and Sheet2.
In 'Sheet1'!C14 I have a formula <...
0
votes
0
answers
103
views
About using C# to load a package in a Mathematica .m file
I tried to load my .m file in the following way;
...
0
votes
0
answers
158
views
Unable to load DLL assembly with NET/Link
I am using Math'a 12 on iMac OS 10.14 to load a DLL. To simplify I stored the file in the NoteBook directory, however a listing of assemblies in the directory gives me an error. Ive tried installing ...
0
votes
0
answers
83
views
Creating a slideshow from MathKernel
I've recently started playing with the MathKernel using Wolfram.NETLink.dll and it works great in my C# .NET solution.
To give some background, I had created a Mathematica notebook that generates ...
0
votes
0
answers
416
views
Integrate fortran function into Mathematica
I was trying to use Fortran function in Mathematica. I was following mainly this answer . My Fortran code looks like this:
...
0
votes
0
answers
145
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), ...