PositionSensorPositionSensor Icon

PositionSensor

Measures the absolute linear position of a mechanical translational flange.

This sensor provides the absolute translational position of its connection point. It inherits from PartialAbsoluteSensor, which defines a mechanical translational flange. The sensor's RealOutput signal, named s, directly reflects the position variable s associated with this flange. The fundamental behavior is captured by the equation:

\[s = flange.s\]

Here, the s on the left side of the equation is the sensor's output signal, and flange.s is the position variable of the connector inherited from PartialAbsoluteSensor.

This component extends from PartialAbsoluteSensor

Usage

TranslationalComponents.PositionSensor()

Connectors

  • flange - This connector represents a mechanical flange with position and force as the potential and flow variables, respectively. (Flange)
  • s - This connector represents a real signal as an output from a component (RealOutput)

Behavior

\[ \begin{align} 0 &= \mathtt{flange.f}\left( t \right) \\ \mathtt{flange.s}\left( t \right) &= s\left( t \right) \end{align} \]

Source

"""
Measures the absolute linear position of a mechanical translational flange.

This sensor provides the absolute translational position of its connection point.
It inherits from `PartialAbsoluteSensor`, which defines a mechanical
translational `flange`. The sensor's `RealOutput` signal, named `s`, directly
reflects the position variable `s` associated with this `flange`.
The fundamental behavior is captured by the equation:

math s = flange.s

Here, the `s` on the left side of the equation is the sensor's output signal,
and `flange.s` is the position variable of the connector inherited from
`PartialAbsoluteSensor`.
"""</span>
<span class="hljs-keyword">component</span> PositionSensor
&nbsp;&nbsp;<span class="hljs-keyword">extends</span> <span class="hljs-link"><a href="https://help.juliahub.com/dyad/dev/stdlib/TranslationalComponents/types/PartialAbsoluteSensor.html">PartialAbsoluteSensor</a></span>
&nbsp;&nbsp;<span class="hljs-comment">"Output signal representing the measured absolute position"</span>
&nbsp;&nbsp;<span class="hljs-symbol">s</span> = <span class="hljs-link"><a href="https://help.juliahub.com/dyad/dev/stdlib/Dyad/connectors/RealOutput.html">RealOutput</a></span>() {"Dyad": {"placement": {"icon": {"x1": 950, "y1": 450, "x2": 1050, "y2": 550}}}}
<span class="hljs-keyword">relations</span>
&nbsp;&nbsp;flange.s = s
<span class="hljs-keyword">metadata</span> {
&nbsp;&nbsp;"Dyad": {"icons": {"default": "dyad://TranslationalComponents/AbsoluteSensor.svg"}}
}
<span class="hljs-keyword">end</span></code></pre>
Flattened Source
"""
Measures the absolute linear position of a mechanical translational flange.

This sensor provides the absolute translational position of its connection point.
It inherits from `PartialAbsoluteSensor`, which defines a mechanical
translational `flange`. The sensor's `RealOutput` signal, named `s`, directly
reflects the position variable `s` associated with this `flange`.
The fundamental behavior is captured by the equation:

math s = flange.s

Here, the `s` on the left side of the equation is the sensor's output signal,
and `flange.s` is the position variable of the connector inherited from
`PartialAbsoluteSensor`.
"""</span>
<span class="hljs-keyword">component</span> PositionSensor
&nbsp;&nbsp;<span class="hljs-comment">"Mechanical flange connector through which the variable is sensed."</span>
&nbsp;&nbsp;<span class="hljs-symbol">flange</span> = <span>Flange</span>() {"Dyad": {"placement": {"icon": {"x1": -50, "y1": 450, "x2": 50, "y2": 550}}}}
&nbsp;&nbsp;<span class="hljs-comment">"Output signal representing the measured absolute position"</span>
&nbsp;&nbsp;<span class="hljs-symbol">s</span> = <span>RealOutput</span>() {"Dyad": {"placement": {"icon": {"x1": 950, "y1": 450, "x2": 1050, "y2": 550}}}}
<span class="hljs-keyword">relations</span>
&nbsp;&nbsp;0 = flange.f
&nbsp;&nbsp;flange.s = s
<span class="hljs-keyword">metadata</span> {
&nbsp;&nbsp;"Dyad": {"icons": {"default": "dyad://TranslationalComponents/AbsoluteSensor.svg"}}
}
<span class="hljs-keyword">end</span></code></pre>


Test Cases

No test cases defined.