Opened 8 years ago
Closed 8 years ago
#4768 closed defect (worksforme)
missing resultsvars when calling readSimulationResultVars
| Reported by: | Niklas Worschech | Owned by: | somebody | 
|---|---|---|---|
| Priority: | high | Milestone: | Future | 
| Component: | Command Prompt Environment | Version: | |
| Keywords: | readSimulationResultVars, omc c-api | Cc: | Florian.Werner@… | 
Description
The OpenModelica API call of readSimulationResultVars("results.mat",true)
returns for this model
model ResultTest Modelica.Blocks.Sources.Constant const(k=1); Modelica.Blocks.Math.Sin sin; equation connect(sin.u, const.y); end ResultTest;
the result vars: {"Time","_derdummy","_dummy","const.k","const.y","sin.u","sin.y"}
But for results that should not include parameter, the call of
readSimulationResultVars("results.mat",false)
only returns:
{"Time","_derdummy","_dummy"}
but we expect the result vars:
{"Time","_derdummy","_dummy","const.y","sin.u","sin.y"}
Change History (3)
follow-up: 2 comment:1 by , 8 years ago
comment:2 by , 8 years ago
Replying to sjoelund.se:
These variables are stored as parameters in the result file (not time-varying)
Yes, that is correct. But it doesn't make any sense from a user's perspective.
comment:3 by , 8 years ago
| Resolution: | → worksforme | 
|---|---|
| Status: | new → closed | 

These variables are stored as parameters in the result file (not time-varying)