Gray Matter LogoGray Matter Workshop

Running Program

KEY CONCEPT

Running Program - Hardware Simulation Testing

WPILib provides a powerful tool called Hardware Simulation. This allows you to run your code in the simulator, while also running motors that are connected to the CANivore.

Using a CANivore also allows you to build robot applications that run directly on Windows or Linux machines.

↳ TAKEAWAY

Hardware simulation eliminates the need to use a roboRIO for testing, while still allowing you to test your code on hardware.

Important: CANivore USB Setting

Before running Hardware Simulation code, you must turn OFFthe "CANivore USB" setting in TunerX. This prevents conflicts between the simulation environment and physical hardware communication.

Steps

Open TunerX → Go to CANivore settings → Disable "CANivore USB"

Hardware Simulation Setup

CHECKPOINT · 4 ITEMS