Main Content

Proximity Sensor

Ideal behavioral model of simple distance sensor

  • Library:
  • Simscape / Electrical / Sensors & Transducers

  • Proximity Sensor block

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.

A typical sensing distance curve is shown in the following figure.

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™.

Introduced in R2008a