In what format does Simulink export signals?
2 ビュー (過去 30 日間)
古いコメントを表示
Hello everyone! I have a simple question. What format are Simulink signals in and specifically what format are they exported in? For example, say I connect a constant of 2 in the format Double to a UDP-Send block. Then at the other end of the network I receive UDP packets with an arbitrary device and program which just lists all data received, what would show up? Would I get the number 2, or would I get the binary equivalent or perhaps the Hex value?
Thanks a lot for your info!
0 件のコメント
回答 (1 件)
Mark McBroom
2016 年 4 月 6 日
Since the data type of the signal is double, Simulink would send 8 bytes (64 bits) representing the number in IEEE 754 format.
1 件のコメント
Walter Roberson
2016 年 4 月 6 日
Note that unless you specifically arranged otherwise, the byte order would be the byte order of the sending system, which would be "little endian" on all currently supported platforms. However, the networking standards are that if not otherwise specified, numbers should be sent in "big endian".
参考
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!