Matlab Coder: "Run Generated Code" button disabled

3 次查看(过去 30 天)
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 个)

标签

Community Treasure Hunt

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

Start Hunting!

Translated by