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:

  1. Launch VEXcode V5.
    VEXcode_V5.jpg
  2. Select the Robot Configuration button to open the Devices window.
    device_button.jpg
  3. Select ‘Add a device.’
    add_a_device.jpg
  4. Select ‘ARM.’
    arm.jpg
  5. The ‘Arm Configuration’ will appear. This is a list of the joints on the arm and their associated ports.
    Arm_config.png
  6. Select ‘Done.’
    Done.jpg
  7. Collapse the Devices window by selecting the arrow.
    collapse.jpg
  8. You will now see blocks from the ‘Arm’ category in the Toolbox.
    hl.jpg

Renaming the ‘ARM’ device

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.

RoboticsArm1.jpg

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.

Change_block_name.png


Deleting the ‘ARM’ device

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.

Arm_device.png

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

Delete.png

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.