Why do I get this error Code generation does not support display for MATLAB classes. 'dsp.HDLIFFT' is a class. ?
조회 수: 1 (최근 30일)
이전 댓글 표시
I am trying to call a function, which create dsp.IFFT system object, inside another for HDL Code generation.
My Code: %main function
function [out1,out2] = main(x,y,z)
%call subfunction 1
out1 = sub1(x);
%call subfunction 2
out2 = sub2(y,z);
end
subfucntion 2 codecode:
function [yOut,validOut] = HDLIFFT128(yIn,validIn)
persistent ifft128;
if isempty(ifft128)
ifft128 = dsp.HDLIFFT('FFTLength',128);
end
[yOut,validOut] = step(ifft128,yIn,validIn);
end
댓글 수: 0
채택된 답변
Walter Roberson
2016년 7월 13일
The connection between your two routines is not clear.
I suspect the problem might be because you have not put semi-colon on the end of your assignments to out1, so you are requesting that the result be displayed. If the result is not numeric then the coder will not know how to display it.
Note that you do not assign to out2 in your main function.
댓글 수: 2
Walter Roberson
2016년 7월 13일
I would suggest breaking it up into two pieces, one of which constructs the ifft128 object, and the other of which expects that object to be always input.
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Python Client Programming에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!