TestClockPropagator TestClockPropagator Icon

Examples.TestClockPropagator

Usage

DiscreteComponents.Examples.TestClockPropagator()

Behavior

Behavior of this component cannot be rendered because it includes path variables.

Source

test component TestClockPropagator
  cosine = BlockComponents.Cosine(amplitude = 1, frequency = 1) {
    "Dyad": {
      "placement": {
        "diagram": {"iconName": "default", "x1": 290, "y1": 360, "x2": 390, "y2": 460, "rot": 0}
      },
      "tags": []
    }
  }
  sine = BlockComponents.Sine(amplitude = 1, frequency = 1) {
    "Dyad": {
      "placement": {
        "diagram": {"iconName": "default", "x1": 290, "y1": 530, "x2": 390, "y2": 630, "rot": 0}
      },
      "tags": []
    }
  }
  sampler = DiscreteComponents.Sampler() {
    "Dyad": {
      "placement": {
        "diagram": {"iconName": "default", "x1": 480, "y1": 360, "x2": 580, "y2": 460, "rot": 0}
      },
      "tags": []
    }
  }
  sampler1 = DiscreteComponents.Sampler() {
    "Dyad": {
      "placement": {
        "diagram": {"iconName": "default", "x1": 480, "y1": 530, "x2": 580, "y2": 630, "rot": 0}
      },
      "tags": []
    }
  }
  periodicclock = DiscreteComponents.PeriodicClock(dt = 0.05) {
    "Dyad": {
      "placement": {
        "diagram": {"iconName": "default", "x1": 650, "y1": 680, "x2": 750, "y2": 780, "rot": 0}
      },
      "tags": []
    }
  }
  clockpropagator = DiscreteComponents.ClockPropagator() {
    "Dyad": {
      "placement": {
        "diagram": {"iconName": "default", "x1": 650, "y1": 440, "x2": 750, "y2": 540, "rot": 0}
      },
      "tags": []
    }
  }
  simplediscreteintegrator = DiscreteComponents.Examples.SimpleDiscreteIntegrator() {
    "Dyad": {
      "placement": {
        "diagram": {"iconName": "default", "x1": 780, "y1": 360, "x2": 880, "y2": 460, "rot": 0}
      },
      "tags": []
    }
  }
  simplediscreteintegrator1 = DiscreteComponents.Examples.SimpleDiscreteIntegrator() {
    "Dyad": {
      "placement": {
        "diagram": {"iconName": "default", "x1": 780, "y1": 590, "x2": 880, "y2": 690, "rot": 0}
      },
      "tags": []
    }
  }
relations
  connect(sampler.y, clockpropagator.u) {
    "Dyad": {
      "renderStyle": "standard",
      "edges": [{"S": 1, "M": [{"x": 615.5, "y": 410}, {"x": 615.5, "y": 455}], "E": 2}]
    }
  }
  connect(sampler1.y, clockpropagator.y) {
    "Dyad": {
      "renderStyle": "standard",
      "edges": [{"S": 1, "M": [{"x": 615.5, "y": 580}, {"x": 615.5, "y": 525}], "E": 2}]
    }
  }
  connect(sampler1.y, periodicclock.y) {
    "Dyad": {
      "edges": [{"S": 1, "M": [{"x": 615.5, "y": 580}, {"x": 615.5, "y": 730}], "E": 2}],
      "renderStyle": "standard"
    }
  }
  connect(cosine.y, sampler.u) {"Dyad": {"renderStyle": "standard", "edges": [{"S": 1, "E": 2, "M": []}]}}
  connect(sine.y, sampler1.u) {"Dyad": {"renderStyle": "standard", "edges": [{"S": 1, "E": 2, "M": []}]}}
  connect(sampler1.y, simplediscreteintegrator1.u) {
    "Dyad": {
      "edges": [{"S": 1, "M": [{"x": 690, "y": 580}, {"x": 690, "y": 640}], "E": 2}],
      "renderStyle": "standard"
    }
  }
  connect(sampler.y, simplediscreteintegrator.u) {"Dyad": {"renderStyle": "standard", "edges": [{"S": 1, "E": 2, "M": []}]}}
metadata {"Dyad": {"doc": {"behavior": false}}}
end
Flattened Source
test component TestClockPropagator
  cosine = BlockComponents.Cosine(amplitude = 1, frequency = 1) {
    "Dyad": {
      "placement": {
        "diagram": {"iconName": "default", "x1": 290, "y1": 360, "x2": 390, "y2": 460, "rot": 0}
      },
      "tags": []
    }
  }
  sine = BlockComponents.Sine(amplitude = 1, frequency = 1) {
    "Dyad": {
      "placement": {
        "diagram": {"iconName": "default", "x1": 290, "y1": 530, "x2": 390, "y2": 630, "rot": 0}
      },
      "tags": []
    }
  }
  sampler = DiscreteComponents.Sampler() {
    "Dyad": {
      "placement": {
        "diagram": {"iconName": "default", "x1": 480, "y1": 360, "x2": 580, "y2": 460, "rot": 0}
      },
      "tags": []
    }
  }
  sampler1 = DiscreteComponents.Sampler() {
    "Dyad": {
      "placement": {
        "diagram": {"iconName": "default", "x1": 480, "y1": 530, "x2": 580, "y2": 630, "rot": 0}
      },
      "tags": []
    }
  }
  periodicclock = DiscreteComponents.PeriodicClock(dt = 0.05) {
    "Dyad": {
      "placement": {
        "diagram": {"iconName": "default", "x1": 650, "y1": 680, "x2": 750, "y2": 780, "rot": 0}
      },
      "tags": []
    }
  }
  clockpropagator = DiscreteComponents.ClockPropagator() {
    "Dyad": {
      "placement": {
        "diagram": {"iconName": "default", "x1": 650, "y1": 440, "x2": 750, "y2": 540, "rot": 0}
      },
      "tags": []
    }
  }
  simplediscreteintegrator = DiscreteComponents.Examples.SimpleDiscreteIntegrator() {
    "Dyad": {
      "placement": {
        "diagram": {"iconName": "default", "x1": 780, "y1": 360, "x2": 880, "y2": 460, "rot": 0}
      },
      "tags": []
    }
  }
  simplediscreteintegrator1 = DiscreteComponents.Examples.SimpleDiscreteIntegrator() {
    "Dyad": {
      "placement": {
        "diagram": {"iconName": "default", "x1": 780, "y1": 590, "x2": 880, "y2": 690, "rot": 0}
      },
      "tags": []
    }
  }
relations
  connect(sampler.y, clockpropagator.u) {
    "Dyad": {
      "renderStyle": "standard",
      "edges": [{"S": 1, "M": [{"x": 615.5, "y": 410}, {"x": 615.5, "y": 455}], "E": 2}]
    }
  }
  connect(sampler1.y, clockpropagator.y) {
    "Dyad": {
      "renderStyle": "standard",
      "edges": [{"S": 1, "M": [{"x": 615.5, "y": 580}, {"x": 615.5, "y": 525}], "E": 2}]
    }
  }
  connect(sampler1.y, periodicclock.y) {
    "Dyad": {
      "edges": [{"S": 1, "M": [{"x": 615.5, "y": 580}, {"x": 615.5, "y": 730}], "E": 2}],
      "renderStyle": "standard"
    }
  }
  connect(cosine.y, sampler.u) {"Dyad": {"renderStyle": "standard", "edges": [{"S": 1, "E": 2, "M": []}]}}
  connect(sine.y, sampler1.u) {"Dyad": {"renderStyle": "standard", "edges": [{"S": 1, "E": 2, "M": []}]}}
  connect(sampler1.y, simplediscreteintegrator1.u) {
    "Dyad": {
      "edges": [{"S": 1, "M": [{"x": 690, "y": 580}, {"x": 690, "y": 640}], "E": 2}],
      "renderStyle": "standard"
    }
  }
  connect(sampler.y, simplediscreteintegrator.u) {"Dyad": {"renderStyle": "standard", "edges": [{"S": 1, "E": 2, "M": []}]}}
metadata {"Dyad": {"doc": {"behavior": false}}}
end


Test Cases

No test cases defined.