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
This is simulink pigure
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!