Data Write Local
Write arbitrary data to a local storage area (allows looped workflows). This block stores the incoming value under a user-defined key so other blocks can retrieve it later. Note: this approach does not guarantee strict data flow orderingβuse it when you need a simple shared storage or to break direct flow dependencies.
π₯ Inputs
Generic β Input socket. Accepts any type of data to be stored.
π€ Outputs
This block does not have outputs.
πΉοΈ Controls
Data Key β Enter a string that identifies where the input will be saved in local storage. Use descriptive, unique keys to avoid accidental overwrites.
(hint) Keys are treated as plain text names. Empty or duplicate keys may overwrite existing entries.
π¨ Features
Simple local storage: Save any incoming value under a named key so it can be read elsewhere in the scenario.
Loop-friendly: Useful when you need to pass values around in systems that require indirect referencing (e.g., feedback loops).
Lightweight and UI-driven: Key is set from the block interface, no extra configuration needed.
βοΈ Running mechanism
When the block runs, it checks the input socket. If a value is present, the block saves that value into the scenario's local storage under the string provided in the Data Key control. The saved value remains available until another write replaces it or the scenario ends. Because this storage is separate from the direct flow between blocks, timing and sequence guarantees are not enforced.
π Usage instructions
Enter a clear
Data Keyname (for example: "current_count" or "last_frame_time").Connect a producer block to the
Genericinput and run the scenario.Other blocks can retrieve the saved value by reading the same key (use a local read block).
π‘ Tips and Tricks
Combine with
Data Read Localto fetch the value later in the same scenario (useful for simple loops or passing metadata).Use with
Subsystem Loopwhen you need to store intermediate results inside iterative flows.Use
Data Memoryto freeze or gate values you write, preventing unintended updates.Pair with
Is NoneorDebug Inputto verify whether a value was stored before attempting to read it.For logging or exporting stored records, read the key and feed the result to
Data to JSON,CSV Export, orImage Loggeras appropriate.To share data across separate scenarios or machines, use
Data Write Global/Data Read Globalinstead of local write/read.
π οΈ Troubleshooting
No value appears when reading the key: verify the producing block actually sends data to the
Genericinput and that theData Keytext exactly matches the one used by the reader.Unexpected overwrite: ensure you use unique, descriptive keys. Consider adding a prefix (like board name or timestamp) if multiple parts of the scenario write similar values.
Race conditions or inconsistent timing: remember local storage does not enforce data flow integrity. If strict ordering is required, prefer direct connections or synchronize via flow-control blocks.
Last updated
Was this helpful?