Lemonergy · Studio block

Digital clock

Samples simulation time and holds that time between instants.

Implementation ID
native-digital-clock
Reviewed
2026-10-27

Behavior

y(t) = tₖ for tₖ ≤ t < tₖ₊₁.

Interface

Digital clock interfaceInputs or arguments on the left, observed outputs on the right. Conserving terminals appear below the component. The tables give units and behavior.Digital clockStudio blockout0
Original Lemonergy interface view. Lines identify ports; they are not a completed simulation circuit.
Ports and observed outputs
NameDirectionUnitMeaning
out0output1Signal; real scalar.

Parameters

Defaults are initial model values. Select values for your own model and operating conditions.

Configuration fields
ParameterUnitDefaultMeaning and limits
Sample period
sampleTimeS
s0.1Positive interval between sample instants. Values are held between samples.
Minimum 0

Equations and rules

  • y(t) = tₖ for tₖ ≤ t < tₖ₊₁

Worked example

Digital clock — worked example

Use the configured source parameters. Signal at 0 s = 0.

Open Studio example after release →
Numerical checks for the bundled synthetic example
OutputTime (s)Expected valueUnitAbsolute tolerance
Signal
out0
0011e-08

Explore the recorded outputs

Digital clock recorded example

Digital clock
Digital clock against timeRecorded synthetic simulation values. Time in seconds; output in s.-0.0800.210.250.50.50.790.751.081sTime (s)
Digital clock: 0 s at 0 s

11 actual recorded samples. Lines are visual guides between samples. Synthetic example, not measured cell data.

Download the recorded samples (JSON) · Open this Studio example after release

Use in a workflow

Digital clock — worked example

Samples simulation time and holds that time between instants.

  1. Digital clock: y(t) = tₖ for tₖ ≤ t < tₖ₊₁.
    • Use the block reference for settings and connections.
    • Implementation tested locally; public release pending.
Open Studio example after release

Connected concepts

Limits and interpretation

  • Reports sampled simulation time, not wall-clock time.

Reference basis

This software operation is defined by its public contract and worked example; no external research result is claimed.

Implementation sources

This reference follows the public interface and locally verified numerical checks for an upcoming release.

Contract: Lemonergy Studio public contract · Verification record: verification-2026-10-27

  • docs/glossary/native-block-verification.json

This implementation and its workflow uses (JSON) · Knowledge graph (JSON-LD)