Is there an example for using Data Acquisition Toolbox with Parallel Computing Toolbox?
2 ビュー (過去 30 日間)
古いコメントを表示
MathWorks Support Team
2018 年 8 月 14 日
回答済み: MathWorks Support Team
2018 年 8 月 14 日
I am acquiring data in background mode from a DAQ device and simultaneously processing and plotting data live. If the data processing function execution takes longer than the time between two expected DataAvailable callbacks, the DataAvailable callbacks get queued and the live plot lags with respect to wall clock time.
Is there an example on how to use Parallel Computing Toolbox to offload the data processing to a different worker?
採用された回答
MathWorks Support Team
2018 年 8 月 14 日
Please find attached a simple DAQ session example showing how to use parfeval and DataQueue with afterEach callback to update a live plot with the processed data.
This would be a useful approach in cases where the data processing function has an execution time that impacts the DAQ session DataAvailable callbacks execution or the app responsiveness.
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Asynchronous Parallel Programming についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!