Effacer les filtres
Effacer les filtres

Simulink - output of a block as an another block parameter

1 vue (au cours des 30 derniers jours)
Wiktor Wróblewski
Wiktor Wróblewski le 12 Sep 2023
Réponse apportée : Paul le 13 Sep 2023
Hi,
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.

Réponses (1)

Paul
Paul le 13 Sep 2023
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.

Produits


Version

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by