FIRST Robotics Competition Documents

Showing results for 
Search instead for 
Did you mean: 

[FRC 2014] Basic Motor Control Tutorial

This tutorial demonstrates how to get the FRC roboRIO up and running a motor.   It walks through the hardware setup and the programming necessary to control a  motor with a joystick, as well as covering basics such as setting up the FRC Control System and setting up an FRC Robot Project.


Getting Started
Configuring the  Network Connection
Connecting the FRC Hardware
Creating the LabVIEW  Project
Programming Motor Control in LabVIEW
Adding a Joystick

***Note: The attached tutorial is slightly out of date. Please use with caution. A new tutorial should be up soon!

Member khannasusa

We are a new team trying to learn labview in the offseason. We used these examples as-is, but we find that our Talon-sr motor does not respond. FRC Driver Station also says 'No Robot Code" althought Deploy does succeed. What is the basic thing we are missing?

Active Participant natasftw
Active Participant

If you're seeing no robot code after a successful deployment, I'd be guessing the team number you used to image the roboRIO doesn't match the team number you have selected in the driver station.  Check the team number there and see if that resolves anything.

Member AvisAutomata

We are a rookie team and starting totally fresh. We installed the 2016 NI DVD. It appears the tutorial does not match what the latest software we have installed. In particular the flow of creating a new LabView Project is different.  Is there a newer tutorial?

NI Employee

Hello AvisAutomata,

Welcome to FIRST!


It appears as though this tutorial is out of date.


I recommend opening LabVIEW>Help>Find Examples...>NI Example Finder>Browse>FRC Robotics>roboRIO>Robot and Motor>Motor Control.lvproj.  This will open up the Project Explorer Window.  In the Project, there will be a roboRIO with Motor under it. Please open up this file and look at the Front Panel.





Battery>Emergency Shutoff>PDP


PDP>PWM Motor Controller


roboRIO PWM>PWM Motor Controller


Motor Controller Output>Motor Power Lines


USB Computer>USB roboRIO



Run Motor


This will spin the motor depending on the slider value.

I recommend opening a new forum post on for any questions you will have in the future.


Tom C.