blockE2d

Calculate position from hall sensor signal

Extends from Modelica.Blocks.Interfaces.DiscreteBlock (Base class of discrete control blocks), MagLev.Control.BaseBlocks.E2d (Calculate position from hall sensor signal).

Information

Calculates the position of the magnet from the output of the hall effect sensor, using the known current. Additionally, the velocity of the magnet is determined by differentiating the position. A time discrete differentiation is used.

Parameters

TypeNameDefaultDescription
SI.TimesamplePeriod (from DiscreteBlock)Sample period of component
SI.TimestartTime (from DiscreteBlock)0First sample time instant
SI.Currenti0 (from E2d)Initially measured coil current
SI.Voltagee0 (from E2d)Initial Hall sensor signal
Hall effect sensor
SI.Voltagealfa (from E2d)2.48Coefficient 1 (constant)
Realbeta (from E2d)2.92E-4Coefficient 2 (distance)
SI.Resistancegamma (from E2d)0.48Coefficient 3 (current)

Connectors

TypeNameDefaultDescription
Modelica.Blocks.Interfaces.RealInpute (from E2d)
Modelica.Blocks.Interfaces.RealInputi (from E2d)
Modelica.Blocks.Interfaces.RealOutputd (from E2d)
Modelica.Blocks.Interfaces.RealOutputd_der (from E2d)

Components

TypeNameDefaultDescription
Modelica.Blocks.Discrete.Samplersampler_e
Modelica.Blocks.Discrete.UnitDelayunitDelay_i
Modelica.Blocks.Discrete.UnitDelayunitDelay_e
InvertHallSensorinvertHallSensor
InvertHallSensorinvertHallSensor_pre
Modelica.Blocks.Math.Feedbackfeedback
Modelica.Blocks.Math.Gaingain