Matlab raspberry-pi simulink
조회 수: 12 (최근 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)
endbut 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!