Touch Sensor
R2026bDetect status of EV3 brick touch sensor
Libraries:
Simulink Support Package for LEGO MINDSTORMS EV3 Hardware
Description
Add-On Required: This feature requires the Simulink Support Package for LEGO MINDSTORMS EV3 Hardware add-on.
Use the Touch Sensor block to detect whether the touch sensor connected to the LEGO® MINDSTORMS® EV3 brick is pressed or not.
During simulations without hardware, this block emits zeros. See Block Produces Zeros or Does Nothing in Simulation.
Examples
Ports
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.
"legoev3lib/Touch Sensor"
Example: add_block("legoev3lib/Touch Sensor","myModel/myBlock",MakeNameUnique="on")
Version History
Introduced in R2012a
