LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

parallel processing: for loop unfolding

Solved!
Go to solution

Hallo,

 

I've a "for" loop runnin on this system:LabVIEW2009, windows7, intel i7.

I wonder if and how I can tell to LabVIEW that it would be allowd to execute the different iterations of the loop at the same time (in parallel) on my 8 cores processor.

Now it execute the next iteration when it finish the previous one even if is there no dependecies within the iterations. 

I'd like give a "property" to the loop that mean it can be "unfolded" for parallel execution.

 

Thanks

 

Pier

 

0 Kudos
Message 1 of 5
(3,042 Views)
Solution
Accepted by topic author Pier Paolo

pop-up on For loop and select "Configure interation Prallelism"

 

Enable it.

 

Wire a number to the new "P" input to specify how many CPUs to spread it across.

 

ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 2 of 5
(3,041 Views)

Thanks!

Does it works only if I compile the VI? I do not see any difference in the usage of the processors: still 40% in average.

0 Kudos
Message 3 of 5
(3,018 Views)

Set the windows task manager to show a seprate graph for each core. That will show if the load is be shared.

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 4 of 5
(3,014 Views)

Hi Pier,

 

If you want a complete documentation about Parallel For loop, have a look at the what's new in LabVIEW 2009 Link

 

Regards,

Laurent

Message 5 of 5
(2,982 Views)