question

Daniel R13 avatar image
0 Likes"
Daniel R13 asked Daniel R13 commented

Custom Code Event Trigger

Hi FlexSim Team!

My team and I are currently working with FlexSim for the first time and we are having some issues. We currently have a complete Arrival, Model, and Person Flow and we would like to have some code be triggered at each timestep. If that is not possible we were thinking that maybe we could have the code run at a regular interval say every 5 or 10 seconds. Any help on this would be really appreciated. Thanks!

-Dan

FlexSim 21.1.2
simulationflexsim 21.1.2event triggermodelingevent
· 1
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Jeanette F avatar image Jeanette F ♦♦ commented ·

Hi @Daniel R13,

Welcome to FlexSim. We are happy to help.

It's hard to know how to help without looking at your model. To receive a more accurate solution, please post your model or a sample model that demonstrates your question.

Proprietary models can be posted as a private question visible only to FlexSim U.S. support staff. You can also contact your local FlexSim distributor for phone or email help.

0 Likes 0 ·

1 Answer

·
Jason Lightfoot avatar image
1 Like"
Jason Lightfoot answered Daniel R13 commented

Depending on what you're trying to achieve you could add a user event (Toolbox->Modeling Logic->User Events) or a source with a fixed interarrival time (3D or process flow), or if it's to gather data you can have a statistics collector that fires at regular intervals.

· 1
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Daniel R13 avatar image Daniel R13 commented ·

Thank you!

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.