Simulink - output of a block as an another block parameter
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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.
0 commentaires
Réponses (1)
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.
0 commentaires
Voir également
Catégories
En savoir plus sur Sources dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!