Narrowband Receive Array of phased array system toolbox has error when when using HDL coder
Ältere Kommentare anzeigen
From document of Narrowband Receive Array:
Incident signal X supposed to be a complex-valued M-by-L matrix, but during HDL code generation, I got this error:
Block 'Narrowband Receive Array' does not support matrix types on its ports for HDL code generation.
I was confused with this error description, in the help document, it said the input should be a matrix, but matrix type is not supported on its port.
What can I do to solve this error?
1 Kommentar
Walter Roberson
am 5 Nov. 2023
Bearbeitet: Walter Roberson
am 5 Nov. 2023
Antworten (1)
UDAYA PEDDIRAJU
am 24 Nov. 2023
1 Stimme
Dear Zuyuan,
I understand the issue that you encountered with the "Narrowband Receive Array" block it is due to its incompatibility for matrix types on its ports during HDL code generation. Instead, you should try reshaping your input signal into a vector before connecting it to the block.
To address this, you can consider the following approaches:
- Use the Reshape block from Simulink to convert your input signal from a matrix to a vector before conn ecting it to the "Narrowband Receive Array" block.
- Alternatively, you can utilize the Array of Buses feature to pass multiple signals as a single bus to the block. This feature allows you to generate HDL code for subsystems with an array of buses.
For more detailed information on the "Array of Buses" feature and its benefits refer to the https://www.mathworks.com/help/hdlcoder/ug/generate-hdl-code-for-subsystems-with-array-of-buses.html.
Hope this helps!
1 Kommentar
zuyuan
am 1 Feb. 2024
Kategorien
Mehr zu Transmitters and Receivers finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!