You can improve For Loop execution speed by enabling parallel For Loop iterations. Complete the following steps to enable parallel iterations:
- Right-click the For Loop and select Configure Iteration Parallelism. LabVIEW displays the For Loop Iteration Parallelism dialog box.
- Place a checkmark in the Enable loop iteration parallelism checkbox.
- Set the Number of generated parallel loop instances to the maximum number of logical processors you expect any computer running the VI to ever contain. For example, if you are developing an application for use on computers with a maximum of eight processors, set the number to eight.
- Click the OK button. The parallel instances (P) terminal appears below the count (N) terminal of the configured For Loop. You do not need to wire a value to the parallel instances terminal to enable parallel iterations. However, you can use the terminal to tweak the performance of a parallel For Loop.
After you enable parallel iterations, verify that a For Loop can run with parallel iterations.