Configuring 3-Wire Digital In and Digital Out Devices in VEXcode V5

When starting to program with VEXcode V5, blocks for Digital In and Digital Out will not appear in the Toolbox until they have been configured.


Adding a Digital In or Digital Out 3-Wire Device

To configure a Digital In or Digital Out device:

VEXcode V5 Toolbar with the Devices icon highlighted in between the Code Viewer and Print Console icons.

Select the Devices button to open the Devices window.

VEXcode V5 Devices menu with the Add a device button shown.

Select ‘Add a device.’

VEXcode V5 Devices menu after the Add a device button has been selected. The 3 Wire option is highlighted.

Select ‘3-WIRE.’

VEXcode V5 Devices menu after the 3 Wire device option has been selected. There is a menu of 3-Wire Devices shown, and the Digital In and Digital Out options are highlighted.

Select ‘DIGITALIN’ or ‘DIGITALOUT.’

VEXcode V5 Devices menu after setting the new device's port to A. Below, the Done button is highlighted.

Select which port the device is attached to on the VEX V5 Brain. Ports that are already configured for other devices will be unavailable. Once the port has been selected, select ‘Done’ to submit the device to the configuration or ‘Cancel’ to return back to the Devices menu.

Note: Selecting ‘Cancel’ will undo any changes you have made to the device and will not be a part of the configuration.


Changing a Digital In or Digital Out 3-Wire Device’s Port Number

VEXcode V5 Devices menu with the previously added Digital In and Digital Out devices shown.

You can change the port number for the device by selecting it in the Devices window.

VEXcode V5 Devices menu after changing the device's port to C. The C port option is now colored green. Below, the Done button is highlighted.

Select a different port on the Port Selection screen and the port number will turn green. Then select ‘Done’ to submit the change.

VEXcode V5 Digital in boolean block is shown with the device dropdown menu open. The Digital In's new device name is shown in the dropdown menu, and it reads DigitalInC.

If you change the port of a 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.


Renaming a Digital In or Digital Out 3-Wire Device

VEXcode V5 Devices window with the Digital In options shown. Above, the device's name is highlighted to indicate that it can be renamed.

You can rename the device by changing the name in the text box at the top of the Port Selection screen. If you select an invalid name, the text box will highlight red to indicate. Then select ‘Done’ to submit the device changes to the configuration.

Note: for more information about naming rules for variables and devices, view this article from the VEX Library.

VEXcode V5 Digital in boolean block is shown with the device dropdown menu open. The Digital In's new device name is shown in the dropdown menu, and it reads SignalIn.

If you change the name of a 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 a Digital In or Digital Out 3-Wire Device

VEXcode V5 Devices window with the Digital In options shown. Below, the Delete button is highlighted.

The device can be deleted by selecting the ‘Delete’ option at the bottom of the Port Selection 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, help, and tips, check out the many resources at VEX Professional Development Plus

Last Updated: