blockE2d

Calculate position from hall sensor signal

Extends from Modelica.Blocks.Icons.Block (Basic graphical layout of input/output block), 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.

Parameters

TypeNameDefaultDescription
SI.TimeTdsDead time at sample
SI.TimeTdDerivative time constant > 0
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.Continuous.Derivativedt1
InvertHallSensorinvertHallSensor
Modelica.Blocks.Continuous.FirstOrdersample2