04-04-2006 09:25 AM
04-04-2006 10:30 AM
04-04-2006 12:25 PM
04-05-2006 07:59 AM - edited 04-05-2006 07:59 AM
Hi Gnunesjr,
The problem with your original version of the code can be seen by running your VI in execution highlighting.
If you watch it, you will see that LV reads the strings to be used in your second loop before the first loop is done and the strings are written.
This is a clasic "race condition".
Sergey already showed you how to enusre the first loop completes before the second loop runs.
If you are still seeing that problem after using Sergey's solution, then your app must be taking a long time to read all of the files and populate the ring.
See below.
In this mod of Sergey's code I disable the ring before the list operation and I do not enable it until after the string selections are written.
Does this work for you?
Ben
Message Edited by Ben on 04-05-2006 07:59 AM
04-05-2006 09:40 AM
04-05-2006 09:42 AM