Increase sampling frequency in master-slave system?
2 ビュー (過去 30 日間)
古いコメントを表示
I have a master-slave system. The master is communicating with the PC via UDP protocol, the slave is communicating through a serial port (rs232). My aim is to read the data from the master and send it to the slave, so I am using the MATLAB functions fread and fwrite in the appropriate objects (one is udp, one is serial). My problem is that I can't seem to get the sampling frequency better than 10 Hz, which gives a bandwidth of 5 Hz (due to Nyquist theorem), and I think this is very low. I would like to increase the sampling frequency, but in the profiler it says that the most time is spent in the fread functions I call in the code (and that's inevitable!), so I don't know how to solve this issue. Any suggestions?
0 件のコメント
回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Communications Toolbox についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!