How to enable two threads to tackle with different tasks? E.G. control hardware acquisition and data processing synchronously
2 ビュー (過去 30 日間)
古いコメントを表示
i have learned about the paralell computing toolbox, and some functions like parfor or parfeval. However, in the demo, it seems that they both accelerate the processing only when the tasks are similar, i.e. codes in the for-loop.
How to make MATLAB working in two threads to tackle with different tasks.For expamle, one thread controls the hardware for data acquisition and the other one processes the data synchronously?
0 件のコメント
採用された回答
Raymond Norris
2022 年 2 月 16 日
parfeval can run different tasks. For example:
pool = parpool(2);
daq = pool.parfeval(@acquireData, ..);
proc = pool.parfeval(@processData, ..);
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Startup and Shutdown についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!