Enabling Parallel For Loop Iterations

LabVIEW 2018 Help

Edition Date: March 2018
Part Number: 371361R-01
View Product Info

DOWNLOAD (Windows Only)

LabVIEW 2016 Help
LabVIEW 2017 Help
LabVIEW 2018 Help
LabVIEW 2019 Help
LabVIEW 2020 Help

You can improve For Loop execution speed by enabling parallel For Loop iterations. Complete the following steps to enable parallel iterations:

  1. Right-click the For Loop and select Configure Iteration Parallelism. LabVIEW displays the For Loop Iteration Parallelism dialog box.
  2. Place a checkmark in the Enable loop iteration parallelism checkbox.
  3. 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.
  4. 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.


Not Helpful