forked from modelica/ModelicaStandardLibrary
-
Notifications
You must be signed in to change notification settings - Fork 0
/
PositionSensor.mo
27 lines (26 loc) · 1008 Bytes
/
PositionSensor.mo
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
within Modelica.Mechanics.Translational.Sensors;
model PositionSensor "Ideal sensor to measure the absolute position of flange"
extends Translational.Interfaces.PartialAbsoluteSensor;
Modelica.Blocks.Interfaces.RealOutput s(unit="m")
"Absolute position of flange as output signal" annotation (Placement(
transformation(extent={{100,-11},{120,9}}),
iconTransformation(extent={{100,-10},{120,10}})));
equation
s = flange.s;
annotation (
Documentation(info="<html>
<p>
Measures the <em>absolute position</em>
of a flange in an ideal way and provides the result as
output signal <code>s</code>
(to be further processed with blocks of the
<a href=\"modelica://Modelica.Blocks\">Modelica.Blocks</a> library).
</p>
</html>"),
Icon(coordinateSystem(preserveAspectRatio=true, extent={{-100,-100},
{100,100}}), graphics={
Text(
extent={{-24,20},{66,-40}},
textColor={64,64,64},
textString="m")}));
end PositionSensor;