Data Write Global

This function block is designed to write data into a global storage system, which can be accessed by other parts of your application. It is beneficial for scenarios involving loops, but it does not guarantee data flow integrity.

📥 Inputs

Data This input accepts the data you want to store globally.

📤 Outputs

This function block does not produce any outputs.

🕹️ Controls

Data Key A text input allowing you to specify a unique key under which the provided data will be stored globally. This key can later be used to retrieve the stored data.

🎨 Features

Global Data Storage Easily stores data that can be accessed across different blocks or scenarios.

Flexible Key Control Users can define a custom key for stored data, giving flexibility to manage entries.

📝 Usage Instructions

  1. Connect Input: Link the data you want to store globally to the Data input.

  2. Set Data Key: Enter a unique key in the Data Key control to label your stored data.

  3. Evaluate: Run the block to store the input data globally.

📊 Evaluation

When executed, this function block stores the given data under the specified key in the global storage, allowing it to be accessed later by other function blocks.

💡 Tips and Tricks

Data Retrieval

Use the Data Read Global block to retrieve data that has been stored using this block. Make sure to use the same data key when retrieving.

Looping Structures

This function block is especially useful when working within loop structures that require temporary data storage to track progress or state.

Avoiding Data Overwrite

Be cautious when using the same key multiple times to prevent unintended data overwriting. Create unique keys for varied data to ensure integrity.

🛠️ Troubleshooting

No Data Saved

If you find that no data has been saved, ensure that the input data is not None and that the Data Key is set properly before running the block.

Last updated