In what format does Simulink export signals?
1 view (last 30 days)
Show older comments
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 Comments
Answers (1)
Mark McBroom
on 6 Apr 2016
Since the data type of the signal is double, Simulink would send 8 bytes (64 bits) representing the number in IEEE 754 format.
1 Comment
Walter Roberson
on 6 Apr 2016
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".
See Also
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!