NXT Touch Sensor
R2026bDetect status of EV3 brick NXT touch sensor
Libraries:
Simulink Support Package for LEGO MINDSTORMS EV3 Hardware /
NXT Sensors
Description
Add-On Required: This feature requires the Simulink Support Package for LEGO MINDSTORMS EV3 Hardware add-on.
Use the NXT Touch Sensor block to detect whether the NXT 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.
"legoev3nxtlib/NXT Touch Sensor"
Example: add_block("legoev3nxtlib/NXT Touch Sensor","myModel/myBlock",MakeNameUnique="on")
Version History
Introduced in R2012a

