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
| Name | Direction | Unit | Meaning |
|---|---|---|---|
value | input | 1 | counter; real signal. |
enabled | input | 1 | Write enabled; bool signal. |
Parameters
Defaults are initial model values. Select values for your own model and operating conditions.
| Parameter | Unit | Default | Meaning and limits |
|---|---|---|---|
Local storage namestore | 1 | counter | Explicit 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 →| Output | Time (s) | Expected value | Unit | Absolute tolerance |
|---|---|---|---|---|
Stored-valueStored-value | 0.2 | 2 | 1 | 1e-09 |
Use in a workflow
Read and update local sampled storage
Writes a value for the next sample when its enable input is true.
- 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.
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)