Time steps in constraints

Moderator: Moderators

Time steps in constraints

Postby testify23ppp@doublemail.de » 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:
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?
You do not have the required permissions to view the files attached to this post.
testify23ppp@doublemail.de
Forum Newbie
Forum Newbie
 
Posts: 4
Posts Rating:0
Joined: Fri Apr 14, 2023 8:35 am

Return to Cameo Simulation Toolkits

Who is online

Users browsing this forum: No registered users and 0 guests