Lemonergy · Studio block

Recorded signal

Plays a local numeric time series with linear interpolation or previous-value hold. Values outside its time range hold the nearest endpoint.

Implementation ID
native-playback
Reviewed
2026-10-27

Behavior

f = (t − tₖ)/(tₖ₊₁ − tₖ). Linear: y(t) = (1−f)yₖ + f yₖ₊₁; hold: y(t) = yₖ.

Interface

Recorded signal interfaceInputs or arguments on the left, observed outputs on the right. Conserving terminals appear below the component. The tables give units and behavior.Recorded signalStudio 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
Interpolation (0 linear, 1 hold)
params[0]
10Configured value for Interpolation (0 linear, 1 hold).
Repeat period (0 for a single profile)
params[1]
s0Configured value for Repeat period (0 for a single profile).
Time knots
times
s[0, 0.5, 1]Strictly increasing nonnegative times.
Signal samples
values
selected output quantity[0, 2, 0]One complete scalar or shaped signal per time row.

Equations and rules

  • f = (t − tₖ)/(tₖ₊₁ − tₖ)
  • Linear: y(t) = (1−f)yₖ + f yₖ₊₁; hold: y(t) = yₖ

Worked example

Recorded signal — 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

Recorded signal recorded example

Recorded signal
Recorded signal against timeRecorded synthetic simulation values. Time in seconds; output in —.-0.1600.420.2510.51.580.752.161—Time (s)
Recorded signal: 0 — at 0 s

3 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

Recorded signal — worked example

Plays a local numeric time series with linear interpolation or previous-value hold. Values outside its time range hold the nearest endpoint.

  1. Recorded signal: f = (t − tₖ)/(tₖ₊₁ − tₖ). Linear: y(t) = (1−f)yₖ + f yₖ₊₁; hold: y(t) = yₖ.
    • Use the block reference for settings and connections.
    • Implementation tested locally; public release pending.
Open Studio example after release

Connected concepts

Limits and interpretation

  • At most 4096 strictly increasing nonnegative times and 65536 values; endpoint values are held outside the table.
  • Local numeric CSV, TSV or semicolon-delimited data are supported; spreadsheet formulas and workbook formats are not evaluated.

Scientific and mathematical references

These sources explain the scientific and mathematical background. The behavior, interface and limits above define the Lemonergy implementation; a citation does not imply every model option in the source is implemented.

  1. NIST Digital Library of Mathematical Functions, §3.3 Interpolation

    National Institute of Standards and Technology

    Technical reference · Interpolation formulas, including linear interpolation equation 3.3.14.

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)