04-09-2010 09:32 AM
04-09-2010 09:36 AM
04-09-2010 09:52 AM
Hey Dennis,
Could you modify my attached programe. When i have put Write funkction in the While loop programe works very slowly with interuption inside working.
04-09-2010 10:00 AM
That last modification is just plain silly.
If you want to use a separate loop with a queue, look at that design pattern. Go to File>New... and review the Producer?Consumer
04-09-2010 10:30 AM
And now
Whot is wrong? all the time is the same result.
Best regards
Marek
04-09-2010 10:41 AM
04-09-2010 10:42 AM - edited 04-09-2010 10:43 AM
LabVIEW Introduction Course - Three Hours
LabVIEW Introduction Course - Six Hours
Your lower two while loops don't run until the top while loop finishes because of the data dependency of the wires coming out of the tunnels.
When the top loop finishes, you only get the data from the final iteration of the loop.
Then you repetively enqueue that same data in the middle loop until you hit Stop2. Simultaneously your bottom loop dequeues the data and writes it to the file.
What you did in the middle loop should be a part of your top loop. And you should not have any wires coming out of one loop and going to the other.