Hi basimss,
since I am new to this.
When you aren't able to implement a simple repeat-until (or while-wend) loop you should take some basic courses on programming. LabVIEW-basics are presented in the "Training" section in the header of the LabVIEW board!
As you didn't supply a VI I made a simple one WITHOUT using FPGA-specific stuff in just a minute:
Best regards,
GerdW
using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019