Simulink - output of a block as an another block parameter

4 ビュー (過去 30 日間)
Wiktor Wróblewski
Wiktor Wróblewski 2023 年 9 月 12 日
回答済み: Paul 2023 年 9 月 13 日
I am working on a model that I want to rebuild from the phasor domain to the continuous one.
Model looks like this:
I would like the outputs of the blocks highlighted in green (amplitude, phase, and frequency values) to simultaneously be the parameter values in the blocks highlighted in red. In short, I want the generated signals to have the parameters that are the outputs of the green blocks. Is this possible?
The idea is that the calculations are performed on phasors, but the input signal to the controlled current source must be continuous. Perhaps you know of another solution?
Thank you in advance for your help.

回答 (1 件)

Paul 2023 年 9 月 13 日
Hi Wiktor,
Some Simulink blocks have parameters that can be specified either internally or externally, such as the Integrator block Initial Condition parameter. However, the Sine Wave, which is what I think is circled in red, does not allow for the Amplitude, Phase, or Frequency parameters to be set from an external source.
Perhaps you can construct the desired sine wave using the Trigonometric Function block and building the input to it with a Clock and other basic blocks based on the outputs from the green-highlighted blocks.
There may be a block that does what you want in one of the many other toolboxes or blocksets that work with Simulink.


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




Community Treasure Hunt

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

Start Hunting!

Translated by