필터 지우기
필터 지우기

Run two GUI in parallel

조회 수: 5 (최근 30일)
Niccolò de Cesare
Niccolò de Cesare 2016년 10월 2일
댓글: Joe Yeh 2016년 10월 4일
Hi guys,
i'm not able run two GUI in parallel, substantially i've two GUI: the first one runs a code that controls one servo-motor with Arduino and the second one runs a timer which i've created; the main problem is that the two GUI must runs simultaneously and for that there isn't a problem i just run the two GUI but during the execution there is a while-construct cycling in the first GUI and another while-construct cycling in the second one, but being both managed by the same core obviously the two codes don't run in parallel!
Now i've tried to use the parallel computing toolbox to create a parpool on two cores but with GUIs don't work properly:
spmd (2)
if labindex==1
Timer();
else
BreathYourTissue();
end
end
with this solution the code runs with no effects. If i execute the two while-constructs works fine, but with GUI doesn't.
Anyone can help me?
Thanks in advance, Niccolò
  댓글 수: 2
mizuki
mizuki 2016년 10월 4일
You cannot run two GUIs in parallel, because you can only see MATLAB desktop of client side but you cannot see that of server side.
Joe Yeh
Joe Yeh 2016년 10월 4일
Can you not combine the two GUIs into one ?

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by