trigger on run stop problem

trigger on run stop problem

dongdong
Not applicable
195 Views
4 Replies
Message 1 of 5

trigger on run stop problem

dongdong
Not applicable

[ FlexSim 24.2.2 ]

Hi, currently my model is paused, and I'm using the trigger on "Run Stop" to open a socket and receive messages. When a specific value is received, it should stop receiving and continue running with `go`, but it doesn't proceed as expected. How can I resolve this?

1731516313995.png

0 Likes
Accepted solutions (1)
196 Views
4 Replies
Replies (4)
Message 2 of 5

joerg_vogel_HsH
Mentor
Mentor
Accepted solution

@dong, There does not exist an command interpreter, that runs during the program flexsim is open to iniate automatically a modell run. Once a model has been called a stop on it, the model will only start by a hitting the run button.

If you want to have such a functionality, you must use an external procedure on windows system level, that emulates activating a button in a FlexSim program window.

0 Likes
Message 3 of 5

dongdong
Not applicable

However, I would like to achieve this through socket listening, but I'm unable to set up the listening correctly. What should I do?

0 Likes
Message 4 of 5

joerg_vogel_HsH
Mentor
Mentor
@dong, this additional condition does not change anything in my answer. As long as you stop your model run at a timestamp, you will not get it to work again still from any code from within your model.
0 Likes
Message 5 of 5

logan_gold
Community Manager
Community Manager

Hi @dong, was Joerg Vogel's answer helpful? If so, please click the "Accept" button at the bottom of their answer. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always comment back to reopen your question.

0 Likes