I have a simulation model that I would like to run externally multiple times using python.
I am looking for commands that do the following:
1) Order the software to start running (I tried this but did not work). My model is called Test2, and I have a code written on a scrip text file resetmodel(); runspeed(10000); go();
Code in python uses the following extensions to run the script and the simulation model (Test2). I used this code from a previous post:
C:\Users\fhalawa\OneDrive\Desktop\Test2.fsm" /maintenance nogui_disablemsg_runscript /scriptpath "C:\Users\username\Desktop\script.txt
The problem that I have, is that when I run the code, felxsim model opens externally but does not start working.
2) My second issue: How can I use Python (or the external language) to let objects such as pyxis machine or bed connect to an existing node on the model? What commands should be used? The picture attached shows an example. What I want to do is to ask the model to move the pyxis machine from current location and move it to the x, y coordinates of the node in the attached picture and connect the machine to that node and re-run the model (all this externally).