Hi exo,
either use an array where you append the new data or (when using strings) add the string to the global (read global, add new string by using "concatenate string", write to global).
Instead of a global (which is used as a "variable" known from text based languages) you can use a shift register in your main loop...
Best regards,
GerdW

using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019