1. the code should be inside the loop where the long wait is happending.
2. i guess you can run the code in the separate loop, but then you need make sure it is synched and also make sure the loop will exit when you exit your application.
in the demo vi, the loop goes on forever.
3. in labview 6 and above, if the wire is not wired, a default value is supplied, in this case, 0, which is what the shifter righer need in that case.
-Joe