Azzera filtri
Azzera filtri

How to control multiple hardware units simultaneously?

40 visualizzazioni (ultimi 30 giorni)
yugandhar
yugandhar il 25 Giu 2024 alle 6:32
Commentato: yugandhar il 1 Lug 2024 alle 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?

Risposta accettata

Shreshth
Shreshth il 1 Lug 2024 alle 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.

Più risposte (0)

Categorie

Scopri di più su Instrument Control Toolbox in Help Center e File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by