Data Read Local
Read a value stored in the scenario's local data storage and output it for other blocks to use. Useful when you need to share values inside the same scenario (for example inside loops or between different branches) without relying on direct connections.
π₯ Inputs
This block does not have any inputs.
π€ Outputs
Generic This socket outputs the value retrieved from local storage for the given key. If the key is not found a default value is produced and a warning is shown.
πΉοΈ Controls
Data Key Enter the text key used to look up the value in the local storage. The field provides autocomplete suggestions for existing local keys to help avoid typing mistakes.
βοΈ Running mechanism
When the scenario runs, the block uses the text from the
Data Keycontrol to look up a value in the scenario's local storage.If a matching entry exists, that value is sent through the
Genericoutput socket.If there is no matching entry, the block produces a safe default and shows a warning so you know the key could not be found.
β¨ Features
Local storage read access for sharing data across the scenario without direct connections.
Autocomplete for the
Data Keycontrol to reduce typos and speed up setup.Safe default behavior and a visible warning when a key is missing.
π Usage
Type the name of the value you want to read into the
Data Keycontrol (use autocomplete to pick existing keys).Run the scenario. The block will output the stored value to the
Genericsocket when available.Use downstream blocks to process, display or export the value.
Examples of common uses:
Read counters, flags or intermediate results that were stored earlier in the scenario.
Pull configuration values placed in local storage by a setup step.
π‘ Tips and Tricks
To save a value that this block can read, pair it with the
Data Write Localblock. Write once, read wherever needed in the same scenario.If you need data to persist across runs or be available globally, use
Data Write GlobalandData Read Globalinstead.Use
Is NoneorReplace Noneafter this block to provide fallback values and avoid downstream errors when a key is missing.Combine with
Debug Inputto quickly inspect the retrieved value in the log while building the scenario.For logging or exporting read values, connect the output to
CSV Exportor other export blocks.When building subsystems or loops,
Data Read Localtogether withSubsystemorData Memorycan help coordinate state without extra wiring.
π οΈ Troubleshooting
No value appears: check the exact spelling of the
Data Key. Use the control's autocomplete list to confirm existing keys.Warning about missing key: this indicates the key was not found in local storage. Consider creating the key earlier in the scenario with
Data Write Localor handle the missing value usingReplace None.Unexpected value type: remember that the block outputs whatever was stored. Use type-checking or conversion blocks downstream if you need a specific type.
Last updated