This FlexSim Community Forum is read-only. Please post any new questions, ideas, or discussions to our new community (we call it Answers) at https://answers.flexsim.com/. Our new Question & Answer site brings a modern, mobile-friendly interface and more focus on getting answers quickly. There are a few differences between how our new Q&A community works vs. a classic, threaded-conversation-style forum like the one below, so be sure to read our Answers Best Practices.
This is an example on how to use the OnStateChange functionality in Flexsim.
The idea is to make a node OnStateChange in the tree under behaviour/eventfunctions and toggle it to Flexscript.
Keep in mind, that if the STOP button is pressed the statistics get updated and therefore some additional state changes are done. Using the PAUSE button will not have these additional state changes.
Attention:
Do not delete or rename the object Logo_FlexsimD, because otherwise the model will not work correctly. Also do not rename, delete or rerank other objects.
Path:
\userprojects\SupportModels\
Files:
Support_OnStateChange_TD.fsm