How to control multiple hardware units simultaneously?
40 views (last 30 days)
Show older comments
yugandhar
on 25 Jun 2024 at 6:32
Commented: yugandhar
on 1 Jul 2024 at 11:49
I am trying to contol one Technica Gateway and DC Power supply. I wrote a matlab code to control them individually. But, if I tried control them simultaneously, one of the device is going to busy state. But, I want both to be operated at same time and there should be synchronization between them. Can someone help me to resolve the issue?
0 Comments
Accepted Answer
Shreshth
on 1 Jul 2024 at 6:34
Hello Yugandhar,
Controlling multiple devices simultaneously and ensuring synchronization can be challenging due to potential conflicts in resource access or communication protocols.
I would suggest you to use Parallel Computing Toolbox to execute your code in parallel, which can help in controlling the two harware units simultaneously. You can use "parfor" or "spmd" to acheive this.
Also along with using the Parallel Computing Toolbox, you can use timers to schedule the runtime of the tasks in synchrony.
To understand better about the use of Parallel Computing Toolbox, you can refer to this MathWorks Documentation : www.mathworks.com/help/parallel-computing/index.html?s_tid=CRUX_topnav
Thanks.
More Answers (0)
See Also
Categories
Find more on Instrument Control Toolbox in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!