Opened 11 years ago

Closed 10 years ago

#2759 closed defect (invalid)

Override value not correctly displayed in OMEdit Variables Browser

Reported by: Jan Kokert Owned by: wbraun, lochel
Priority: normal Milestone: 1.9.2
Component: OMEdit Version: trunk
Keywords: variables browser Cc:

Description

Hi!

When I use the override function, the value is not correclty displayed in OMEdit.

Consider following example:

model main
  parameter Real x = 1.0;
end main;

I let it run with the following command:

-override main.x=2.0

In OMEdit I get for main.x = 1.0 in the "Variables Browser".
But in the plot it is display correct as a line at 2.0.

Could you please fix that small issue?
Thanks in advance!

Change History (9)

comment:1 by Jan Kokert, 11 years ago

Interestingly if I use the command

-overrideFile file.txt

The display in the Variables Browser is correct...

comment:2 by Adeel Asghar, 11 years ago

Component: OMEditBackend
Owner: changed from Adeel Asghar to wbraun, lochel
Status: newassigned

Both should work.

<-override=value> or <-override value>
override the variables or the simulation settings in the XML setup file

The variables browser reads the value from XML file. According to the description of -override the value in the XML file should also change but actually it does not.

The problem is related to simulation backend instead of GUI.

comment:3 by Martin Sjölund, 11 years ago

No. The description does not say that the XML-file will be updated. Just that there is an override for the xml contents... The whole point is to not have to rewrite the xml file.

Last edited 11 years ago by Martin Sjölund (previous) (diff)

in reply to:  3 comment:4 by Adeel Asghar, 11 years ago

Replying to sjoelund.se:

No. The description does not say that the XML-file will be updated. Just that there is an override for the xml contents... The whole point is to not have to rewrite the xml file.

Ah I see. It just override the contents locally and doesn't save them.
Doesn't this make the ticket invalid? Because it is then suppose to be like this and then there is no way for the GUI to read this override value.

comment:5 by Martin Sjölund, 11 years ago

You could parse the simflags that the user sets :) Anyway, if the value shown in OMEdit is modified, it should probably override the given override flag too. How does OMEdit send its own overrides?

comment:6 by Adeel Asghar, 11 years ago

They are send via command line arguments. You can even see them in the simulation output window.

In the Simulation Setup dialog select the simulation flags tab and at the very end specify the overrides in additional simulation flags text box.

comment:7 by Martin Sjölund, 10 years ago

Component: BackendOMEdit

comment:8 by Martin Sjölund, 10 years ago

Milestone: 1.9.11.9.2

This ticket was not closed for 1.9.1, which has now been released. It was batch modified for milestone 1.9.2 (but maybe an empty milestone was more appropriate; feel free to change it).

comment:9 by Adeel Asghar, 10 years ago

Resolution: invalid
Status: assignedclosed

This ticket is invalid starting from r23532. You can't set override values from the Simulation Setup use the Variables Browser to set the override values.

Note: See TracTickets for help on using tickets.