In what format does Simulink export signals?
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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 commentaires
Réponses (1)
Mark McBroom
le 6 Avr 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 commentaire
Walter Roberson
le 6 Avr 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".
Voir également
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!