Adding Delay/Jitter to TCP/IP protocol

I have two Matlab sessions opened. I can send adn recieve data via tcpserver/tcpclient. I would like to emulate network delay/jitter for this application. I see options only in Simulink but I need it as functions in my script. Any suggestions? I'm using Matlab 2021a version.

답변 (1개)

Uday Pradhan
Uday Pradhan 2021년 5월 24일

0 개 추천

Hello,
If you want to mimic the behaviour of Simulink blocks using a MATLAB script, it might be helpful to look at the underlying S-function of the concerned block. To do this, right-click the Simulink block (in this case it might be the TCP Send or Recieve block), select the "Block Paramerters" option. This should open a dialog box with the name of the underlying S-function (say "sfcn.m"). Now, you can open the S-function and check how the functionalities have been implemented using
edit sfcn.m
in the MATLAB command line. I hope this helps you!

카테고리

도움말 센터File Exchange에서 Simulink에 대해 자세히 알아보기

제품

릴리스

R2021a

태그

질문:

2021년 5월 22일

댓글:

2021년 5월 27일

Community Treasure Hunt

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

Start Hunting!

Translated by