When your Simulink TCP/IP block expects raw 4-byte binary data representing an int32, you must send the number in that exact byte form, not as a textual string.
TCP/IP Message from Python to Simulink?
I have a Simulink block, accepting TCP/IP connections and reading the incoming data.
The data has to be integers of type int32.
Imagine we have a variable of any integer number in Python.
We can convert the number to a string and send it via a tcp socket. So far no Problem.
But how to convert the number to that kind of string, that my Simulink blocks receives the number in int32 format?
Follow
1
Add comment
More
Report
1 Expert Answer
Still looking for help? Get the right answer, fast.
Ask a question for free
Get a free answer to a quick problem.
Most questions answered within 4 hours.
OR
Find an Online Tutor Now
Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.