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

Parallel Iterations: Improving For Loop Execution Speed

LabVIEW 2013 Help

Edition Date: June 2013

Part Number: 371361K-01

»View Product Info

You can improve the execution speed of a For Loop by enabling parallel iterations. LabVIEW normally partitions For Loop iterations into chunks and executes them sequentially. When you enable parallel iterations on a For Loop, LabVIEW executes chunks simultaneously, improving the execution speed of computationally intensive For Loops.

Complete the following steps to execute For Loop iterations in parallel:

  1. Enable parallel For Loop iterations.
  2. Verify that the For Loop can run with parallel iterations.
  3. If necessary, programmatically configure parallel For Loop iterations.

Review the performance considerations to ensure that a For Loop will benefit from parallelization.

Examples

Refer to the Parallel For Loop Reduction VI in the labview\examples\Structures\Parallel For Loop directory for an example of using a For Loop with parallel iterations.


 

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