Error when use Shift register and other libraries of arduino in Matlab

2 ビュー (過去 30 日間)
Kavindu Herath
Kavindu Herath 2018 年 12 月 26 日
回答済み: Madhu Govindarajan 2018 年 12 月 26 日
I installed arduino support packaged to matlab with libraries and after that when I use that libraries there is an error
>> shiftOut(a,2,3,'MSBFIRST',43)
Undefined function or variable 'shiftOut'.
please can any one tell what is the wrong?

回答 (1 件)

Madhu Govindarajan
Madhu Govindarajan 2018 年 12 月 26 日
shiftOut is an Arduino IDE function and there is not a one-to-one match for this function included in the default MATLAB Support package for Arduino. You can try using this shiftRegister library added in the following way and see if there are equivalents to what you are trying to achieve - https://www.mathworks.com/help/supportpkg/arduinoio/ug/control-leds-with-74hc595-shift-register.html

カテゴリ

Help Center および File ExchangeMATLAB 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