Nonlinear Greybox Object (idnlgrey) for Simulink realtime

조회 수: 1 (최근 30일)
Roman Weiss
Roman Weiss 2019년 8월 6일
댓글: Rajiv Singh 2019년 8월 21일
Hey everyone,
is there any built-in solution for usage of the simulink block "Nonlinear Grey-Box Model" for Simulink Real-Time (2015b). If I try to generate code, the error "Invalid parameters for S-function 'test_model_realtime/Nonlinear Grey-Box Model/Internal'. For code generation, S-function parameters must be one or two dimensional nonsparse numeric or character arrays unless the S-function uses a TLC file and has an mdlRTW function." occurs.
Thanks in advance!
  댓글 수: 1
Sahithi Kanumarlapudi
Sahithi Kanumarlapudi 2019년 8월 13일
Could you be more clear on what you mean by any built-in solution for usage of the block.
And as far as the error message is concerned the might be something wrong with the parameters passed to the 'idlngrey' function

댓글을 달려면 로그인하십시오.

답변 (1개)

Rajiv Singh
Rajiv Singh 2019년 8월 20일
idnlgrey block does not support code generation. But there are workarounds depending upon why you need to generate code. If you are hoping to tune parameters of your model in deployed code, you are out of luck; you will need to write your own code for numerical optimization. If on the other hand if you just need to simulate the grey box model, you will need to write a C S function that implements the ODE function used by the idnlgrey model.
See:

카테고리

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

제품


릴리스

R2015b

Community Treasure Hunt

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

Start Hunting!

Translated by