LabVIEW Code Questions

cancel
Showing results for 
Search instead for 
Did you mean: 

2022 Everybot Java to LabView CAN Conversion

We are a rookie team participating in the 2022 First Robotics Competition. We do not know how to translate the Java code to LabView for the motors using CAN wires to connect to the RoboRIO. We are using 2 SparkMax motor controls. One is brushed, and the other is brushless. How do we program them them LabView, and will we have to download any CAN libraries?

0 Kudos
Message 1 of 2
(1,466 Views)

Hello Zyon,

 

Thanks for using the NI forums. I am not familiar with the code used for Everybot, however, I would like to point you to the resources that will likely make you successful:

 

  1. The libraries used for SparkMax motor controls are these: Downloads and Installation Instructions - REV Robotics 
    You want to install them after installing LabVIEW and the FRC Game Tools.
  2. You mention using a brushed and a brushless motor. You configure them in the SPARK MAX devices through the REV Hardware Configurator application: Updating SPARK MAX Software - REV Robotics 
  3. You can look here for examples on how to get started with these motor controllers using LabVIEW: REVrobotics / SPARK-MAX-Examples - GitHub 

 

Cheers,

0 Kudos
Message 2 of 2
(1,428 Views)