Building model error (Invalid run-time parameter)
조회 수: 7 (최근 30일)
이전 댓글 표시
Hi,
I am using Matlab R2009a on windows 7. I have a model which works fine in Simulink, but when I try to run the model on the xPC Target I get the following (strange) error:
Error building Real-Time Workshop target for block diagram.. Matlab error message: Invalid run-time parameter registration in S-function '..../Direct Lookup Table (n-D)2'. It can register run-time parameters only if the S-function is being inlined.
The strange thing is that the Direct Lookup Table is a built-in Matlab S-function. Apart from this, I can find the corresponding tlc file of the particular s-function.
(Switching to a newer version of MATLAB, unfortunately, is not an option, because of incompatibility issues with the model. The same model works fine in another machine with exactly the same configuration settings) Also, I have tried with two different c compilers: Microsoft visual studio 2005 and 2008.
Any help would be greatly appreciated.
댓글 수: 0
답변 (1개)
Kaustubha Govind
2012년 6월 8일
There is a Bug Report with the same issue that says the bug was fixed in R14SP3. Can you see if turning "Inline Parameters" off fixes the issue?
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 General Applications에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!