Using Python Example Projects and Templates in VEXcode EXP

Example projects and Templates are a great resource if you are just getting started with VEXcode EXP and want to explore different robot behaviors. Example projects and Templates also allow you to observe how different commands in VEXcode EXP are used.


Using Python Example Projects

Screen_Shot_2022-02-09_at_2.15.29_PM.png

To open an Example Project from within a Python project, select the File menu and choose Open Examples.

See this article for more information on how to start a Python project in VEXcode EXP.

Screen_Shot_2022-02-09_at_2.16.50_PM.png

Icons for many different Example Projects will be shown. Each icon represents a different project and is colored according to the command categories.

Screen_Shot_2022-02-09_at_2.17.03_PM.png

The Filter bar can be used to quickly find a specific type of example.

Screen_Shot_2022-02-09_at_2.17.49_PM.png

To open any example, select one from the menu.

Screen_Shot_2022-02-09_at_2.19.35_PM.png

Commands for the example base project will populate in the workspace. These commands and their parameters can be changed or removed. Additional commands can be added to modify the example project.

Screen_Shot_2022-02-09_at_2.20.06_PM.png

Save and download the example to try it on your robot.


Using Templates

Screen_Shot_2022-02-09_at_2.21.32_PM.png

There is also a special type of example called a Template.

Screen_Shot_2022-02-09_at_2.24.09_PM.png

Templates have a special icon and are used to create a blank project with a preset device configuration.

Screen_Shot_2022-02-09_at_2.25.54_PM.png

If using a standard robot build, like the Basebot, a Template can be used to quickly get started with a new project.


Descriptions in Python Example Projects and Templates

Screen_Shot_2022-02-09_at_2.47.50_PM.png

Each Python Example Project and Template contains a description in the workspace. Descriptions can be used to document certain information in a project.

Screen_Shot_2022-02-09_at_2.49.20_PM.png

In a Python Example Project, the description provides a short summary for what the project does, and also lists the device configuration.

Screen_Shot_2022-02-09_at_2.56.14_PM.png

In a Template, the description notes which devices are listed in the configuration.

 

For more information, help, and tips, check out the many resources at VEX Professional Development Plus

Last Updated: