Solution
For your information, the
set_loop has its limitation which only can loop from 1 to 65535 as stated in the
NI Digital Pattern User Manual - Flow Control Opcode. If you plan to have infinite loop iterations then you can use the
conditional jump method. Furthermore, if you need to specify exactly how many loops you need to execute with a specific number greater than 65535, then you have no option but to use the set_loop opcode and split the loops so that the loop iteration does not exceed 65535.