Make My for Loop Run Faster

Updated Dec 12, 2017

Reported In

Software

  • LabVIEW Base
  • LabVIEW Full
  • LabVIEW Professional

Issue Details

  • I need my for loop to run faster.
  • My for loop is running too slowly.
  • I want all of my processor cores to work on processing a for loop.

Solution

LabVIEW has a feature to allow a single for loop to be run on multiple processor cores, speeding execution.  To enable this, do the following:
  1. Right click the for loop, and select "Configure Iteration Parallelism." 
  2. Select enable in the resulting menu.

Additional Information

In LabVIEW, separate functions are automatically run in parallel if possible.  However, loops are usually executed in order: the first cycle of the loop will execute, followed by the second.  This can be changed by enabling the feature in the solution, allowing for each computer core to run different loop cycles in parallel.  This reduces the time it takes for the entire for loop to finish.

WAS THIS ARTICLE HELPFUL?

Not Helpful