Narrowband Receive Array of phased array system toolbox has error when when using HDL coder

1 view (last 30 days)
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?

Answers (1)

UDAYA PEDDIRAJU
UDAYA PEDDIRAJU on 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:
  1. 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.
  2. 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!

Products


Release

R2023b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!