ReferenceSensor

model ReferenceSensor "Sensor of reference angle gamma"
    extends Modelica.Electrical.QuasiStationary.SinglePhase.Interfaces.AbsoluteSensor;

    Modelica.Blocks.Interfaces.RealOutput y(unit = "rad") "Reference angle"
        annotation (Placement(transformation(extent = {
            {100, -10}, 
            {120, 10}})));
equation
    y = pin.reference.gamma;

    annotation (
        Icon(graphics = {
            Text(
                extent = {
                    {60, -60}, 
                    {-60, -30}},
                textString = "ref")}),
        Documentation(info = "<html>\n\n<p>\nThis sensor can be used to measure the reference angle.\n</p>\n\n<h4>See also</h4>\n\n<p>\n<a href=\"modelica://Modelica.Electrical.QuasiStationary.SinglePhase.Sensors.FrequencySensor\">FrequencySensor</a>,\n<a href=\"modelica://Modelica.Electrical.QuasiStationary.SinglePhase.Sensors.PotentialSensor\">PotentialSensor</a>,\n<a href=\"modelica://Modelica.Electrical.QuasiStationary.SinglePhase.Sensors.VoltageSensor\">VoltageSensor</a>,\n<a href=\"modelica://Modelica.Electrical.QuasiStationary.SinglePhase.Sensors.CurrentSensor\">CurrentSensor</a>,\n<a href=\"modelica://Modelica.Electrical.QuasiStationary.SinglePhase.Sensors.PowerSensor\">PowerSensor</a>,\n<a href=\"modelica://Modelica.Electrical.QuasiStationary.SinglePhase.Sensors.MultiSensor\">MultiSensor</a>\n</p>\n\n</html>"));
end ReferenceSensor;