Executing the function find_system and load_system using MCR

2 views (last 30 days)
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?

Answers (1)

Kaustubha Govind
Kaustubha Govind on 30 Jan 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.

Categories

Find more on Simulink Coder in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!