Initial conditions

I have a STATE in my UDM that represents time (I have timing-based switching inside). I Initialise the derivative to 1.0, since I want it to start capturing time from the beginning of the simulation. However, this causes an initial condition warning and I do not get Initial Conditions O.K.. Is there a way to overwrite this so it does not alert as a warning, or another way to initialise it? I have tried initialising to 0.0 in MODE 1, but since MODE 2 and 3 are called during initialisation, DSTATE gets overwritten anyway.

jordbud's avatar
1
jordbud
asked 2026-09-22 23:48:59 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments