If this code works with putty or the serial monitor then your error is in the LabView bit which you have not posted.