Use the For loop and the While loop to repeat blocks of code or operations on the block diagram.

Note If you open a refnum inside a For loop or While loop, close that refnum for each iteration of the loop. Otherwise, LabVIEW repeatedly allocates memory for the refnum and does not free the memory until the VI finishes running.