simulink and gui across workspace

Asked by mohamed al-asklany on 1 Jul 2012
Latest activity Commented on by TAB on 5 Jul 2012

in simulinke model there is a "to workspace " assume its var is "sout" that i want this var "sout" identified by my gui program

0 Comments

mohamed  al-asklany

Products

1 Answer

Answer by TAB on 2 Jul 2012
Accepted answer

Simulink data from To Workspace block is always saved in Matlab base workspace. So your variable "sout" will appear in matlab base workspace after the simulation.

You can access this variable in you GUI program (or in any other) function using

data = evalin('base','sout');

Using this, values in "sout" from base workspace will be copied in variable "data".

8 Comments

TAB on 5 Jul 2012

Simplest event listener demo is here.

Once go through your own this and this posts.

mohamed al-asklany on 5 Jul 2012

done thanks for you all still simple problem this function make my gui slower and the function can not run when i run another thing in my gui

TAB on 5 Jul 2012

What another thing you are running in your GUI ?

TAB

Contact us