Configuring 3-Wire Devices in VEXcode EXP

When starting to program with VEXcode EXP, Sensor and 3-Wire device blocks will not appear in the Toolbox until they have been configured.


Adding a 3-Wire Device

Device_Select_Icon.png

To configure a device, select the Devices button to open the Devices window. 

Select_Device.png

Select “Add a device.”

Select_3_Wire.png

Select the 3-wire Devices.

Select_Lightswitch.png

Select the 3-wire Device that you are using. This example shows a Limit Switch.

Note: 3-wire Devices include the Limit Switch, Bumper Switch, Encoder, Range Finder, Line Tracker, Light, Potentiometer, LED, Gyro,  Motor-393, Servo, Accelerometer-2G, Accelerometer-6G, Digital In, and Digital Out. All devices follow the same configuration process with an additional step for Motor-393. 

Select_Port_3_Wire.png

Select which port the device is attached to on the VEX EXP 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 3-Wire Device’s Port

Edit_3_Wire.png

You can change the port number for the 3-Wire Device by selecting the 3-Wire Device in the Devices window.

Change_Port_3_Wire.png

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


Renaming a 3-Wire Device

Rename_3_Wire.png

You can also rename the 3-Wire 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.

If you change the name of 3-Wire 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 3-Wire Device

Delete_3_Wire.png

3-Wire Devices can also be deleted by selecting the “Delete” option at the bottom of the Port Selection screen.

Screen_Shot_2022-02-08_at_5.17.09_PM.png

Note: If you delete a 3-Wire 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: