필터 지우기
필터 지우기

Undefined function 'readVoltage' for input arguments of type 'arduino'.

조회 수: 2 (최근 30일)
I have a proper connection between MATLAB and an Arduino (Uno) board. When I first installed Arduino Package in MATLAB I was able to receive a signal from an analog pin on my Arduino board using readVoltage() function. However, after installing ArduinoIO package to add the so-called 'Arduino IO library' library in Simulink browser, I have started to get the following error every time I use the statement, say, readVoltage(a, 'A5'):
Undefined function 'readVoltage' for input arguments of type 'arduino'.
Just for info, I assign a new Arduino object beforehand by typing
a = arduino()
Nothing is really happening though. Any help is appreciated.

채택된 답변

Madhu Govindarajan
Madhu Govindarajan 2017년 10월 30일
After you have established the communication with Arduino using a=arduino, could you type methods(a) and post the results here?
  댓글 수: 3
Ricardo Ramirez
Ricardo Ramirez 2018년 10월 23일
So you just erased the packaged you installed? I got the same problem, and don't know what to do about it :(
Madhu Govindarajan
Madhu Govindarajan 2018년 10월 24일
@Ricardo - I guess all Aydin is saying - have only MATLAB Support package for Arduino and Simulink Support package for Arduino and this issue does not happen.

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

추가 답변 (0개)

카테고리

Help CenterFile 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!

Translated by