The problem is your motor code only runs once when the robot starts and never again, because of where you placed it in Periodic Tasks.
Two solutions:
- Move the motor code to Teleop.vi, because Teleop gets called over and over again by Robot Main, so your motor code will get called every time new joystick commands are received.
- Move the motor code into the 10ms loop in Periodic Tasks. Because that loop gets repeated over and over again, calling your motor code over and over again.