Page 1 of 1

Time steps in constraints

PostPosted: Tue May 09, 2023 6:58 am
Hi all,

I have a question about "how to use elapsed time in a constraint calculation". Let's say we have an equation for the calculation of the travelled distance:

where deltaT is known from SimulationConfig > Timing Properties > Step Size = 50ms (== "sample rate")

this constraint is of course not working, because of a not connected port.
So I removed the port and replaced deltaT with a number (btw. is there a way to use here a variable like "step size"?)

But this is only executing once, apparently because the inputs are constant?

Funny fact, this is working as expected:

But how to do it right?