Which version of LabVIEW are you using? You can use a Timed Loop, or you can use some of the Get Time functions to track the start time and elapsed time. Use a comparison of the elapsed time with the target time to stop the while loop.
I don't have 7.1, but if you build this yourself, it will work. I simply modified the TimerExample from the other post to have an end time. Set the End Time (hh:mm:ss) to 05:00:00 (or whatever end time you want.)
Message Edited by LabViewGuruWannabe on 02-02-200801:20 PM