fscanf in Simulink
古いコメントを表示
I receive some strings in UDP. I can see them using fscanf. But I would like to have them in Simulink environment. I tried "UDP Receive" block, but it seems that it's different from fscanf. Is there any way that I can monitor the strings, received via UDP, in Simulink?
回答 (2 件)
Fangjun Jiang
2011 年 11 月 23 日
0 投票
Simulink doesn't support string data type. See http://www.mathworks.com/help/toolbox/simulink/ug/f14-90479.html#f14-90488
You may be able to view the data. Check to see if they are the ASCII value of the corresponding characters.
1 件のコメント
raymon saadalla
2017 年 6 月 21 日
yes I have the samw problem and it is an ASCII value. how can i read it in simulink. I use fscanf in mfile and it works great any idea how to do it in simulink
Walter Roberson
2011 年 11 月 23 日
0 投票
This older Question contains references to some tools that could be used for monitoring: http://www.mathworks.com/matlabcentral/answers/14040-how-to-read-incoming-packets-from-ethernet-card
カテゴリ
ヘルプ センター および File Exchange で Modeling についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!