Nonlinear Greybox Object (idnlgrey) for Simulink realtime
조회 수: 1 (최근 30일)
이전 댓글 표시
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
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
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:
댓글 수: 1
Rajiv Singh
2019년 8월 21일
참고 항목
카테고리
Help Center 및 File Exchange에서 Simulink Design Optimization에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!