Test_On_delay Test_On_delay Icon

Test_On_delay

Usage

PrimitiveComponents.Test_On_delay()

Behavior

\[ \begin{equation} \left[ \begin{array}{c} \mathrm{connect}\left( step_{1_{+}y(t)}, on_{delay\_1_{+}u(t)} \right) \\ \mathtt{step\_1.y}\left( t \right) = ifelse\left( t \geq \mathtt{step\_1.start\_time}, \mathtt{step\_1.height} + \mathtt{step\_1.offset}, \mathtt{step\_1.offset} \right) \\ \frac{\mathrm{d} \mathtt{on\_delay\_1.l}\left( t \right)}{\mathrm{d}t} = 0 \\ \mathtt{on\_delay\_1.y}\left( t \right) = ifelse\left( \left( \mathtt{on\_delay\_1.u}\left( t \right) > 0 \right) \wedge \left( Shift(t, -1)\left( \mathtt{on\_delay\_1.u}\left( t \right) \right) > 0 \right), 1, 0 \right) \\ \end{array} \right] \end{equation} \]

Source

component Test_On_delay
  step_1 = BlockComponents.Step(start_time = 5, offset = 0, height = 1) {
    "Dyad": {
      "placement": {
        "diagram": {"iconName": "default", "x1": 110, "y1": 170, "x2": 210, "y2": 270, "rot": 0}
      },
      "tags": []
    }
  }
  on_delay_1 = PrimitiveComponents.DiscretePrimitives.OnDelay(dt = 0.1, delay_time = 0.1) {
    "Dyad": {
      "placement": {
        "diagram": {"iconName": "default", "x1": 350, "y1": 170, "x2": 450, "y2": 270, "rot": 0}
      },
      "tags": []
    }
  }
relations
  connect(step_1.y, on_delay_1.u) {"Dyad": {"edges": [{"S": 1, "M": [], "E": 2}], "renderStyle": "standard"}}
end
Flattened Source
component Test_On_delay
  step_1 = BlockComponents.Step(start_time = 5, offset = 0, height = 1) {
    "Dyad": {
      "placement": {
        "diagram": {"iconName": "default", "x1": 110, "y1": 170, "x2": 210, "y2": 270, "rot": 0}
      },
      "tags": []
    }
  }
  on_delay_1 = PrimitiveComponents.DiscretePrimitives.OnDelay(dt = 0.1, delay_time = 0.1) {
    "Dyad": {
      "placement": {
        "diagram": {"iconName": "default", "x1": 350, "y1": 170, "x2": 450, "y2": 270, "rot": 0}
      },
      "tags": []
    }
  }
relations
  connect(step_1.y, on_delay_1.u) {"Dyad": {"edges": [{"S": 1, "M": [], "E": 2}], "renderStyle": "standard"}}
metadata {}
end


Test Cases

No test cases defined.

  • Examples
  • Experiments
  • Analyses