Lemonergy · Studio block

Storage writer

Writes a value for the next sample when its enable input is true.

Implementation ID
data-store-write
Reviewed
2026-10-27

Behavior

The writer supplies a typed value and Boolean enable. Disabling writes retains the previous snapshot.

Interface

Storage writer interfaceInputs or arguments on the left, observed outputs on the right. Conserving terminals appear below the component. The tables give units and behavior.Storage writerStudio blockvalueenabled
Original Lemonergy interface view. Lines identify ports; they are not a completed simulation circuit.
Ports and observed outputs
NameDirectionUnitMeaning
valueinput1counter; real signal.
enabledinput1Write enabled; bool signal.

Parameters

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

Configuration fields
ParameterUnitDefaultMeaning and limits
Local storage name
store
1counterExplicit store used by this worked model.

Equations and rules

  • next snapshot = input if enabled; previous snapshot otherwise

Worked example

Read and update local sampled storage

Increment = 1. Stored-value at 0.2 s = 2.

Open Studio example after release →
Numerical checks for the bundled synthetic example
OutputTime (s)Expected valueUnitAbsolute tolerance
Stored-value
Stored-value
0.2211e-09

Use in a workflow

Read and update local sampled storage

Writes a value for the next sample when its enable input is true.

  1. Storage writer: The writer supplies a typed value and Boolean enable. Disabling writes retains the previous snapshot.
    • 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 one writer is allowed per local declaration. Combine competing write decisions explicitly before this port.

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)