How to Run Infinite Loop in Digital Pattern Editor

Updated Sep 3, 2024

Environment

Hardware

  • PXIe-6570
  • PXIe-6571

Driver

  • NI-Digital Pattern Driver

For your information, the set_loop in NI-Digital Pattern can only be repeated from 1 to 65535. To have more iterations than 65535 you may need to change the method to conditional jump. In this article, will guide you on how to use conditional jump in NI-Digital Pattern to obtain an infinite loop.

In the conditional jump method, you may need to create 2 conditions by referring to the Label column while writing the pattern file. So the execution will continuously run by jump and return on these 2 conditions as shown in the picture below label1 and label2:

Screenshot 2024-09-03 142228.png
Based on the example above, In Vector 1 an infinite loop that is waiting for trig0 to become HIGH. When trig0 is LOW, it will just return to itself because the jump_if is pointing to label1. The same thing happens in Vector 6 as well. This pattern repeats Vector 1 to Vector 11 because in Vector 11, there is a jump opcode that is pointing to label1.

Was this information helpful?

Yes

No