ATTENTIONThis 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. |
flexsim.com |
|
Downloads |
Q&A Using Flexsim and building models |
#1
|
||||
|
||||
SAve and restore the state of the model during a simulation run
Hi All,
I looking for an option to save the current state of a model and restore it afterwards. Some infos for the indented application: Flexsim is communicating with an external application and generates test data which are communicated to and fro the external application. So Flexsim can be seen as a testbed. If an error occurs in the external application it would be nice to save the model state in Flexsim (item position, component states, etc.) in order to restore the model state later on and reproduce the error in the external application. To my knowledge Flexsim saves the model but not the state of the model therefore an empty model is saved. Is there any solution to this issue? Thanks, Stephan Seidel
__________________
--- You can't have it both ways. |
#2
|
||||
|
||||
V5.1.2
File > State Files > Save State Jörg |
The Following User Says Thank You to Jörg Vogel For This Useful Post: | ||
Stephan Seidel (04-16-2012) |
#3
|
|||
|
|||
Just a personal question, because I stumbled upon this thread.
If I use the savestate() command, which should do the same, where is the state-file saved on the harddisk? |
#4
|
||||
|
||||
savestate() doesn't do anything to the harddisk. It saves the state of the project into the model tree so that when you save the model (with a different command), it saves the "state" of the project with the model. Additionally, loadstate() moves the saved information from the model into the project to return to the saved state. Neither actually affects files on the harddisk.
Those two commands are used (along with other commands) in the menu commands for saving and loading state. |
The Following 3 Users Say Thank You to Phil BoBo For This Useful Post: | ||
Stephan Seidel (04-17-2012) |
Tags |
save load model |
Thread | Thread Starter | Forum | Replies | Last Post |
problem with recycle and restore item | juan alberto | Q&A | 1 | 03-09-2011 06:49 AM |
update flexsim 5.10,can not save model | LINWEIXU | Q&A | 5 | 01-31-2011 07:11 AM |
State Graph in Model Control GUI | Tom David | Q&A | 4 | 11-21-2007 12:50 AM |