title: How to send JavaScript Variables to a Matlab Simulink UDP Block?
body: <p>I'd like to send a few variables to a Matlab Simulink Model. I was planning on doing this via setting up a UDP Connection but I can't seem to find a way to do this via JavaScript directly. So the idea is to instead somehow send that data to a Java Applet or Python server or something. Then use that to configure the connection and send that to the Matlab UDP Receive block (more details <a href="http://www.mathworks.com/help/instrument/udpreceive.html" rel="nofollow noreferrer">here</a>).</p>
  
  <p>The question is I'm not sure how to send that data to the Java or Python Server.  Also I couldn't get a Java Applet to actually run on the webpage due to security settings despite looking <a href="https://stackoverflow.com/questions/29336132/how-to-lower-the-java-security-setting-for-testing-in-java-8">here</a> to change the exception list. Apparently applets are also a bit dated too I saw a few things about JNLP. I'm not sure if that's the way to go or not. </p>
  
  <p>Essentially all I need is some code that I can call via JavaScript and send variables to.</p>
  
  <p>I realize this is a very open ended question, but I'm at a loss for how to proceed. </p>