Error while using byte unpacking in simulink
22 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Nithesh Thakku Krishnamoorthy Ganesan
am 9 Sep. 2022
Kommentiert: Nithesh Thakku Krishnamoorthy Ganesan
am 12 Sep. 2022
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 Kommentare
Akzeptierte Antwort
Pavan Singh
am 12 Sep. 2022
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).
1 Kommentar
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Modeling finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!