Load .Net Assembly to use in Simulink

4 visualizaciones (últimos 30 días)
Pavel
Pavel el 27 de Jul. de 2023
Respondida: Animesh el 14 de Ag. de 2023
Hello,
I am trying to use another application whose API is only availble in .Net with Simulink.
I can load the assembly and use the methods using Matlab Interpreted function block, but it is quite slow and will be deprecated soon.
Embedded Matlab function doesn't support NET.addAssembly.
What are my options?
I suppose I can try to wrap the C# dll with C++ and create a s-function but this would be last resort.

Respuestas (1)

Animesh
Animesh el 14 de Ag. de 2023
Hello Pavel,
You can use InitFcn, PreLoadFcn or PostLoadFcn Callbacks to run your MATLAB Code to load the assembly or you can create a C++ S-Function to wrap the C# DLL.
Thanks,
Animesh Jha

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by