Error while calling place()

조회 수: 4 (최근 30일)
Avneet kaur
Avneet kaur 2019년 11월 5일
답변: Chidvi Modala 2019년 12월 19일
I am facing issue in calling the place function from a user defined function block in simulink
Function 'place' not supported for code generation. Function 'Controller' (#23.121.133), line 7, column 5: "place(A,B,p)" Launch diagnostic report.

답변 (1개)

Chidvi Modala
Chidvi Modala 2019년 12월 19일
From my understanding, 'place' function is not supported for code generation. Not all built-in functions are supported for code generation. You may find the list of built in functions for which code generation is supported here. There are two workarounds for this problem.
You may try implementing the built-in function in C/C++ or you may find a C/C++ program with the required functionality. Now, you may call the external C/C++ file using coder.ceval()”.
You may declare the built in function as extrinsic using coder.extrinsic() function. During simulation, the code generator produces the code for the call to an extrinsic function but does not produce the function’s internal code.

카테고리

Help CenterFile Exchange에서 Simulink Coder에 대해 자세히 알아보기

제품


릴리스

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by