This file contains a guide_simulink_sfunction interface. It is a fairly easy and simple application. It was mainly created as a reply for a question from one of the students on “how to display the simulink results in real time in a gui interface, outside the boundries of simulink?” the gui(simulink_gui_interface) is a simple one. It calls the simulink model(simulink_model.mdl), which in return uses an s-function(sfun.m) to plot the data. I tried to make this example as simple as possible so that more people would benefit from this application. One more important observation, if you run the simulink model (simulink_model.mdl) from simulink, it will take more time than running the simulink model from the interface itself (simulink_gui_interface)!!
To run, just type in the Matlab workspace:
Wayne State University
My GUI has 3 axes, in the first there is a picture, and the second and third should show the 2 scope results. How can I modify your code to view those 2 scopes in axes2 and axes3, cause this shows me only one scope in the axe1 where the picture is??? please help
Hi, can you tell me how to get a Simulink Scope data after the simulation stops. I need to process Scope data in GUI.
A very good tutorial for beginners.