Starting, Downloading, and Running a VEXcode IQ C++ Project

Starting and downloading C++ projects in VEXcode IQ is easy.

The following article will cover:

  • How to Start C++ Project
  • How to Build a Basic C++ Project
  • How to Download and Run a C++ Project

How to Start a C++ Project

Launch VEXcode IQ.

VEXcode IQ Icon

The platform defaults to the Blocks interface.

New Project

Select ‘File,’ then ‘New Text Project’ to open the text interface.

New Text Project

The C++ interface will open.

Cpp project

How to Build a C++ Project

This section will show you how to create a basic C++ project using commands from the Toolbox. The project outlined here will drive the IQ Clawbot forward for 200 millimeters (mm).

Select ‘File’ then ‘Open Examples” to open a template project.

Select File

Select the Clawbot (Drivetrain 2-motor) template. Templates are blank projects with preset device configurations.

Clawbot Template

Notice that a set of project comments open in the workspace. You will add commands after the comments.


Select enter at the end of the last line of code (line 21). This should create the next numbered line (line 22). This is where you will start adding code to the project.

Start Adding Code

Now you can add commands from the Toolbox. Select the Drive for command.

Add Commands

Drag the Drive for command into the workspace and place it on the last line of the project (line 22).

Drag Command

How to Download and Run a C++ Project

First, name and save your C++ project. View one of the following articles for detailed information on how to save a VEXcode IQ C++ project:

Name Project

Then, choose which of the Brain’s slots you will download the project to. To do this, select the ‘Slot’ button on the Toolbar.

Select Slot

Next, connect the Brain to your device (Directly via Micro-USB or via VEX Controller) and check that the Brain icon is green.

Brain Color

Select the ‘Download’ button to download the project to the Brain. The project will download to the chosen slot.


Finally, select ‘Run’ to start the project while the robot is still connected to your computer.


Or, disconnect the Brain from your device and run the project on the IQ Brain.

run project on brain