Company Events Academic Community Support Solutions Products & Services Contact NI MyNI

Enabling Parallel For Loop Iterations

LabVIEW 2013 Help

Edition Date: June 2013

Part Number: 371361K-01

»View Product Info

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.


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit