ATTENTION

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.


flexsim.com

Go Back   FlexSim Community Forum > FlexSim Software > Q&A
Downloads

Q&A Using Flexsim and building models

  #1  
Old 04-16-2012
Stephan Seidel's Avatar
Stephan Seidel Stephan Seidel is offline
Flexsim User
 
Join Date: Mar 2009
Location: Dresden, Germany
Posts: 36
Downloads: 20
Uploads: 0
Thanks: 26
Thanked 22 Times in 8 Posts
Rep Power: 150
Stephan Seidel will become famous soon enough
Question 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  
Old 04-16-2012
Jörg Vogel's Avatar
Jörg Vogel Jörg Vogel is offline
Flexsim User
 
Join Date: Sep 2007
Location: Hannover, Germany
Posts: 643
Downloads: 35
Uploads: 0
Thanks: 802
Thanked 665 Times in 410 Posts
Rep Power: 642
Jörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond repute
Default

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  
Old 04-16-2012
Jens Mühlheimer Jens Mühlheimer is offline
Flexsim User
 
Join Date: Jul 2008
Location: Stuttgart, Germany
Posts: 140
Downloads: 8
Uploads: 0
Thanks: 40
Thanked 35 Times in 27 Posts
Rep Power: 174
Jens Mühlheimer will become famous soon enoughJens Mühlheimer will become famous soon enough
Default

Quote:
Originally Posted by Jörg Vogel View Post
V5.1.2
File > State Files > Save State

Jörg
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  
Old 04-16-2012
Phil BoBo's Avatar
Phil BoBo Phil BoBo is offline
Flexsim Development
 
Join Date: Jan 2008
Posts: 756
Downloads: 109
Uploads: 18
Thanks: 385
Thanked 1,483 Times in 525 Posts
Rep Power: 1174
Phil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond repute
Default

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


All times are GMT -6.
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, vBulletin Solutions Inc.
Copyright 1993-2018 FlexSim Software Products, Inc.