title: Create Simulink block for Arduino library like liquidcrystal
body: <p>I want to use Simulink to create programs for <a href="http://arduino.cc/en/Main/ArduinoBoardUno" rel="nofollow">Arduino Uno</a> hardware. But I would like to use existing libraries, like liquidcrystal, to handle output to an <a href="http://en.wikipedia.org/wiki/Liquid_crystal_display" rel="nofollow">LCD</a> display. How can I create an s-function that incorporates the liquidcrystal class file? </p>
  
  <p>I think the s-function is the way to go, because the existing Simulink Arduino library blocks are actually s-functions that are masked. I am using the Simulink student version so I don't think I can compile <a href="http://en.wikipedia.org/wiki/C_%28programming_language%29" rel="nofollow">C</a> code from a model and incorporate it into a project in the Arduino IDE. </p>