Executing the function find_system and load_system using MCR

4 次查看(过去 30 天)
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?

回答(1 个)

Kaustubha Govind
Kaustubha Govind 2012-1-30
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.

类别

Help CenterFile Exchange 中查找有关 Simulink Coder 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by