Why would I encounter an error message about unsuitable bus signal using DDS Blockset?

4 ビュー (過去 30 日間)
Hi,
I encounter the error : " The 'input port 1' of 'ddsblockset1/Outport' requires a bus, but it receives a non bus signal from the 'output port 1' of 'ddsblockset1/Write DDS Sample'."
The data type of the input and output ports has been selected as the "Dataype" defined by DDS. I don't seem to have any difference from the official example settings. Why did I encounter an error?
  3 件のコメント
昱颖 陈
昱颖 陈 2024 年 8 月 19 日
I modified my own model followed the shapedemo example
praguna manvi
praguna manvi 2024 年 8 月 21 日
can you please share your model

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

採用された回答

SACHIN KHANDELWAL
SACHIN KHANDELWAL 2024 年 8 月 23 日
Based on the image provided, it appears that the issue is that 'ddsblockset1/Outport' is expected to receive a 'Bus' signal, while 'ddsblockset1/Write DDS Sample' is providing a 'Non-Bus' signal.
Additionally, it seems that the output of your logic is currently a 'double'. To resolve this, try changing the output data type to a 'Bus' data type within your intermediate logic. If the issue persists, you can use a 'Bus Creator' block to convert the 'Non-Bus' signal into a 'Bus' signal.
For more detailed guidance, please refer to the following documentation: https://www.mathworks.com/help/simulink/slref/buscreator.html
  1 件のコメント
昱颖 陈
昱颖 陈 2024 年 8 月 23 日
Thank you for your answer. I changed the data type and other settings, and it seems that there are no more errors!

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeGet Started with DDS Blockset についてさらに検索

製品


リリース

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by