title: Use logged signal in Matlab Level-2 S-function (in Simulink)
body: <p>Is it possible to use logged signals within Matlab Level-2 S-functions?
  I need an S-function to run only every 5 s, so that that could be its rate. However, if I use the S-function to log the data, I need to call it at every time step and that slows down the code considerably. Is it possible to use logged signals within the Matlab Level-2 S-function instead?</p>
  
  <p>Thank you in advance for the help!</p>