Code generation does not support display for handle classes. 'comm.HDLRSEncoder' is a handle class.
5 views (last 30 days)
Show older comments
Hi everyone,
Is there a way to validate my Fixed-Point Conversion of the Workflow Advisor, with the HDL Reed-Solomon Encoder function of matlab (handle class)?
Thank you
0 Comments
Answers (1)
Umeshraja
on 4 Mar 2025
I understand that you encountered an issue while attempting to generate code for the 'comm.HDLRSEncoder' class. To reproduce the issue, consider the following code:
function test_codegen
comm.HDLRSEncoder
end
When you attempt to generate code using the command:
>>codegen -report test_codegen
The output will be:
>> Code generation does not support display for handle classes. 'comm.HDLRSEncoder' is a handle class.
This issue occurs because MATLAB Coder attempts to generate MEX code that displays the handle class, which is not supported for code generation. The root cause is the absence of a semicolon at the end of the line, which suppresses implicit output in MATLAB.
To resolve this issue, you can add a semicolon to suppress the display. For example:
function test_codegen
comm.HDLRSEncoder;
end
Adding the semicolon prevents MATLAB Coder from trying to display the handle class, allowing MEX generation to succeed.
I hope this helps!
0 Comments
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!