Pseudo-Encoder

This MotoHawk™ block controls the software simulation of the encoder system.

Block ID

motohawk_encoder_pseudo

Library

MotoHawk_lib/Encoder Blocks

Description

Controls the software simulation of the encoder system such that InstantRPM and AverageRPM will reflect the applied pseudo RPM.

RPM is a uint16 with units of 1.

Legacy Encoder

The supplied RPM is applied when Enable is set to TRUE on a Legacy encoder. Zero is applied when the Enable port is FALSE. Some implementations may also require the Encoder State to represent zero speed before the supplied RPM will be applied.

Generally the application of a real encoder source won't impact the system while a non-zero RPM has been successfully applied to the pseudo encoder. Setting the Enable port to FALSE will allow the system to detect real encoder signals again.

Note: The application should assume that it is able to activate the pseudo encoder at any time. Thus it should ensure that the system is in a state that it is safe to do so. Eg: there is no 'real' encoder activity. Such a switch with engine running may be detrimental to the system and cause damage.

Flexible Encoder

The enable port does not control whether the pseudo encoder is activated when this block is used with a Flexible Encoder. Instead the pseudo encoder is activated when the application uses the source switch port on the Flexible Encoder block to select the pseudo encoder. The RPM port defines what RPM shall be simulated by the pseudo encoder when it is active provided the enable port is TRUE. A zero RPM setpoint is applied regardless of the value of the RPM port when the enable port is FALSE.

Note: The application is able to activate the pseudo encoder at any time. Thus it should ensure that the system is in a state that it is safe to do so. Eg: there is no 'real' encoder activity. Such a switch with engine running may be detrimental to the system and cause damage.

Block Parameters

This MotoHawk™ block has no user-definable parameters.