필터 지우기
필터 지우기

Problem with TCP/IP Send Block in Simulink

조회 수: 13 (최근 30일)
Stephanie
Stephanie 2013년 7월 25일
댓글: Rik 2021년 5월 17일
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?

답변 (1개)

Jitesh Patel
Jitesh Patel 2018년 7월 27일
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
Rik
Rik 2021년 5월 17일
Comment posted as flag by Edward P Frye:
That works! Thanks.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Development Computer Setup에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by