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!