Narrowband Receive Array of phased array system toolbox has error when when using HDL coder
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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 commentaire
Réponses (1)
UDAYA PEDDIRAJU
le 24 Nov 2023
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!
Voir également
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!