Building model error (Invalid run-time parameter)
14 次查看(过去 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 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!