modify the pulse width of a pulse generator

modify the pulse width of a pulse generator from a variable that gives me an equation in the same space work SIMULINK remember is a variable and changing THROUGH time, and must modify the pulse width according to this variable, all automatically
EDIT Kaustubha Govind.... i hope you understand me with this picture

2 件のコメント

Kaustubha Govind
Kaustubha Govind 2011 年 7 月 11 日
Not sure what you mean by "from a variable that gives me an equation" - how do you represent this equation. Is it something that needs to be solved using a Toolbox function?
Felipe Arriagada
Felipe Arriagada 2011 年 7 月 11 日
i hope you understand me with the picture above this,

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

回答 (3 件)

Walter Roberson
Walter Roberson 2011 年 7 月 11 日

0 投票

Looks to me as if you would either want to set_param() or else use a From Workspace block.
Felipe Arriagada
Felipe Arriagada 2011 年 7 月 11 日

0 投票

i hope you understand me with this picture
Kaustubha Govind
Kaustubha Govind 2011 年 7 月 12 日

0 投票

As the blog post linked above explains, it is not possible to change the Pulse Generator parameter using a signal. I think what you should do is implement this functionality using basic Simulink blocks. Perhaps Enabled Subsystems can be used as part of the solution.

2 件のコメント

Felipe Arriagada
Felipe Arriagada 2011 年 7 月 13 日
if I take the variable (simulink - display) to gui and from this the set_param took him to the pulse width parameter (Pulse Generator).
I help bring the variable to GUI
Kaustubha Govind
Kaustubha Govind 2011 年 7 月 13 日
Okay. I guess I misunderstood your question. So you have it working now?

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

カテゴリ

ヘルプ センター および File ExchangeEvent Functions についてさらに検索

製品

質問済み:

2011 年 7 月 11 日

Community Treasure Hunt

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

Start Hunting!

Translated by