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 stream input 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? they are ascii value how can i read them in simulink
回答 (1 件)
Walter Roberson
2017 年 6 月 21 日
0 投票
Use a UDP receive block, for which the output type has been set to (or left at) uint8. Pass the output to a MATLAB Function Block. Inside the function block, char() the byte vector. You can sscanf() the resulting string.
1 件のコメント
raymon saadalla
2017 年 6 月 21 日
編集済み: raymon saadalla
2017 年 6 月 21 日
カテゴリ
ヘルプ センター および File Exchange で Simulink についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!