The zip contains model and bat script to run the model silently and generates the results.txt (attached) but i would like to know how to parallely open the actual model and run it when the batch script is called.
The zip contains model and bat script to run the model silently and generates the results.txt (attached) but i would like to know how to parallely open the actual model and run it when the batch script is called.
Hi @vignesh.s, was vigneshs's answer helpful? If so, please click the red "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 unaccept and comment back to reopen your question.
Changing command from nogui_disablemsg_runscript to disablemsg_runscript is the solution i figured. Is there any other command which can open the model but also run it at the same time.
@vignesh.s, you are correct that removing the nogui flag should make it so FlexSim will be displayed when running the batch file.
With only that change, the software still runs the model when the batch file is executed, but it might be running so fast that you don't see the model running. This is because script.txt is using the runspeed() command to set the run speed to 10000. If you remove that line in the script file, or change it to something else like runspeed(4);, then you should see the model run at a more easily seen speed.
Also, the test.fsm model uses FlexScript to stop the model run at a certain point, create/modify the results.txt file, then close the FlexSim software. I believe this is all done in a Sink's On Entry trigger, probably when a specified amount of flowitems enters the Sink. You can try modifying that trigger so the model doesn't automatically close and you can still look through the model even after it is stopped.
6 People are following this question.
FlexSim can help you understand and improve any system or process. Transform your existing data into accurate predictions.
FlexSim is a fully 3D simulation software environment. FlexSim can be used to simulate any process in any industry.
FlexSim®, FlexSim Healthcare™, Problem Solved.®, the FlexSim logo, the FlexSim X-mark, and the FlexSim Healthcare logo with stylized Caduceus mark are trademarks of FlexSim Software Products, Inc. All rights reserved.
Privacy | Do not sell or share my personal information | Cookie preferences | Report noncompliance | Terms of use | Legal | © Autodesk Inc. All rights reserved