Questions tagged [.netlink]

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

31 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
9
votes
0answers
645 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 ...
8
votes
0answers
251 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
148 views

Echo server with Mathematica

Consider the following scenario: two wireless notebooks communicating via ad hoc one computer (the client) send packets via TCP protocol without Mathematica the other one is an echo server ...
6
votes
0answers
203 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
0answers
153 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: ...
5
votes
0answers
683 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
0answers
181 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
0answers
36 views

Is it possible to load F# types using .NET/Link?

Suppose I define a type in F# such as: ...
4
votes
0answers
575 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
0answers
94 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
0answers
110 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
0answers
191 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
0answers
64 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
0answers
180 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
0answers
75 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
0answers
113 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
0answers
36 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
0answers
55 views
1
vote
0answers
77 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
0answers
48 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
0answers
722 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: ...
1
vote
0answers
45 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
0answers
413 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
0answers
158 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
118 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
0answers
184 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
0answers
74 views

Calling FORTRAN function with fixed length Character

Following this example, I have tried to call subroutines written in FORTRAN which uses a fixed length character like "Character*255" (here 255 is an example). If the character length is given as ...
0
votes
0answers
73 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
0answers
203 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
0answers
134 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), ...