MATLAB: Can you get data from a Vex V5 Vision Sensor

simulink codervex v5

Is there a way to get coordinates from a Vex V5 Vision Sensor with the V5 Support Package?

Best Answer

If you are using the Simulink support package for the VEX V5 Robot Brain in the R2019a version of MATLAB, you can use the files attached to get information from the vision sensor.
  • Copy the Vision Sensor Simulink block from either of the models provided
  • Make sure to keep the accompanying files (except for the attached Simulink models) in the same folder as your working model.
  • There is an additional example attached that shows how to follow and object using the vision sensor
  • You should still use the VEX Coding Studio utility to setup the sensor signatures
Since this is a protoype block, please contact passcompetitions@mathworks.com if you run into errors or have additional questions.