Is there a way of externally defining the initial output of a Variable Transport Delay?

1 回表示 (過去 30 日間)
João Pedro Moreira
João Pedro Moreira 2020 年 7 月 27 日
コメント済み: maiaL 2020 年 7 月 28 日
On the simulink block Variable Time/Transport Delay there is a parameter called "Initial Output". But unlikely the integrator, for example, there is not an option to externally define this parameter.
Is there a way of doing that? Or maybe a way to create a variable transport delay block from other blocks and then define this parameter as I need?

回答 (1 件)

maiaL
maiaL 2020 年 7 月 28 日
Not sure if I understood the question clearly, but you could simply define a ini_output value in the base workspace:
ini_output = 2
and simply write ini_output at the Initial output field of the block.
  2 件のコメント
João Pedro Moreira
João Pedro Moreira 2020 年 7 月 28 日
Thanks for the answer Leo. That's not exaclty what I needed because I need to have a block containing that value so it can be treated as an input on a subsystem.
My model (a big subsystem) requires a transport delay at one point. It should be possible to define the delay time externally (also as an input block of that subsystem) and that is possible with the variable transport delay block (it has a native function for that purpose). But another feature of this model should be defining the initial output of this variable transport delay block. Since the block does not have a function to externally define this value, I was wondering if that would be possible somehow.
I was thinking about building the variable transport delay block using other blocks so that I could be free to define its parameters as I need but I couldn't find any info on that.
maiaL
maiaL 2020 年 7 月 28 日
Oh ok, got it. Maybe you could play with a MATLAB function block with something like:
set_param('modelName/Transport Delay','InitialOutput','0');
where 0 would be parameterized as the input of the MATLAB function? Not sure how that would play out during runtime though.

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

カテゴリ

Help Center および File ExchangeGeneral Applications についてさらに検索

製品


リリース

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by