-var name_of_variable value_of_variable
-i. I'm sure you can translate a file of
name valueinto a list of
-var name valueusing xargs (you can probably simply write you -var in a file and ask the shell to include it in the command line...) I'll try and give you my results
Yes it somehow work. I've written a file
-var foo 0 -var bar 1
and a model test.ka that use 'foo' and 'bar'. Then I
KaSim -make-sim test.sim $(cat vars) test.ka
Now if I change the value of 'foo' and 'bar' in
KaSim $(cat vars) -load-sim test.sim, it does run the simulation with the new values!
KaSim $(cat vars) -load-sim test.siminside a for loop in bash because missing whitespaces: it should say
KaSim $( cat vars ) -load-sim test.sim. That little mistake prevented KaSim read new values.
%obs: 'obs_name' 'var_name'
invalid use of character [or
Invalid internal statewith models in the model folder with the master branch but no error with KaSim4 rc1.
Parsing synth.ka... done File "synth.ka", line 42, characters 0-0: Incorrect beginning of sentence
%mod: repeat ... do ... until ...construction. You can make the test/application time based instead of event based by using
%mod: alarm ... repeat ... do ... until ....