openmodelicainterest  

RE: val() in OpenModelica

Peter Fritzson
Tue, 09 Feb 2010 09:58:43 -0800

val is only implemented for numerical variables.
 
Peter F

  _____  

From: owner-openmodelicainter...@ida.liu.se
[mailto:owner-openmodelicainter...@ida.liu.se] On Behalf Of Alex Schenkman
Sent: den 9 februari 2010 14:07
To: openmodelicainterest@ida.liu.se
Subject: OMShell and String variables


Should this work on OMShell? 
I expected a string back, but I got an empty line.


>> list() 

"model test

String x = "aString";

end test;

"

>> listVariables()

{}

>> instantiateModel(test)

"fclass test

String x = "aString";

end test;

"

>> simulate(test)

record SimulationResult

resultFile = "test_res.plt"

end SimulationResult;

>> val(x,0.2)




>>