Hello;
Labview 5.1 is not supported on Windows XP OS. The only version of Labview supported on that OS is version 6.1.
The best way to go about that is to upgrade your version of Labview and create an executable of that new version.
Regards
Filipe A.
Applications Engineer
National Instruments