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?
댓글 수: 0
답변 (1개)
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.
댓글 수: 0
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!