REVLib for SPARK MAX

Below you will find information on how to download and install REVLib for LabVIEW, Java, and C++.

LanguageCurrent REVLib VersionDocumentation

2024.2.0

Embedded (Press Ctrl-H)

2024.2.4

2024.2.4

Migrating from the SPARK MAX API and/or Color Sensor V3 API

Beginning in 2022, The SPARK MAX API and the Color Sensor V3 API have been merged into a unified library called REVLib. You need to make sure that you have uninstalled those old libraries before you install REVLib.

LabVIEW migration

  1. Ensure that the old SPARK MAX API and/or Color Sensor V3 API packages are uninstalled.

  2. Opening a project that used the old APIs should work fine. When it is loading, it may show that there are some missing VIs, but eventually LabVIEW should find the new VIs automatically.

C++/Java migration

  1. Open your robot project in VSCode.

  2. Click on the WPI icon in the corner to open the WPI Command Pallet.

  3. Select Manage Vendor Libraries.

  4. Select Manage Current Libraries.

  5. Check the REVRobotics and/or REVColorSensorV3 items (whichever ones are present)

  6. Click the OK button to uninstall them.

  7. Install REVLib for C++ and Java.

Downloads and Installation Instructions

LabVIEW Installation

  1. Download the latest REVLib LabVIEW package from the download link above.

  2. Make sure LabVIEW for FRC 2024 is installed and updated.

  3. Open the REVLib LabVIEW Package. The NI Package Manager should automatically open.

  4. Click Next:

  5. Once the installation is complete, you will be able to access the REVLib VIs at LabVIEW Functions Pallet -> WPI Robotics Library -> Third Party -> REV Robotics.

C++ and Java Installation

Online Installation

You can use the online method to install REVLib C++/Java if your development machine is connected to the internet:

  1. Open your robot project in VSCode.

  2. Click on the WPI icon in the corner to open the WPI Command Pallet.

  3. Select Manage Vendor Libraries.

  4. Select Install new library (online).

  5. Enter the following installation URL and press ENTER:

    https://software-metadata.revrobotics.com/REVLib-2024.json

Offline Installation

  1. Download and unzip the latest REVLib into the C:\Users\Public\wpilib\2024 directory on Windows and ~/wpilib/2024 directory on Unix-like systems.

  2. Follow the WPILib instructions for Adding Offline Libraries.

Java API Documentation

For a list and description of all classes:

C++ API Documentation

For a list and description of all classes:

Last updated