Effacer les filtres
Effacer les filtres

Use of initial value and calculated value.

1 vue (au cours des 30 derniers jours)
Shunsuke kishi
Shunsuke kishi le 24 Déc 2019
Réponse apportée : Raj le 24 Déc 2019
I'm currently building a simulation with Simulink. At this time, it is difficult to handle the initial value given first and the value obtained from the calculation. Specifically, a simulation is created based on the attitude control of a satellite. In brief, the control torque is calculated from the angular velocity, and the control torque is output by the actuator. This will update the satellite's angular velocity and attitude. I want to give this updated value again as the angular velocity of the next loop, but I don't know in what block to do it. I would be grateful if anyone could tell me if I could understand. I want the flow chart to look like the figure below. In the first loop, we use "Initial angular velocity" to calculate, but in the next loop we want to use "Update angular velocity" to calculate.I'm glad if you give me any opinions.flowchart.png

Réponse acceptée

Raj le 24 Déc 2019
Tap the output coming from the last block 'update angular velocity' and give it as input to the first block 'Calculation of control torque' through a unit delay block. Put the 'Initial angular velocity' as the initial condition of the delay block and set the delay to one cycle. Done!

Plus de réponses (0)


En savoir plus sur Simulink 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!

Translated by