Why do I receive an error when using a tunable table with the 3-D Look-Up Table Block in Real-Time Workshop?
2 views (last 30 days)
Show older comments
Why do I receive an error when using an S-function generated using the S-function Target in Real-Time Workshop which contains a 3-D Look-Up Table Block with a tunable table parameter?
When I try to do a model update, I receive the following error:
Error using ==> set_param
Error reported by S-function 'test_sf' in block 'untitled/RTW S-Function':
Parameter d has to have 2 dimensions.
Accepted Answer
MathWorks Support Team
on 27 Jun 2009
This bug has been fixed in Release 14 Service Pack 2 (R14SP2). For previous releases, please read below for any possible workarounds:
To work around this issue, generate the S-function as usual. Ignore the error that occurs, and insert the S-function manually using an S-function Block. In the 'parameter' portion of the S-function Block dialog, 'flatten' the table parameter. For example, if the table parameter was originally 'd', enter 'd(:)' into the parameter dialog.
0 Comments
More Answers (0)
See Also
Categories
Find more on Simulink Coder in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!