WestlakeLEARN
FRC / LabVIEW

First Robotics Competition

FRC / LabVIEW

01 · Module 1: LabVIEW Project Basics
  • Robot Project Structure
02 · Module 2: TeleOp Control1/1
  • TeleOp VI Basics
03 · Module 1: Autonomous Flow
  • Autonomous State Flow
04 · Module 2: Safety and Recovery
  • Motor Safety and Recovery

02 / Module 2: TeleOp Control

TeleOp VI Basics

Read joystick values and drive motors in LabVIEW.

55 minCoreModule 2: TeleOp Control

You will

  1. 01Read joystick axes from the Driver Station.
  2. 02Invert joystick values when needed.
  3. 03Send safe motor values to the drivetrain.

TeleOp repeats while drivers control the robot

TeleOp.vi is the place for driver inputs. The goal is a clear data path from joystick read, through any math, into motor output.

Keep the diagram readable

LabVIEW code gets hard to debug when wires cross everywhere. Keep related logic close together and label important constants.

LabVIEW habit

Follow the wire, not the screen position. Dataflow decides when a node can run.

Easy mistake

Do not leave drivetrain outputs unwired in one case of a Select or Case Structure.

TeleOp VI walkthrough

LabVIEW diagram viewer

Block diagram walkthrough

Hover a VI. Press Ctrl-H for help.

Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.
Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.
Block diagram walkthrough

Practice

Wire joystick Y to left and right drivetrain outputs, then add a multiplier for slow mode.

Checks

  • Pushing the joystick forward drives forward.
  • Slow mode visibly reduces speed.
  • The diagram can be followed from left to right.

Check your understanding

Module check

What should you check first when robot code does not behave as expected?

0 of 1 answered

References

WPILib LabVIEW DocsOfficial FRC LabVIEW programming documentation.FRC LabVIEW ResourcesTutorials, examples, and LabVIEW learning resources.

Finished reading?

Mark this lesson complete.

You'll move on to “Autonomous State Flow” next.

Robot Project StructureAutonomous State Flow