Search found 5 matches

by niain
Wed Apr 26, 2017 8:54 am
Forum: Vensim
Topic: the command "SIMULATE>SIMULATE>SETVAL"
Replies: 4
Views: 2253

Re: the command "SIMULATE>SIMULATE>SETVAL"

Why not run a loop to construct the string to pass to Vensim? something like strVensimCommand = "SIMULATE>SETVAL|mylookup("; for ( i = 0 ; i < UpperBound ; i++ ) { strVensimCommand = strVensimCommand + "(" + arrayX[i] + "," + arrayY[i] , "),"; } oh,that's a g...
by niain
Wed Apr 26, 2017 8:45 am
Forum: Vensim
Topic: the command "SIMULATE>SIMULATE>SETVAL"
Replies: 4
Views: 2253

Re: the command "SIMULATE>SIMULATE>SETVAL"

Administrator wrote:Where do you have the x,y pairs stored?
An two-dimension Array。
by niain
Wed Apr 26, 2017 7:44 am
Forum: Vensim
Topic: the command "SIMULATE>SIMULATE>SETVAL"
Replies: 4
Views: 2253

the command "SIMULATE>SIMULATE>SETVAL"

I developed a Java project ,and I want to use the command "SIMULATE>SIMULATE>SETVAL"to change a Lookup. The help document give an example "SIMULATE>SETVAL|mylookup((0,0),(1,1),(2,2),(5,5))",but there are many (x,y) that I want to change,it's impossible for me to type it by hand. ...
by niain
Tue Apr 25, 2017 12:53 am
Forum: Vensim
Topic: the Java example of Vensim DLL
Replies: 2
Views: 1617

Re: the Java example of Vensim DLL

Administrator wrote:Do you have the run open in Vensim as well?

And what path are you running the sample from? Make sure it's in your Documents folder or some other place that you have permissions to write to.
Thank you!when I put the example in Document folder,the model run well.Thank you very much.
by niain
Mon Apr 24, 2017 12:04 pm
Forum: Vensim
Topic: the Java example of Vensim DLL
Replies: 2
Views: 1617

the Java example of Vensim DLL

when I run the java example of Vensim DLL ,once I click the simulate button,there is an dialog box shows "Can't write to the file base.vdf(busy or insufficient permission)'',it's grateful for heiping me with this problem.