is the "qammod" function in communication toolbox not compatible with hdl coder in version R2013a?
7 次查看(过去 30 天)
显示 更早的评论
i am trying to generate VHDL code of 16 QAM MODULATION from matlab code using HDL CODER. my code is
function mod_data =qammod(data_in_sym,M);
n=8
M=16
no_of_rows=n/4; no_of_bits_in_symbol=4;
data_in=[1;1;0;1;0;1;1;0];
data_instp=reshape(data_in,no_of_rows,no_of_bits_in_symbol);
data_in_sym=bi2de(data_instp);
now when i use the workflow adviser the following erroe comes:
??? Output argument 'mod_data' is not assigned on some execution paths.
Error in ==> qammod Line: 1 Column: 20
please point out the mistakes and give its solution.
5 个评论
Walter Roberson
2014-3-20
I am having difficulty determining at the moment whether qammod() is supported for code generation. It appears to me that there is an alternate coding that is supported; see http://www.mathworks.com/help/comm/ug/digital-modulation.html#fp59559
回答(1 个)
Ryan Livingston
2014-4-2
I'm not certain of your needs but the System Object comm.RectangularModulator is supported for HDL Coder:
http://www.mathworks.com/help/hdlcoder/ug/system-objects.html#bteb8b9-1 http://www.mathworks.com/help/comm/ref/comm.rectangularqammodulator-class.html
It may allow you to achieve what you need.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Waveform Generation 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!