---
url: /dyad/dev/stdlib/DiscreteComponents/tests/Examples.TestClockPropagator.md
description: >-
  Dyad Examples.TestClockPropagator docs. 
  DiscreteComponents.Examples.TestClockPropagator()
---

# `Examples.TestClockPropagator` {#Examples.TestClockPropagator}

## Usage {#Usage}

`DiscreteComponents.Examples.TestClockPropagator()`

## Behavior {#Behavior}

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

## Source {#Source}

```dyad
test component TestClockPropagator
  cosine = BlockComponents.Sources.Cosine(amplitude = 1, frequency = 1) {
    "Dyad": {
      "placement": {
        "diagram": {"iconName": "default", "x1": 290, "y1": 360, "x2": 390, "y2": 460, "rot": 0}
      },
      "tags": []
    }
  }
  sine = BlockComponents.Sources.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.Integrator.SimpleDiscreteIntegrator() {
    "Dyad": {
      "placement": {
        "diagram": {"iconName": "default", "x1": 780, "y1": 360, "x2": 880, "y2": 460, "rot": 0}
      },
      "tags": []
    }
  }
  simplediscreteintegrator1 = DiscreteComponents.Examples.Integrator.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
```

```dyad
test component TestClockPropagator
  cosine = BlockComponents.Sources.Cosine(amplitude = 1, frequency = 1) {
    "Dyad": {
      "placement": {
        "diagram": {"iconName": "default", "x1": 290, "y1": 360, "x2": 390, "y2": 460, "rot": 0}
      },
      "tags": []
    }
  }
  sine = BlockComponents.Sources.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.Integrator.SimpleDiscreteIntegrator() {
    "Dyad": {
      "placement": {
        "diagram": {"iconName": "default", "x1": 780, "y1": 360, "x2": 880, "y2": 460, "rot": 0}
      },
      "tags": []
    }
  }
  simplediscreteintegrator1 = DiscreteComponents.Examples.Integrator.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 {#Test-Cases}

No test cases defined.

## Related {#Related}

* Examples

* Experiments

* Analyses

* Tests
  * [`ClockPropagator`](Examples.TestClockPropagator.md)

  * [`Cosine`](Examples.TestClockPropagator.md)

  * [`PeriodicClock`](Examples.TestClockPropagator.md)

  * [`Sampler`](Examples.TestClockPropagator.md)

  * [`SimpleDiscreteIntegrator`](Examples.TestClockPropagator.md)

  * [`Sine`](Examples.TestClockPropagator.md)
