The TCP/IP function of Simulink

I've create a tcp/ip connection between the '.m' file and Simulink. When I use 'sine wave' to send data though 'TCP/IP Client Send', it can get though successfully. However, when I use 'clock' to send data though 'TCP/IP Client Send', the it is wrong.

1 comentario

Walter Roberson
Walter Roberson el 23 de Jul. de 2024
Is it possible that the previous TCP socket still exists ?

Iniciar sesión para comentar.

Respuestas (1)

Pramil
Pramil el 25 de Jul. de 2024
Editada: Pramil el 25 de Jul. de 2024

0 votos

Hi Jiaji,
If you can send “sine wave” then “clock” should also work assuming that your TCP/IP echo server is still running. You can refer the following documentation for the before mentioned.
Also, here is a link to another documentation that states step by step process for setting up a TCP/IP connection.
Hope it helps.

Categorías

Más información sobre Simulink Coder en Centro de ayuda y File Exchange.

Productos

Versión

R2022b

Etiquetas

Preguntada:

el 23 de Jul. de 2024

Editada:

el 25 de Jul. de 2024

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by