Run Two Function (inshow & listening Serial port Arduino) Simultaneously
조회 수: 1 (최근 30일)
이전 댓글 표시
I wrote a program RFID Read When the Card Touch, then process image get from snapshot.
I use RFID Card Reader https://www.mathworks.com/matlabcentral/fileexchange/54780-rfid-card-reader to read tag.
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.
댓글 수: 0
답변 (1개)
참고 항목
카테고리
Help Center 및 File Exchange에서 MATLAB Support Package for Arduino Hardware에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!