Using Python Example Projects and Templates in VEXcode V5

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


Using Python Example Projects

VEXcode V5 Toolbar with the File menu open and the Open Examples option highlighted. Open Examples is the fifth option in the menu, below New Blocks Project, New Text Project, Open, and Open Recent.

To open an Example Project, ensure that you have a Python Text Project open. Then select the File menu and choose Open Examples.

VEXcode Example Projects menu with a variety of projects across different categories to choose from.

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

VEXcode Example Projects menu with the Filter bar highlighted. The Filter bar has many categories of example projects.

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

VEXcode Example Projects menu with the Changing Velocities example project highlighted.

To open any example, select one from the menu.

VEXcode Example Projects menu with the Changing Velocities example project highlighted.

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.

VEXcode V5 Toolbar with the Download icon highlighted in between the Brain and Run icons.

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


Using Templates

VEXcode Example Projects menu with the Templates category in the Filter bar highlighted.

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

VEXcode V5 with a template example project opened, including configured devices and code comments with a description of the project. The Devices menu is opened to the side to demonstrate that the devices are pre configured to certain ports.

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

VEXcode V5 with the Clawbot Drivetrain 2 motor template example project opened in the Workspace. The user has added some code to the project to control the Drivetrain.

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


Descriptions in Python Example Projects and Templates

New Python project opened in VEXcode V5. The Description comment is highlighted, by default it reads VEXcode V5 Python Project.

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

VEXcode V5 with the Changing Velocities example project opened and with its Description and Configuration comment fields highlighted.

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

VEXcode V5 with a template example project opened and with its Configuration comment field highlighted. Each device will be listed on a new line.

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: