Problem with TCP/IP Send Block in Simulink
Mostrar comentarios más antiguos
I am sending hardcoded values to a remote instrument via TCP/IP in Simulink. However, I keep getting the error: 'Error evaluating registered method 'Start' of MATLAB S-Function 'stcpipsb' in 'TestSend2/TCP//IP Send'.' What could be causing this? What configuration parameters might I need to change?
Respuestas (1)
Jitesh Patel
el 27 de Jul. de 2018
1 voto
In case anyone else is looking for answer - the TCP/IP blocks requires a server to be running with exact port available.
So running the command "echotcpip('on',50000)" before running simulation will get rid of the error when you are working on one computer and you don't have the actual server available. Note: 1) either the command can be added in some simulink model callback (preload/init) 2) change the port number to match with your need
Hope it helps...
1 comentario
Rik
el 17 de Mayo de 2021
That works! Thanks.
Categorías
Más información sobre System Configuration en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!