How to control multiple hardware units simultaneously?
40 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
yugandhar
le 25 Juin 2024 à 6:32
Commenté : yugandhar
le 1 Juil 2024 à 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 commentaires
Réponse acceptée
Shreshth
le 1 Juil 2024 à 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.
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Instrument Control Toolbox dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!