Azzera filtri
Azzera filtri

Building model error (Invalid run-time parameter)

20 visualizzazioni (ultimi 30 giorni)
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.

Risposte (1)

Kaustubha Govind
Kaustubha Govind il 8 Giu 2012
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?

Categorie

Scopri di più su General Applications in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by