blockE2d

Calculate position from hall sensor signal

Extends from Modelica.Clocked.ClockSignals.Interfaces.ClockedBlockIcon (Basic graphical layout of block where at least one input or output is a clocked variable), 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.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)
Modelica.Clocked.ClockSignals.Interfaces.ClockInputclock

Components

TypeNameDefaultDescription
Modelica.Clocked.RealSignals.Sampler.SampleClockedsample_e
InvertHallSensorinvertHallSensor
Modelica.Clocked.RealSignals.NonPeriodic.UnitDelayunitDelay_i
Modelica.Clocked.RealSignals.NonPeriodic.UnitDelayunitDelay_e
InvertHallSensorinvertHallSensor_pre
Modelica.Blocks.Math.Feedbackfeedback
Modelica.Blocks.Math.Divisiondivision
Modelica.Blocks.Sources.RealExpressionTs