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
The purpose of documentation is twofold:
- 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)
- 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.
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.
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.
You can also use them to help keep track of which wire is which.
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.
If uncertain how or when to use one of these, or would like to suggest another option, please fill out this form.