08-01-2016 03:41 AM - edited 08-01-2016 03:44 AM
Morning all,
I have a piece of labview code that I want to run 10,000 times, varying my input parameters to see the effect on the output (Monte Carlo simulations). The output of 1 run does not affect the input to the next, so I can define an array of starting parameters. Will my code run more efficiently on a multicore processor if I have 4 For loops, each of 2,500 runs as 1 For loop of 10,000 runs? Is there anyway to optimise this process?
Paul
Solved! Go to Solution.
08-01-2016 03:54 AM
Please refer following links: http://www.ni.com/tutorial/9393/en/
and this : http://www.ni.com/white-paper/6423/en/
08-01-2016 06:03 AM
For those who are too lazy to hit the links:
The solution is to use a Paralllel FOR Loop. You can configure the FOR loop to run several iterations in parallel.