Matlab Coder: "Run Generated Code" button disabled

2 ビュー (過去 30 日間)
Sridhar Gopinath
Sridhar Gopinath 2018 年 4 月 13 日
回答済み: Ji Lee 2018 年 4 月 16 日
I am trying to generate fixed-point C code for a classifier written in Matlab. I am using the Fixed-point Toolbox for generating the Matlab fixed-point code and the Matlab Coder to generate the C code.
The code generation has been successful (config: static library on the host computer).
I am now trying to verify the generated code by running it on the test script which I had specified. But when I open "Verify Code", the "Run Generated Code" option has been disabled with no error message. I am not able to figure out how to verify the code.
I have attached a screenshot of the same. Can someone let me know what's going on?

採用された回答

Ji Lee
Ji Lee 2018 年 4 月 16 日

Unfortunately, the integrated verification portion of the "Generate" step in the app does not currently support workflows containing automated fixed-point conversion. As the code generated for the converted fixed-point code does not use the original floating-point types, it is not expected to work with unmodified test benches that invoke the functions with floating-point data.

However, the automated fixed-point conversion process does produce a secondary output that is best described as a "wrapper" function that wraps the fixed-point version of the function with additional type conversion logic. This can possibly be used as part of a workaround for app limitations in the verification area. In this case, it is easiest to use the wrapper function as part of a second MATLAB Coder project.

Please see the details I posted in response to your other question regarding example main generation as the workaround will be the same. Linked here

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeFixed-Point Conversion についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by