10-06-2009 01:37 PM
Good day, I am using two while loops to perform data acquisition from two different pieces of hardware inside a "main" while loop - a total of three while loops. I want each of the data acq loops to run as fast as possible. With this model will each data acq loop run in a separate thread or will they be running in the same thread because they are both inside the "main" while loop.
I'm not getting the performance I would like and I'm looking at ways to optimize the execution.
Thanks
John
10-06-2009 02:46 PM
What hardware are you using to capture data? Are they sampling at different rates?
Can you not use one while loop to capture data from both hardware devices? Or have only 2 sepeate loops?
10-06-2009 04:17 PM
Yes each while loop is connected to a different camera in vision, they sample at different frame rates. The problem I have is when I record to disk the streams, the performance of labview slows to the point frames are droped. I want to be sure each while loop is running in a seperate thread to optimize execution. Since both loops are inside another while loop I dont now how labview handles the threading in this case.
John
10-06-2009 04:27 PM - edited 10-06-2009 04:29 PM