Smart Motor Read
R2026bRepresent connected V5 Smart Motor and read encoder values
Libraries:
Simulink Coder Support Package for VEX EDR V5 Robot Brain /
Sensors
Description
Add-On Required: This feature requires the Simulink Coder Support Package for VEX EDR V5 Robot Brain add-on.
The Smart Motor Read block represents a V5 Smart Motor connected to a specified port on a VEX® EDR V5 Robot Brain, and read the values from the in-built encoder of the V5 Smart Motor.
Ports
Input
Output
Parameters
Programmatic Use: Add Block
To add the block programmatically, use the add_block function with one of these library block paths as the source.
"vexv5lib/Sensors/Smart Motor Read"
Example: add_block("vexv5lib/Sensors/Smart Motor Read","myModel/myBlock",MakeNameUnique="on")
Version History
Introduced in R2018b
