How to create a special event or alternative to trigger this?

How to create a special event or alternative to trigger this?

s093301465XJNR
Contributor Contributor
22 Views
2 Replies
Message 1 of 3

How to create a special event or alternative to trigger this?

s093301465XJNR
Contributor
Contributor

[ FlexSim 24.2.2 ]

Hello experts,

I hope you're doing well.

I’m trying to track the utilized time of an operator because they occasionally need to perform other tasks. Specifically, I’d like to create an event that triggers when the utilized time for Operator1 reaches 10 seconds. And here's my question model: 0119_model.fsm

For example, I was considering using a condition like this:
getstat(Model.find("Operator1"), "State", STAT_TIME_AT_VALUE, 0, STATE_UTILIZE) == 10.

However, I’m not sure if it’s possible to achieve this using a FlexSim function. I’ve read the manual about "User Events," but those seem to be time-based triggers, which doesn’t align with the logic I’m aiming for.

Is there a way to accomplish this in FlexSim? Or is there another approach you’d recommend for tracking and triggering events based on an operator’s utilized time?

Thank you in advance for your guidance!

0 Likes
Accepted solutions (1)
23 Views
2 Replies
Replies (2)
Message 2 of 3

joerg_vogel_HsH
Mentor
Mentor
Accepted solution

You can do this in process flow. Event triggered source that creates a token when a utilize state starts, a delay activity for a waiting time and a decide activity to check, if there happened a second utilization during your waiting time. If a second event to utilize your object begins you find a token waiting in delay activity.

Message 3 of 3

moehlmann_fe
Observer
Observer

Another option would be to use a kinetic tracked variable to track the utilized time. When the state changes set the rate of the variable. An Event-Triggered Source in Process Flow can then trigger upon the variable reaching a given threshold.

0119-model_1.fsm