MotoHawk Knock Blocks

From NewEagleWiki
Revision as of 19:01, 4 March 2013 by Kparz (talk | contribs) (moved Knock Blocks to MotoHawk Knock Blocks)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

C

MotoHawk:Blocks:Cylinder Knock PIPI Window Set

This MotoHawk® block sets the PIPI window locations for the selected knock device.

MotoHawk:Blocks:Cylinder Knock Sync Window Set

This MotoHawk® block sets the Knock Sync window locations for the selected knock device.

K

MotoHawk:Blocks:Knock IIR Filter Calibration

This MotoHawk® block will create a calibration specifically for a biquad flter coefficients with easy to read formatting.

Default Filter Coefficients: A vector of 20 biquad coefficients in the range of (-4,4).

Calibration Name: A unique name for the calibration.

Calibration Group: A group to associate the calibration.

MotoHawk:Blocks:Knock Calculation Complete Trigger

This MotoHawk® block triggers a Simulink Function-Call subsystem upon completion of a Knock Calculation Completion of the chosen device.

MotoHawk:Blocks:Knock Definition

This MotoHawk® block helps define the knock detection.

Cylinders: The number of cylinders that this device will read. Max 12.

Device Offset from TDC1: Offset from the TDC1 location for all angles of this device.

Default Sensor Gain: The default gain (1X or 2X) that the device will apply to the incoming signal.

Knock pin Select: A vector of 1's and 0's indicating the pin to use for each cylinder.

PROSAK Mode: See PROSAK CALSETUP description in the PROSAK manual.

MKIKS Development Enabled: Apply when needing MKIKS connected to an open module. Initialization will FAIL for a closed module.

Default Filter Coefficients: A vector of 20 biquad coefficients in the range of (-4,4).

MotoHawk:Blocks:Knock Filter

This MotoHawk® block updates the Filter Coefficients to the selected Knock Device. A vector of 20 int16 coefficients scaled in B2 (4/32768 per count) are required. Update occurs on trigger and if and only if one or more coefficients are changed. Note that Knock is invalid for the settling period of the filter after a coefficient change.

MotoHawk:Blocks:Knock Gain

This MotoHawk® block updates the KNKGAIN bit to set the sensor gain of the PROSAK device.

MotoHawk:Blocks:Knock Reference Filter

This MotoHawk® block filters reference coefficents in the range of [0,1). See PROSAK documentation for further details.

MotoHawk:Blocks:Knock Results

This MotoHawk® block retrieves knock calculations.

Parameters: Knock Device: Choose the device for which to retrieve results. Note that Knock Device 2 is only supported on 128 pin modules.

Firing Order: A vector of 12 elements in the range of [1,12] to set the firing order of the engine. This will re-order the outputs to be cylinder relative so that KnockEnergy[3] is for cylinder 3 and so-on.

Calibration Group String: A Calibration, CylFireOrderArr, is created for this block and can be adjusted in development units. This group string should be a pipe delimited string for the MotoTune group (i.e. 'Diagnostics & Protection | Knock | Knock Setup')

Outputs: Cylinder Trigger[12]: A vector of triggers that will occur upon availability of a calculation for a particular cylinder.

Last Computed Cylinder: A scalar that indicates the cylinder number of the most recently available data.

Knock Energy[12]: The output of the Knock Integrator for each cylinder. (See PROSAK manual)

RefEnergy[12]: The Reference Integrator output for each cylinder. (See PROSAK manual)

Ratio[12]: The Ratio output for each cylinder. (See PROSAK manual)

MotoHawk:Blocks:Knock Window

This MotoHawk® block sets the reference and knock window locations for the selected knock device.

P

MotoHawk:Blocks:PROSAK Filter Calibration

This MotoHawk® block will create a MotoTune calibration specifically for the PROSAK biquad filter coefficients with easy to read formatting. The output can be consumed by a Knock Filter block to update the filter coefficients in the device.

Default Filter Coefficients: A vector of 20 biquad coefficients in the range of (-4,4).

Calibration Name: A unique name for the Calibration in MotoTune.

Calibration Group: A group to associate the calibration with in MotoTune.

R

MotoHawk:Blocks:Read PROSAK Registers

This MotoHawk® block performs a raw read of the ProSAK registers and outputs them as a vector of 122 uint16 values.

V

MotoHawk:Blocks:VISTA After Knock Noise Calc Mode Set

This MotoHawk® block edits VISTA. Valid values to input into this function are:

0: Knock calculation begins at close of knock integration window

1: Knock calculation is delayed until after noise calculation if knock window precedes noise window

MotoHawk:Blocks:VISTA Cylinder Knock Window Set

This MotoHawk® block sets the reference and knock window locations for the selected knock device.

MotoHawk:Blocks:VISTA Knock Calculation Complete Trigger

This MotoHawk® block triggers a Simulink Function-Call subsystem upon completion of a Knock Calculation Completion of the chosen device.

MotoHawk:Blocks:VISTA Knock Definition

This MotoHawk® block helps define VISTA knock detection.

MotoHawk:Blocks:VISTA Knock Filter

This MotoHawk® block updates the Filter Coefficients to the selected Knock Device. A vector of 20 int16 coefficients scaled in B2 (4/32768 per count) are required. Update occurs on trigger and if and only if one or more coefficients are changed. Note that Knock is invalid for the settling period of the filter after a coefficient change.

MotoHawk:Blocks:VISTA Knock Fixed Cutoff Set

This MotoHawk® block valid values to input into this function are values from 0-63. The script motohawk_knock_fgain_select_enum returns a cell array with this enumeration.

MotoHawk:Blocks:VISTA Knock Fixed Filter Enable Set

Valid values to input into this MotoHawk® block are:

0: Disabled

1: Enabled

MotoHawk:Blocks:VISTA Knock Fixed Filter Select

Valid values to input into this MotoHawk® block are values from 0-63. The script motohawk_knock_fgain_select_enum returns a cell array with this enumeration.

MotoHawk:Blocks:VISTA Knock Noise Window Mode Set

Valid values to input into MotoHawk® block are:

0: Single Knock window

1: Internal window - Rising PIP edge, width 1/4 KDW

2: Internal window - Rising PIP edge, width 1/2 KDW

3: Internal window - Falling KDW edge, width 1/4 KDW

4: Internal window - Falling KDW edge, width 1/2 KDW

5: External window - NDW before KDW, width 1/4 KDW

6: External window - NDW before KDW, width 1/2 KDW

7: External window - NDW after KDW, width 1/4 KDW

8: External window - NDW after KDW, width 1/2 KDW

9: External window - NDW before KDW, duration of NDW

10: External window - NDW after KDW, duration of NDW

The script motohawk_knock_nwm_mode_enum returns a cell array with this enumeration.

MotoHawk:Blocks:VISTA Knock Output Mode Set

Valid values to input into this MotoHawk® block are:

0: Disabled (normal) 1: Backend Calibration 2: IIR+COMB Calibration 3: IIR+COEFF Calibration

The script motohawk_knock_mkics_mode_enum returns a cell array with this enumeration.

MotoHawk:Blocks:VISTA Knock Reference Coefficients Set

For this MotoHawk® block use filter reference coefficients in the range of [0,1).

MotoHawk:Blocks:VISTA Knock Register Read

This MotoHawk® block dumps the raw values from any register.

MotoHawk:Blocks:VISTA Knock Results

This MotoHawk® block retrieves knock calculations.

Parameters: Knock Device: Choose the device for which to retrieve results. Note that Knock Device 2 is only supported on 128 pin modules.

Firing Order: A vector of 12 elements in the range of [1,12] to set the firing order of the engine. This will re-order the outputs to be cylinder relative so that KnockEnergy[3] is for cylinder 3 and so-on.

Calibration Group String: A Calibration, CylFireOrderArr, is created for this block and can be adjusted in development units. This group string should be a pipe delimited string for the MotoTune group (i.e. 'Diagnostics & Protection | Knock | Knock Setup')

Outputs: Cylinder Trigger[12]: A vector of triggers that will occur upon availability of a calculation for a particular cylinder.

Last Computed Cylinder: A scalar that indicates the cylinder number of the most recently available data.

Knock Energy[12]: The output of the Knock Integrator for each cylinder. (See PROSAK manual)

RefEnergy[12]: The Reference Integrator output for each cylinder. (See PROSAK manual)

Ratio[12]: The Ratio output for each cylinder. (See PROSAK manual)

MotoHawk:Blocks:VISTA Knock Scale

This MotoHawk® block sets the scale for knocks.

MotoHawk:Blocks:VISTA Knock Scale Set

MotoHawk:Blocks:VISTA Knock Sensor Gain

This MotoHawk® block updates the Sensor Gain to set the sensor gain of the VISTA device.

MotoHawk:Blocks:VISTA Knock Sensor Update Set

Valid values to input into this MotoHawk® block are:

0: Sensor update after window calculation

1: Sensor always updates

MotoHawk:Blocks:VISTA MKICS Mode Set

Valid values to input into this MotoHawk® block are:

0: Disabled (normal) 1: Backend Calibration 2: IIR+COMB Calibration 3: IIR+COEFF Calibration

The script motohawk_knock_mkics_mode_enum returns a cell array with this enumeration.