#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 , 9 years ago
Milestone: | Future → 1.10.0 |
---|---|
Status: | new → accepted |
comment:2 by , 9 years ago
Resolution: | → fixed |
---|---|
Status: | accepted → closed |
It is not working because the regular expression doesn't allow the dot (.)
I have fixed it now in d2f3af8/OMEdit.
comment:3 by , 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;
Note:
See TracTickets
for help on using tickets.
Can you provide a sample model?