Changing FINAL TIME in a command file and other problems
Posted: Thu Sep 14, 2017 5:41 pm
I'm using command scripts (http://www.vensim.com/documentation/ind ... ?25670.htm) for the first time, and I've got two questions. The attached model shows what I mean.
First, the model is set up to run 144 hours--6 days. If you run that from Vensim, you can see "flow per hour" marking off each AM time. "marker" stays at 1.
If I run from Cygwin bash, where cft1.cmd looks like
I get Vensim to open a "Save backup as new file" file search box, with Save as type set to Vensim Models and the existing model name filled in. If I click Save, something happens, Vensim closes, and there's no apparent change to the directory.
What am I doing wrong?
Second, I tried cft2.cmd, instead:
This time, the same thing happens, and I also get a binary Changing FINAL TIME.3vm file in my directory.
What am I doing wrong here?
Thanks,
Bill
First, the model is set up to run 144 hours--6 days. If you run that from Vensim, you can see "flow per hour" marking off each AM time. "marker" stays at 1.
If I run
Code: Select all
"c:/Program Files (x86)/Vensim/vensim.exe" cft1.cmd
Code: Select all
SPECIAL>NOINTERACTION
SPECIAL>LOADMODEL|Changing FINAL TIME.mdl
SIMULATE>RUNNAME|extendfinaltime
MENU>RUN|O
MENU>VDF2CSV|extendfinaltime.vdf|extendfinaltime.CSV|extentfinaltime.lst|*
MENU>EXIT
What am I doing wrong?
Second, I tried cft2.cmd, instead:
My intent was that the third line would change the End Time for this run, so graphs and tables would show results for 168 hours, and the next-to-the-last line would change FINAL TIME to 168, so the simulation would run that long.SPECIAL>NOINTERACTION
SPECIAL>LOADMODEL|Changing FINAL TIME.mdl
SIMULATE>SETVAL|FINAL TIME=168
SIMULATE>RUNNAME|extendfinaltime
MENU>RUN|O
MENU>VDF2CSV|extendfinaltime.vdf|extendfinaltime.CSV|extentfinaltime.lst|*|0|168
MENU>EXIT
This time, the same thing happens, and I also get a binary Changing FINAL TIME.3vm file in my directory.
What am I doing wrong here?
Thanks,
Bill