Notice: This website has undergone a refactor to allow for more pages in the future.
Specifically, the limit-switch, gyro, and potentiometer pages were moved under the Sensors header and then dashboard or roboRIO based on where the edited code would run.
The old locations were set with permanent redirects, but please update bookmarks/favorites.

FRC LabVIEW Tutorials - Documentation

Table of Contents

Purpose

The purpose of documentation is twofold:

  1. Others can look at your code and know what you are doing (ranging from mentors, to the next primary programmer, to someone your trying to help)
  2. You can remember what that piece does (or which loop was the ___ in?)

Documentation is very important, and with a few built in tools, your LabVIEW code can be much easier to read.

Simplest - comments

These allow you to put text anywhere in the code to explain what is going on. They can be used to label which motor is which, etc., but it is better to use labels for that.

Adding a comment

Hidden, but useful - labels

Labels are on everything in LabVIEW and (with a few exceptions) you can change them to say what you want. Use them to name your controls and indicators to what they actually represent.

Using labels to document controls and indicators

You can also use them to help keep track of which wire is which.

Using labels to document wires

Harder to find, but extremely useful - Subdiagram labels

Some items in LabVIEW have subdiagram labels (case structures, loops, etc.) - allowing you to put a nice looking comment inside them.

Adding a sublabel to a while loop

If uncertain how or when to use one of these, or would like to suggest another option, please fill out this form.

Google Form