import variables from Base Workspace into Simulink model

2 次查看(过去 30 天)
Hi,
Is it possible to show the variables in Base Workspace on the Simulink model window automatically after one simulation? Maybe some objects are needed to be created on the model window to hold there values.
I think oscilloscops can be poppped up automatically with the simulation. Are there tools for Base Workspace?
Thanks Senmeis
  1 个评论
Andreas Goser
Andreas Goser 2012-12-3
Hello Owen or Senmeis. I noticed you are posting your questions here as well as in the German lannguage community. In my viewpoint it is polite to choose one way of getting help or only choose the other way when you don't get answers. I also sent a PM to you on gomatlab.de you have not yet responded. I would like to work with you to make your work more efficient and effective.

请先登录,再进行评论。

采纳的回答

Azzi Abdelmalek
Azzi Abdelmalek 2012-12-2
编辑:Azzi Abdelmalek 2012-12-2
use To Workspace block from Simulink/Sinks
In the block properties, give a name to your variable, by default it's simout. Also set variable format to array
  2 个评论
Owen
Owen 2012-12-3
Thank you, but the variable 'simout' created by the To Workspace block only locates in the workspace and I want to see it on the Simulink model window.
Another problem is, there are also variables created by the assignin() command in S functions or Embedded Matlab Functions. How can they be seen on the Simulink model window?
Thanks Senmeis
Azzi Abdelmalek
Azzi Abdelmalek 2012-12-3
to display your variables you can use a display block from simulink/sinks

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Schedule Model Components 的更多信息

产品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by