Page 1 of 1

Time steps in constraints

PostPosted: Tue May 09, 2023 6:58 am
by testify23ppp@doublemail.de
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:
1.PNG

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"?)
2.PNG


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

Funny fact, this is working as expected:
3.PNG


But how to do it right?