Hello,
I'm trying to generate code from the Embedded Coder. I have a couple of lookup tables in my model but it appears they are not converted well from the model to the C code.
Do I have to set some specific parameters or flag some particular option?
Thanks!

 採用された回答

Fangjun Jiang
Fangjun Jiang 2020 年 6 月 26 日

0 投票

Column-Major Layout to Row-Major Layout Conversion of Models with Lookup Table Blocks
web(fullfile(docroot, 'ecoder/ug/column-major-to-row-major-conversion-of-models-with-lookup-table-blocks.html'))

4 件のコメント

Matteo Manzini
Matteo Manzini 2020 年 6 月 26 日
Ok, thanks. My LUT is a 1-D one. Does the conversione benefit from the column-major to row-major also in this case?
Fangjun Jiang
Fangjun Jiang 2020 年 6 月 26 日
No. What is your issue?
Matteo Manzini
Matteo Manzini 2020 年 6 月 26 日
I have a very simple LUT for a linear conversion. More or less 15 points for breakpoints and table data but apparently I don't get the exact interpolation once I have converted the model to code. I basically get only a couple of outputs from the LUT, it seems like the interpolation is not working.
Fangjun Jiang
Fangjun Jiang 2020 年 6 月 26 日
You can run your simulation in normal mode and SIL mode (software in the loop, which is C code) and compare.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File Exchange で Simulink Coder についてさらに検索

製品

リリース

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by