Error while using byte unpacking in simulink
21 ビュー (過去 30 日間)
古いコメントを表示
Nithesh Thakku Krishnamoorthy Ganesan
2022 年 9 月 9 日
コメント済み: Nithesh Thakku Krishnamoorthy Ganesan
2022 年 9 月 12 日
I have a basic simulink model with the objective of transferring a simple sine wave using udp send and receive blocks. Both the blocks are in the same model. I have used byte packing and unpacking for this model. After I run this, I am getting this error:
"slrealtimebytepacking(Unpack): Invalid inherited input port width 512 for data type 0 (1)"
what should I do to rectify this error ?

0 件のコメント
採用された回答
Pavan Singh
2022 年 9 月 12 日
Make sure the UDP Receive and Send port width are set up correctly.
For example, if you are packing 1 "double" datatype signal,then the width should be 8 bytes. Also, if you're packing 2 "double" datatype signals, the width should be 16 because a double is 8 bytes (hence, total width/size is 2x8 = 16 bytes).
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Simulink Supported Hardware についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!