# Create an array from external values

**URL:** <https://forums.unrealengine.com/t/create-an-array-from-external-values/1569709>\
**Category:** Blueprint\
**Tags:** unreal-engine, question\
**Created:** [December 29, 2023, 3:13am UTC](https://forums.unrealengine.com/t/create-an-array-from-external-values/1569709 "2023-12-29T03:13:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jansenl](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@jansenl](https://forums.unrealengine.com/u/jansenl)\
**Post date:** [December 29, 2023, 3:13am UTC](https://forums.unrealengine.com/t/create-an-array-from-external-values/1569709/1 "2023-12-29T03:13:28Z")

</div>

Hello all,

I aim to continuously update an array with values from an Arduino, storing the most recent 5 values. Following this, I’d like to display the average value and repeat the process. I’m currently navigating the array nodes and could use some guidance, would you mind assisting me with this? I’m getting values on screen with the following BP, however it’s pretty slow and it doesn’t look like this is correct.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/5/9/7591ff3d8293029fbff648aeae7bf9cf485c95da.png)

---

<div class="post-metadata">

**Author:** ![Husky211](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/husky211/32/1193324_2.png) [@Husky211](https://forums.unrealengine.com/u/Husky211)\
**Post date:** [December 29, 2023, 4:33am UTC](https://forums.unrealengine.com/t/create-an-array-from-external-values/1569709/2 "2023-12-29T04:33:40Z")

</div>

Blueprint is slow for this kind of operations, u should use c++ 😶‍🌫️

---

<div class="post-metadata">

**Author:** ![jansenl](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@jansenl](https://forums.unrealengine.com/u/jansenl)\
**Post date:** [December 29, 2023, 9:53am UTC](https://forums.unrealengine.com/t/create-an-array-from-external-values/1569709/3 "2023-12-29T09:53:21Z")

</div>

…one day…
