I have installed all packages for Arduino support. In Matlab command line can successfully connect to Arduino and operate all its pins.
I want to use function msfun_arduino_analogread(block), link:
But when add in Simulink block "Level-2 MATLAB S-Function" I have the following error (screen shot): http://habrastorage.org/storage1/fdff41a7/f8668eac/77eb249a/38eb67f6.png
Can I go another way to read data from Arduino in Simulink? I just want to use my Arduino as Analog Input in Simulink.