Page 1 of 1

Slider - save value during simulation

Posted: Tue Feb 14, 2012 9:46 pm
by Adam
I have created some sliders and linked them to constants in my vensim model. However, when i change the values of the sliders and then start a simulation, the values are being resetted to the original value and there are also no changes visible in my ouput graphs. How can I avoid this and make multiple changes before running a simulation as it is possible in synthesim mode in vensim?

Re: Slider - save value during simulation

Posted: Wed Feb 15, 2012 8:15 am
by Administrator
Sable works in the same way as Vensim, you set constants and then run. But once the simulation is finished, the sliders will reset.

You can save the values, run the simulation and then reload all on a single button. Try the following commands on a button.

SIMULATE>WRITECIN|temp.cin
MENU>RUN|o
SIMULATE>READCIN|temp.cin

Re: Slider - save value during simulation

Posted: Wed Feb 15, 2012 8:49 pm
by Adam
Thank you again for the quick response. I tried what you described and receive the following error message:

"Got 1 errors reading changes from {cinfile} - some changes may have been made."

Furthermore I also have the problem, that I don't see any changes in my graph after I changed the constant value and started the simulation (with a button containing a command of the type SIMULATE and the command run). Since I can see the changes doing the simulation in vensim, I assume that I do something wrong in sable.

Looking forward to your answer.

Adam

Re: Slider - save value during simulation

Posted: Wed Feb 15, 2012 9:12 pm
by Administrator
Can you post the project to the forum so I can take a look?