Labview code for robot control