Read Arduino interrupt in MATLAB

조회 수: 3 (최근 30일)
G3123
G3123 2019년 10월 24일
댓글: G3123 2019년 10월 24일
can anyone explain how to read Arduino interrupt pin 13 into Matlab. When I use readDigitalPin(a,'D13') the program crashes. Thanks in Advance.
  댓글 수: 2
Walter Roberson
Walter Roberson 2019년 10월 24일
In theory that should work; it is even the example given in https://www.mathworks.com/help/supportpkg/arduinoio/ref/readdigitalpin.html
G3123
G3123 2019년 10월 24일
Thank you for your response. I have a keypad connected to the Arduino and the Arduino connected to Matlab serial port. When I press a key in the keypad, an external interrupt reaches the 13th pin of Arduino. I need to monitor this pin in Matlab and whenever there's an interrupt, increment a value. I tried using the readDigitalPin command, but when I run the code, it shows "updating server code on board" for a long time and doesn't display anything.

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

답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by