필터 지우기
필터 지우기

Executing the function find_system and load_system using MCR

조회 수: 4 (최근 30일)
Sadanand
Sadanand 2012년 1월 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