Adding Delay/Jitter to TCP/IP protocol

2 ビュー (過去 30 日間)
Bandar
Bandar 2021 年 5 月 22 日
コメント済み: Bandar 2021 年 5 月 27 日
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 日
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!
  1 件のコメント
Bandar
Bandar 2021 年 5 月 27 日
I can't find this function in Matlab 2021a.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeSimulink についてさらに検索

タグ

製品


リリース

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by