Undefined function 'readVoltage' for input arguments of type 'arduino'.
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Aydin Nasirzadeh
le 13 Oct 2017
Commenté : Madhu Govindarajan
le 24 Oct 2018
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.
0 commentaires
Réponse acceptée
Madhu Govindarajan
le 30 Oct 2017
After you have established the communication with Arduino using a=arduino, could you type methods(a) and post the results here?
3 commentaires
Ricardo Ramirez
le 23 Oct 2018
So you just erased the packaged you installed? I got the same problem, and don't know what to do about it :(
Madhu Govindarajan
le 24 Oct 2018
@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.
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur MATLAB Support Package for Arduino Hardware dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!