Error on transmitting image simulink [MODEL INCLUDED]

Hi,
I'm creating a simulink scheme to transmit an image through QAM modulation. However, I get this error:
Cannot propagate 3-D signal from 'Output Port 1' of block 'ImageQAM_2023/Image From File' to 'Input Port 1' of block 'ImageQAM_2023/Integer to Bit Converter'. The latter block does not accept signals with greater than 2 dimensions (either entirely or in its current configuration). Here is my scheme. Any clue? Thanks
UPDATED (23/2/2023): I've uploaded the model and an image to check.

 採用された回答

Walter Roberson
Walter Roberson 2023 年 2 月 21 日

0 投票

Your image is rgb but the downstream cannot handle rgb. You will need to convert to gray or convert to pseudocolor or reshape to be same number of rows but 3 times as many columns

9 件のコメント

Raúl Parada Medina
Raúl Parada Medina 2023 年 2 月 21 日
Thank you. I've converted the image from RGB to monochrome BMP and I receive these errors:
Error in 'ImageQAM_2023/Integer to Bit Converter': Multichannel operation is not supported.
Error in port widths or dimensions. 'Output Port 1' of 'ImageQAM_2023/Image From File' is a [150x150] matrix.
I cannot find solutions to the above errors. Please, some help. Thanks
Walter Roberson
Walter Roberson 2023 年 2 月 21 日
I guess you will need to use a reshape block to convert it into a vector.
Raúl Parada Medina
Raúl Parada Medina 2023 年 2 月 22 日
Great! I could solve that issue, however, I don't know why the Error Rate Calculation block launches an error:
I guess something I'm missing.
Walter Roberson
Walter Roberson 2023 年 2 月 22 日
Have you configured a solver block for the entire model, and set it to discrete time?
Raúl Parada Medina
Raúl Parada Medina 2023 年 2 月 22 日
I guess it is a solver configuration block. Where should I connect it and how to configure it? It is the first time I use this block.
Raúl Parada Medina
Raúl Parada Medina 2023 年 2 月 22 日
Thank you. I've tried auto and configured a fixed step size e.g. 0.1, however, I get this error: All sample times for the Constellation Diagram block must be discrete. Continuous and infinite sample times are not allowed.
Walter Roberson
Walter Roberson 2023 年 2 月 22 日
Please attach your model so someone can examine in more detail to figure out where the continuous parts are arising.
Raúl Parada Medina
Raúl Parada Medina 2023 年 2 月 22 日
Done! Thanks

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeRF Blockset Models for Transceivers についてさらに検索

製品

リリース

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by