필터 지우기
필터 지우기

How to control multiple hardware units simultaneously?

조회 수: 40 (최근 30일)
yugandhar
yugandhar 2024년 6월 25일 6:32
댓글: yugandhar 2024년 7월 1일 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?

채택된 답변

Shreshth
Shreshth 2024년 7월 1일 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.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Instrument Control Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by