TCPIP connection timing out when streaming data from MTConnect
6 ビュー (過去 30 日間)
古いコメントを表示
When accessing MTConnect string data using a TCPIP connection - the connection keeps intermittently timing out. The data stream works for a time then pauses. I would like to access the data in real-time however when I leave the connection open and repeat the fgets command then it results in errors. This is the code I am currently using:
I'm using the following in a loop:
fopen(tcpObject);
lineMach=fgets(tcpObject) ;% using fgets rather than fscanf prevents TCPIP connection timing out
fclose(tcpObject);
I keep gettting the following error message:
Warning: A timeout occurred before the Terminator was reached.
'tcpip' unable to read any data. For more information on possible reasons, see TCPIP Read Warnings.
0 件のコメント
回答 (1 件)
Jyotsna Talluri
2019 年 8 月 6 日
Hi,
The below link provides all the possible causes of errors and ways to solve them
Hope it helps..
参考
カテゴリ
Help Center および File Exchange で Development Computer Setup についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!