Opened 9 years ago

Closed 9 years ago

Last modified 7 years ago

#3784 closed defect (fixed)

OMEdit Component modifier

Reported by: Willi Braun Owned by: Adeel Asghar
Priority: high Milestone:
Component: OMEdit Version:
Keywords: Cc:

Description

For me it seems not to working to set a stateSelect component modifier:

The Modifier v(stateSelect=StateSelect.never) format is invalid. The correct format is phi(start=1)

But it works with start and fixed.

Change History (5)

comment:1 by Adeel Asghar, 9 years ago

Milestone: Future1.10.0
Status: newaccepted

Can you provide a sample model?

comment:2 by Adeel Asghar, 9 years ago

Resolution: fixed
Status: acceptedclosed

It is not working because the regular expression doesn't allow the dot (.)
I have fixed it now in d2f3af8/OMEdit.

comment:3 by Willi Braun, 9 years ago

Also if you look at capacitor2 in parameter view it shows stateSelect in the start field.

model Test
  Modelica.Electrical.Analog.Basic.Ground ground1 annotation(Placement(visible = true, transformation(origin = {-74, -28}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
  Modelica.Electrical.Analog.Basic.Resistor resistor1(R = 20)  annotation(Placement(visible = true, transformation(origin = {-56, 48}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
  Modelica.Electrical.Analog.Basic.Capacitor capacitor2(C = 10e-6, v(stateSelect = StateSelect.never)) annotation(Placement(visible = true, transformation(origin = {42, 14}, extent = {{-10, -10}, {10, 10}}, rotation = -90)));
  Modelica.Electrical.Analog.Basic.Capacitor capacitor1(C = 20e-4) annotation(Placement(visible = true, transformation(origin = {-12, 14}, extent = {{-10, -10}, {10, 10}}, rotation = -90)));
  Modelica.Electrical.Analog.Sources.SineVoltage sineVoltage1(V = 12)  annotation(Placement(visible = true, transformation(origin = {-110, 16}, extent = {{-10, -10}, {10, 10}}, rotation = -90)));
equation
  connect(sineVoltage1.n, ground1.p) annotation(Line(points = {{-110, 6}, {-110, 6}, {-110, -18}, {-74, -18}, {-74, -18}}, color = {0, 0, 255}));
  connect(sineVoltage1.p, resistor1.p) annotation(Line(points = {{-110, 26}, {-110, 26}, {-110, 48}, {-66, 48}, {-66, 48}}, color = {0, 0, 255}));
  connect(capacitor1.p, capacitor2.n) annotation(Line(points = {{-12, 24}, {-12, 24}, {-12, 48}, {42, 48}, {42, 4}, {42, 4}, {42, 4}}, color = {0, 0, 255}));
  connect(capacitor1.n, ground1.p) annotation(Line(points = {{-12, 4}, {-12, 4}, {-12, -18}, {-74, -18}, {-74, -18}}, color = {0, 0, 255}));
  connect(resistor1.n, capacitor1.p) annotation(Line(points = {{-46, 48}, {-12, 48}, {-12, 24}, {-12, 24}}, color = {0, 0, 255}));
  connect(capacitor2.n, ground1.p) annotation(Line(points = {{42, 4}, {42, -18}, {-74, -18}}, color = {0, 0, 255}));
  annotation(Icon(coordinateSystem(extent = {{-150, -100}, {150, 100}})), Diagram(coordinateSystem(extent = {{-200, -100}, {200, 100}})), uses(Modelica(version = "3.2.1")));
end Test;

comment:4 by Adeel Asghar, 9 years ago

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

Milestone: 1.10.0

Milestone deleted

Note: See TracTickets for help on using tickets.