MATLAB: Getting a broken output for a real time project interfaced with matlab?

embedded matlab functionMATLABsimulinkSimulink Desktop Real-Timeurgent

I am working on a TRMS model (feedback instrumnts ltd.) interfaced with matlab/simulink r2009a (cant use matlab versions higher than 7.x), which is also having a EML block, with Euler's code to solve differential equations written on it. Now, as can be seen in the pic attached, the matlab is saving only last few values of the outputs. I am getting the same thing on workspace too, its saving only the last few values of even the 'simulation time'. Ready to provide more information if required. Can anyone pls tell why this is happening?? Help Urgent?? Thnx in advance

Best Answer

  • If this an External Mode simulation, please go to External Mode Control Panel, Signals and Triggering, and adjust the value of the Duration parameter as needed.