Why does this program work in LabView when targeted to computer but not to NXT?
I would recommend you post this question to the National Instruments Discussion Forums. We have a dedicated board for supporting the LabVIEW for Mindstorms software. Since you are using LabVIEW, you can post the question there and NI support engineers are guaranteed to help you.
http://forums.ni.com/t5/LabVIEW-for-LEGO-MINDSTORMS-and/bd-p/460