block InitialStep "Initial step (= step that is active when simulation starts)"
output Boolean active "= true if step is active, otherwise the step is not active";
extends Interfaces.PartialStep;
initial equation
active = true;
equation
active = localActive;
annotation (
Icon(
coordinateSystem(
preserveAspectRatio = true,
extent = {
{-100, -100},
{100, 100}}),
graphics = {
Text(
extent = {
{-200, 110},
{200, 150}},
textString = "%name",
lineColor = {0, 0, 255}),
Rectangle(
extent = {
{-100, 100},
{100, -100}},
fillColor = DynamicSelect({255, 255, 255}, if active then {0, 255, 0} else {255, 255, 255}),
fillPattern = FillPattern.Solid),
Rectangle(extent = {
{-80, 80},
{80, -80}})}),
Diagram(
coordinateSystem(
preserveAspectRatio = true,
extent = {
{-100, -100},
{100, 100}}),
graphics = {
Rectangle(extent = {
{-100, 100},
{100, -100}}),
Rectangle(extent = {
{-80, 80},
{80, -80}})}));
end InitialStep;