Greetings,
As you state, there is a problem with my case numbering and this is causing the hang. Oops. There may be other errors as well.
The while loop, however, is not an issue. At first glance it looks like it will cause a stall but that is not the case. A false constant is wired into the "continue if true" conditional terminal. This has the same effect as using a for loop with n=1. For further information:
http://zone.ni.com/devzone/cda/epd/p/id/356
Best Regards