Simulink/SimMechanics: how to refer to a value from the previous time step

5 次查看(过去 30 天)
Question
Is it possible to refer to values that are determined in a previous time step, using Simulink/SimMechanics?
Context
I am modeling a system in SimMechanics where the positions of joints are driven by the output of a state-space system. The input for this state-space system are also the positions of these joints. Clearly, this creates the need for algebraic loops. If I understand it correctly, in SimMechanics a solution is searched where all subsystems are consistent at every time step.
For my specific problem, I want to try a partitioned approach. That is, I want to use the positions of the previous time step as input for my state-space system. Thereby, I won't need algebraic loops anymore.
Thanks in advance!

采纳的回答

Azzi Abdelmalek
Azzi Abdelmalek 2013-11-18
Use Unit Delay block

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Assembly 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by