question

Luis Fernando avatar image
0 Likes"
Luis Fernando asked Logan Gold commented

How to reset and run model with a command in process flow?

Hi FlexSim team,

What is the run model command in FlexSim in process flow?

I want to run the model without click in the "Run" model, I want to reset and run the model each 5 seconds for example.

Run Function in FlexSim.fsm1718042347561.png


FlexSim 24.0.2
process flowrun command
· 4
5 |100000

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

Jason Lightfoot avatar image Jason Lightfoot ♦♦ commented ·
Process flows are part of the model so as soon as you reset it, your token will disappear meaning you get no further events.
0 Likes 0 ·
Luis Fernando avatar image Luis Fernando Jason Lightfoot ♦♦ commented ·

Hi Jason,

Is there any other method that can be used to do something like this?

I need this reset and run periodically to update a global table that is connected to a database. But, this global table import/update is performed each "reset" defined by the system as is highlighted bellow:

1718055194390.png

Thank you,

Luis

0 Likes 0 ·
1718055194390.png (46.1 KiB)
Jason Lightfoot avatar image Jason Lightfoot ♦♦ Luis Fernando commented ·
You may get some ideas from the answer to this post.

If you want live data you could also consider just getting the information directly from the database rather than read from a global table.


0 Likes 0 ·
Logan Gold avatar image Logan Gold ♦♦ commented ·

Hi @Luis Fernando,

We haven't heard back from you. Were you able to solve your problem? If so, please add and accept an answer to let others know the solution. Or please respond to the previous comment so that we can continue to help you.

If we don't hear back in the next 3 business days, we'll assume you were able to solve your problem and we'll close this case in our tracker. You can always comment back at any time to reopen your question, or you can contact your local FlexSim distributor for phone or email help.

0 Likes 0 ·

1 Answer

Joerg Vogel avatar image
0 Likes"
Joerg Vogel answered

Perhaps you can get something similar by emulating mouse clicks with tools like https://en.wikipedia.org/wiki/AutoHotkey


5 |100000

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