Time Scope Configuration in Simulink

1 回表示 (過去 30 日間)
Sun
Sun 2012 年 2 月 23 日
編集済み: Cedric 2013 年 10 月 21 日
Hey guys,
I am using simulink to do a real-time signal acqusition assignment now. And I found block "time scope" in signal processing blockset is very intuitive for signal display rather than default scope. However, I found is hard to call parameters in this block when I try to run a script to actually change setting during the simulation. Perhaps it's some kind "locked" block? Does anyone has some comments?
Sun Tao

回答 (2 件)

Jason
Jason 2012 年 2 月 23 日
All of these parameters are tunable via the scope window, however, there are no block parameters for them at this time.
You may be able to work around this issue by setting the line properties and resaving the model. The new line properties will be remembered when you rerun your model.
  1 件のコメント
Sun
Sun 2012 年 2 月 24 日
Hello,
Thanks for the reply. Resaving the setting is a solution but I am afaid is not appropiate for my purpose. I want to add some label when simulation is running. Anyway, I found a way may seem stupid. That is adding a new "label" signal bus before it goes into scope. Then I can define the new signal.
Sun Tao

サインインしてコメントする。


Kaustubha Govind
Kaustubha Govind 2012 年 2 月 23 日
It's not clear which parameters on the block you are attempting to modify - perhaps you can tell us exactly what you're changing? Blocks have two types of parameters - tunable and non-tunable. Only tunable parameters can be changed during simulation.
  3 件のコメント
Kaustubha Govind
Kaustubha Govind 2012 年 2 月 23 日
It looks like you can change this setting during simulation. I just tried an example where the simulation runs to Infinity, and I can see a change in the signal color, when I change it using this setting during simulation. I'm not sure that there is a command-line way of doing this, because the Time Scope does not expose such an API. How do you attempt to do it in your script?
Sun
Sun 2012 年 2 月 24 日
Hi,
I thought the "Time Scope" will like other simulink blocks to provide some APIs. In that case I always can get and set parameters from my scripts. Unfortanely "Time Scope" seems not to give any. So I cannot access it form scripts. Anyway, I found another way to do it by adding a new signal as long as it will suit my purpose.
Sun Tao

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeScopes and Data Logging についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by