modelPulseCounter

Compute speed using pulse counting
Diagram of PulseCounter

Extends from Interfaces.SpeedSensor (The base class for all of our sensor models).

Parameters

TypeNameDefaultDescription
Modelica.SIunits.Timesample_time
Integerteeth

Connectors

TypeNameDefaultDescription
Flange_aflange (from PartialAbsoluteSensor)Flange of shaft from which sensor information shall be measured
Modelica.Blocks.Interfaces.RealOutputw (from SpeedSensor)Sensed speed

Components

TypeNameDefaultDescription
Modelica.SIunits.Anglenext_phi
Modelica.SIunits.Angleprev_phi
Integercount