MATLAB Answers

0

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

Khoa Ho 님이 질문을 제출함. 7 May 2019
최근 활동 Khoa Ho 님이 답변함. 21 Jun 2019
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.

  댓글 수: 0

로그인 to comment.

제품


릴리스

R2018a

답변 수: 1

Khoa Ho 님의 답변 21 Jun 2019

Help me :(

  댓글 수: 0

로그인 to comment.



Translated by