Contenido principal

Modeling

R2026b
Prepare model for hardware connection, add blocks to support VEX® EDR V5 Robot Brain

Prepare Simulink® models for hardware connection, add blocks to support hardware protocols, reference examples featuring various applications.

Blocks

expand all

DC Motor blockDC MotorRepresent connected DC motor and set motor speed
Digital Output blockDigital OutputSet logical value to the 3-wire port on VEX EDR V5 Robot Brain
Servo Motor blockServo MotorRepresent connected servo motor and set angular position value
Smart Motor Write blockSmart Motor WriteRepresent connected V5 Smart Motor and set its velocity and position
Differential (Tank) Drive blockDifferential DriveSet up differential drive and control robot pose
Gamepad Button blockGamepad ButtonRepresent one of the 12 buttons on VEX V5 Controller gamepad and read the logical value of the button
Gamepad Joystick blockGamepad JoystickRepresent one of the control axis on an x-y analog joystick on VEX V5 Controller gamepad and read the values
Competition Switch blockCompetition SwitchRead the switch positions of VEXnet Competition Switch or field controller
Analog Input blockAnalog InputRead analog values from the 3-wire port on VEX EDR V5 Robot Brain
Digital Input blockDigital InputRead logical values from the 3-wire port on VEX EDR V5 Robot Brain
Smart Motor Read blockSmart Motor ReadRepresent connected V5 Smart Motor and read encoder values
Vision Sensor blockVision SensorRepresent connected V5 Vision Sensor and read coordinates of color blobs (objects)
Optical Shaft Encoder blockOptical Shaft EncoderRepresent connected Optical Shaft Encoder and read relative position of motor shaft in ticks
Ultrasonic Sensor blockUltrasonic SensorRepresent connected Ultrasonic sensor and measure distance to object
Gyroscope blockGyroscopeRepresent connected gyroscope and measure yaw angle
Inertial Sensor blockInertial SensorMeasure orientation, acceleration, and angular rate
Distance Sensor blockDistance SensorRead distance, velocity, and relative size of obstacle
Optical Sensor blockOptical SensorRead proximity, color, and brightness
Rotation Sensor blockRotation SensorRead shaft position and velocity
Rotation Sensor blockRotation SensorRead shaft position and velocity
Differential (Tank) Drive blockGPS SensorRead position and orientation (Since R2022b)
Arcade Module blockArcade ModuleGet the right and left wheel speed values of a robot in an Arcade configuration
Field Simulator blockField SimulatorView the simulation speed values of a two-wheel robot
Gamepad Simulator blockGamepad SimulatorGet the simulation value of a VEX gamepad using Logitech F310 or XBOX Controller
Gear Transmission blockGear TransmissionSet a scalar value (1 to 4) based on input values
Latch blockLatchLatch the logical value based on the change in the input signal

Topics

Featured Examples