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
| Type | Name | Default | Description |
|---|---|---|---|
| SI.Current | i0 (from E2d) | Initially measured coil current | |
| SI.Voltage | e0 (from E2d) | Initial Hall sensor signal | |
| Hall effect sensor | |||
| SI.Voltage | alfa (from E2d) | 2.48 | Coefficient 1 (constant) |
| Real | beta (from E2d) | 2.92E-4 | Coefficient 2 (distance) |
| SI.Resistance | gamma (from E2d) | 0.48 | Coefficient 3 (current) |
Connectors
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Clocked.RealSignals.Sampler.SampleClocked | sample_e | ||
| InvertHallSensor | invertHallSensor | ||
| Modelica.Clocked.RealSignals.NonPeriodic.UnitDelay | unitDelay_i | ||
| Modelica.Clocked.RealSignals.NonPeriodic.UnitDelay | unitDelay_e | ||
| InvertHallSensor | invertHallSensor_pre | ||
| Modelica.Blocks.Math.Feedback | feedback | ||
| Modelica.Blocks.Math.Division | division | ||
| Modelica.Blocks.Sources.RealExpression | Ts |