I want to simulate Modelica.Fluid.Examples.ControlledTankSystem.ControlledTanks model with start , stop ,shut control logic..
**Modelica.Blocks.Sources.RadioButtonSource start( reset={stop.on,shut.on}, buttonTimeTable={20,280})**
if i want to change start time {**50,350}**, how to change in OmPython Editor.
**My Code:***
from OMPython import OMCSessionZMQ omc = OMCSessionZMQ() omc.sendExpression("simulate(Modelica.Fluid.Examples.ControlledTankSystem.ControlledTanks, outputFormat="csv")")
I tried like
`omc.sendExpression(“setElementModifierValue(Modelica.Fluid.Examples.ControlledTankSystem.ControlledTanks,start.buttonTimeTable,{50,350})”)
omc.sendExpression(“buildModel(Modelica.Fluid.Examples.ControlledTankSystem.ControlledTanks,
Modelica.Blocks.Sources.RadioButtonSource.start.buttonTimeTable={50,350})”)`
but nothing works
Malathi T is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.