Main Content

Proximity Sensor

Ideal behavioral model of simple distance sensor

  • Proximity Sensor block

Libraries:
Simscape / Electrical / Sensors & Transducers

Description

The Proximity Sensor block represents a simple proximity sensor. The sensing distance Z is defined as the distance normal to the sensor surface at which the sensor detects an object for a given radial offset R, as shown in the following figure.

This figure shows a typical sensing distance curve:

The sensor switches to detect the object if the R and Z inputs are below the sensing curve, in the detection zone.

The output is modeled by an electrical switch which can either be Normally Open (N.O.) or Normally Closed (N.C.) when no object is detected.

Ports

Input

expand all

Physical signal port associated with the radial distance to the sensor.

Physical signal port associated with the perpendicular distance to the sensor.

Conserving

expand all

Electrical conserving port associated with the proximity sensor positive voltage.

Electrical conserving port associated with the proximity sensor negative voltage.

Parameters

expand all

Vector of distances from the sensor to the object resolved into a plane tangential to the sensor head.

Vector of distances from the sensor to the object resolved with respect to a normal vector at the sensor head.

Indicates whether the output is Normally Open (N.O.), meaning the output becomes closed only when the object is detected, or Normally Closed (N.C.), meaning the output becomes open only when the object is detected.

Resistance between the + and - ports when the output contacts are closed.

Conductance between the + and - ports when the output contacts are open.

Extended Capabilities

C/C++ Code Generation
Generate C and C++ code using Simulink® Coder™.

Version History

Introduced in R2008a