Configuring the VEX V5 Workcell in VEXcode V5

User programs need to be able to interact with the inputs and outputs of a robotic workcell. This is done by configuring the devices within an application. VEXcode V5 uses the Robot Configuration to configure the VEX V5 Workcell devices within a project.

When starting to code the V5 Workcell with VEXcode V5, blocks from the ‘Arm’ category will not appear in the Toolbox until the ‘ARM’ device has been added to the Robot Configuration.

Blocks_from_arm_category.png

This article will include

  • Adding the ‘ARM’ device
  • Renaming the ‘ARM’ device
  • Deleting the ‘ARM’ device

Adding the ‘ARM’ device

To add the ‘ARM’ device to the Robot Configuration, see the following steps:

VEXcode_V5.jpg

Launch VEXcode V5.

device_button.jpg

Select the Robot Configuration button to open the Devices window.

add_a_device.jpg

Select ‘Add a device.’

arm.jpg

Select ‘ARM.’

Arm_config.png

The ‘Arm Configuration’ will appear. This is a list of the joints on the arm and their associated ports.

Done.jpg

Select ‘Done.’

collapse.jpg

Collapse the Devices window by selecting the arrow.

hl.jpg

You will now see blocks from the ‘Arm’ category in the Toolbox.


Renaming the ‘ARM’ device

RoboticsArm1.jpg

You can rename the device by changing the name in the text box at the top of the ‘Arm Configuration’ screen. The new name must adhere to the naming protocol. If you select an invalid name, the text box will highlight red to indicate. Once the device is renamed, select ‘Done’ to submit the device changes to the configuration.

Change_block_name.png

If you change the name of the device that is already being used in your project, you will need to update the device's name in the block to the new name using the drop down.


Deleting the ‘ARM’ device

Arm_device.png

Once a device has been added to the Robot Configuration, it can be deleted. First, select the device you wish to delete in the Devices window.

Delete.png

Then, select the ‘Delete’ option at the bottom of the ‘Arm Configuration’ screen.

Note: If you delete a device that is already being used in your project, your project will generate an error if you try to download it until you also delete the blocks that were using the deleted device.

For more information on configuring devices in VEXcode V5, view these articles from the VEX Knowledge Base.