Run Two Function (inshow & listening Serial port Arduino) Simultaneously

조회 수: 1 (최근 30일)
Khoa Ho
Khoa Ho 2019년 5월 7일
답변: Khoa Ho 2019년 6월 21일
I wrote a program RFID Read When the Card Touch, then process image get from snapshot.
I use while loop to get snapshot from webcam/ipcamera and show it on axes. But i have i problem,
  • when program run function RFID Card Reader => function show image crash,
  • or when program run function show image => function RFID Card Reader crash (don't run) because while loop
I am try like this, but do not work :(
parpool(2)
parfevalOnAll(@maxNumCompThreads, 0, 2)
spmd
if labindex == 1
first_function
else
second_function
end
end
Is there any solution for me?? I think need run two Function (show image & listening Serial port Arduino) Simultaneously
Thanks a lot.

답변 (1개)

Khoa Ho
Khoa Ho 2019년 6월 21일
Help me :(

카테고리

Help CenterFile Exchange에서 MATLAB Support Package for Arduino Hardware에 대해 자세히 알아보기

제품


릴리스

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by