Not enough info, and vi is unreadable !
I tell you what to do :
1/ IMPROVE your coding style. There are a number of wiring mistakes in your vi (see the attached jpg...). Use clean left to right wiring with no hidden wires. Never route a wire behind anything! Keep wires short, avoid unnecessary bends, etc... Read the
LabVIEW development Guidelines manual and search for good programming style.
This way you have a chance to find that somewhere, you didn't connect the right wire to the right place.
2/ Use debugging tools, such as the probe, to check the data values passed to critical nodes. For instance, check the output of
the Read time and case vi (BTW, there is no need to wire to the For loop count terminal, autoindexing is enough...)
3/ Post the revisited vi here, removing all the unnecessary parts, and somebody will be able to help you
CC
Chilly Charly (aka CC)