# REVLib

{% hint style="success" %}
January 4, 2025 Update -&#x20;

Documentation for REVLib 2025 can now be found at: <https://docs.revrobotics.com/revlib>

Please bookmark our new page as we transition over and add more information there!
{% endhint %}

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

<table data-header-hidden><thead><tr><th></th><th width="222.33333333333331" align="center"></th><th align="center"></th></tr></thead><tbody><tr><td><strong>Language</strong></td><td align="center">Current REVLib Version</td><td align="center">Documentation</td></tr><tr><td><a href="#labview-installation">LabVIEW</a></td><td align="center">2024.2.0</td><td align="center">Embedded (Press Ctrl-H)</td></tr><tr><td><a href="#c++-and-java-installation">Java</a></td><td align="center">2024.2.4</td><td align="center"><a href="#java-api-documentation">Java Docs</a></td></tr><tr><td><a href="#c++-and-java-installation">C++</a></td><td align="center">2024.2.4</td><td align="center"><a href="#c++-api-documentation">C++ Docs</a></td></tr></tbody></table>

## Download and Installation Instructions

### LabVIEW Installation

| [REVLib LabVIEW Download - Version 2024.2.0](https://github.com/REVrobotics/REV-Software-Binaries/releases/download/revlib-2024.2.0/REVLib-labVIEW-2024.2.0-0_windows_all.nipkg) |
| :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: |

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**:

   <figure><img src="/files/6C6izUIXkBBCi9IelIcg" alt=""><figcaption></figcaption></figure>
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**.

   <figure><img src="/files/m8FKVjlNuw1rq1hBElMJ" alt=""><figcaption></figcaption></figure>

### C++ and Java Installation

| [REVLib C++/Java Download- Version 2024.2.4](https://github.com/REVrobotics/REV-Software-Binaries/releases/download/revlib-2024.2.4/REVLib-offline-v2024.2.4.zip) |
| :---------------------------------------------------------------------------------------------------------------------------------------------------------------: |

#### 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`](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](https://docs.wpilib.org/en/latest/docs/software/vscode-overview/3rd-party-libraries.html#adding-offline-libraries).

## Java API Documentation

For a list and description of all classes:

* [Online REVLib Java Documentation](https://codedocs.revrobotics.com/java/com/revrobotics/package-summary.html)

## C++ API Documentation

For a list and description of all classes:

* [Online REVLib C++ Documentation](https://codedocs.revrobotics.com/cpp/namespacerev.html)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.revrobotics.com/ion-control/sw/revlib.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
