UnitDelay - Triggered by Event, instead of fixed Controller-Input?

29 views
Skip to first unread message

Peter Stumpf

unread,
Mar 19, 2026, 4:08:39 PM (13 days ago) Mar 19
to JaamSim Users Discussion Group
Dear Harry

in some instances one would need a storing of one old-value and one new-value to compare them. The updating of the new-value should only take place if a certain event took place. And not with the frequence of a controller, that is fixed by its input.

How could one have such a functionality?

Kind regards
Peter 


Harry King

unread,
Mar 30, 2026, 9:42:42 PM (2 days ago) Mar 30
to JaamSim Users Discussion Group
Peter,

Values can be stored and updated using attributes and the Assign object. You may need to use an EntityGenerator and a SignalThreshold to generate a SimEntity to trigger the calculation. Preferably, you might be able to perform the calculation in the same place as the event you mention.

Harry

Reply all
Reply to author
Forward
0 new messages