Michael78,
Of course you are right. The loop in the Digital Data On/Off false case never gets incremented and so never finishes. This is kind of screwy code and I'm now thinking a complete restart is in order.
Now I get to wait 3 more hours of compiling to find out if it works.
Thanks