Azzera filtri
Azzera filtri

Executing the function find_system and load_system using MCR

4 visualizzazioni (ultimi 30 giorni)
Hello,
I am making a C# application along with MCR. I made a MATLAB function using the commands find_system and load_system. The .NET assembly was generated, but when I tried to execute it, it gave me an error
... MWMCR::EvaluateFunction error ... Undefined function or method 'load_system' for input arguments of type 'char'.
Can't these functions be executed using MCR?

Risposte (1)

Kaustubha Govind
Kaustubha Govind il 30 Gen 2012
As is documented here, Simulink functions in general are not supported for deployment with MATLAB Compiler/Builder products. However, you can use Simulink Coder or Embedded Coder to generate C/C++ code from a Simulink model that can then be deployed. Note however, that find_system and load_system are still not supported for code generation. The only option to be able to call these functions from .NET is to have MATLAB installed on the target machine and use one of the available options for external interfacing, like the COM interface or the MATLAB Engine API.

Categorie

Scopri di più su Simulink Coder in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by