Matlab raspberry-pi simulink

1 visualización (últimos 30 días)
min seok shin
min seok shin el 29 de Jun. de 2018
Respondida: Mohith Prabhu el 17 de Dic. de 2018

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?

Respuestas (1)

Mohith Prabhu
Mohith Prabhu el 17 de Dic. de 2018
Hi Min,
Replace mypi = raspberrypi('192.168.0.137', 'pi', 'raspberry') with
mypi = raspi('192.168.0.137', 'pi', 'raspberry')
and retry.
Regards,
Mohith

Categorías

Más información sobre Raspberry Pi Hardware en Help Center y File Exchange.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by