Matlab raspberry-pi simulink
1 回表示 (過去 30 日間)
古いコメントを表示
I want to make simulink for raspberrypi's LED turn on, off. It is MATLAB function Block source
function ras mypi = raspberrypi('192.168.0.137', 'pi', 'raspberry') for ii = 1:100 writeLED(mypi,'led0',1) pause(4) writeLED(mypi,'led0',0) pause(1) pause(0.1) end
but it occured error like that
![](/matlabcentral/answers/uploaded_files/123298/error.png)
This is simulink pigure
![](/matlabcentral/answers/uploaded_files/123297/simu.png)
I don't understand why this error occured. How to resolving this error?
0 件のコメント
回答 (1 件)
Mohith Prabhu
2018 年 12 月 17 日
Hi Min,
Replace mypi = raspberrypi('192.168.0.137', 'pi', 'raspberry') with
mypi = raspi('192.168.0.137', 'pi', 'raspberry')
and retry.
Regards,
Mohith
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Raspberry Pi Hardware についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!