Slider - save value during simulation

Use this forum to post Sable related questions.

Moderator: Administrator

Post Reply
Adam
Junior Member
Posts: 6
Joined: Sun Jan 15, 2012 7:55 pm

Slider - save value during simulation

Post 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?
Administrator
Super Administrator
Posts: 4573
Joined: Wed Mar 05, 2003 3:10 am

Re: Slider - save value during simulation

Post 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
Advice to posters seeking help (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391

Units are important!
http://www.bbc.co.uk/news/magazine-27509559
Adam
Junior Member
Posts: 6
Joined: Sun Jan 15, 2012 7:55 pm

Re: Slider - save value during simulation

Post 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
Administrator
Super Administrator
Posts: 4573
Joined: Wed Mar 05, 2003 3:10 am

Re: Slider - save value during simulation

Post by Administrator »

Can you post the project to the forum so I can take a look?
Advice to posters seeking help (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391

Units are important!
http://www.bbc.co.uk/news/magazine-27509559
Post Reply