Window motor in autonomous

We are using a window motor for our ball collector and it works great. However, I can’t seem to figure out how to turn it on and off during autonomous. I would also like to be able to reverse the direction. I’m a new LabView programmer so please keep it as simple as possible. Any help would be appreciated.

Are using globals to set your motor speeds or just setting it with motor Set in autonomous? With the motor Set vi, you can input constants for the motor speed ranging from -1 to 1, -1 being backwards, 0 being stopped and 1 being forwards. If you put this motorSet into a loop in periodic tasks running about 50ms, you can write to a global value in autonomous, then read the value and set the motor in periodic tasks. This method helps resolve many errors and many headaches. XD