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
| Type | Name | Default | Description |
|---|---|---|---|
| SI.Time | samplePeriod (from DiscreteBlock) | Sample period of component | |
| SI.Time | startTime (from DiscreteBlock) | 0 | First sample time instant |
| 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.Blocks.Discrete.Sampler | sampler_e | ||
| Modelica.Blocks.Discrete.UnitDelay | unitDelay_i | ||
| Modelica.Blocks.Discrete.UnitDelay | unitDelay_e | ||
| InvertHallSensor | invertHallSensor | ||
| InvertHallSensor | invertHallSensor_pre | ||
| Modelica.Blocks.Math.Feedback | feedback | ||
| Modelica.Blocks.Math.Gain | gain |