필터 지우기
필터 지우기

Building model error (Invalid run-time parameter)

조회 수: 20 (최근 30일)
Agamemnon Krasoulis
Agamemnon Krasoulis 2012년 6월 7일
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.

답변 (1개)

Kaustubha Govind
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?

카테고리

Help CenterFile Exchange에서 General Applications에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by