MotoHawk:Blocks:ADC Angle Vector Element

From MotoHawk
Jump to navigationJump to search

ADC Angle Vector Element

This MotoHawk™ block is used to associate an ADC input to one of the vectors generated by the ADC Angle Vector Object Definition block as well as to define the sampling window. This would correspond to one of the grey blocks in the figure below.

ADCVectorDefnExampleFig.jpg

Block ID

ADC Angle Vector Element

Library

MotoHawk_lib/Analog I/O Blocks

Description

ADCAngleVectorElement.JPG

The ADC Angle Vector behavior allows multiple ADC channels to be sampled. This block associates an ADC input resource to an ADC Angle Vector Object.

Each sample element is directly associated to a specific position in the crank angle domain. It is based upon the value of the "Offset" signal. Consider that the system has an interpolative spacing of 1 degree of crank angle (degCA) and is a 4-stroke, which means there are 720 elements in an instance of a vector. If the "Offset" was zero then element #0 of the vector would correspond to 0 degAfTDC#1 and element #1 would be 1 degAfTDC#1. However, if the offset was 270 degAfTDC#1 then element #0 would be 270degAfTDC#1 and element #1 would be 271 degAfTDC#1. For example, setting "Offset" to 180 in a system that fired 1, 2, 3, 4 would associate this element with cylinder #2. Element #0 of the vector would correspond to TDC#2.

The "Start" signal defines where the complete trigger will occur relative to the offset. Consider that the "Offset" is zero and that the system setup is the same as has been previously described above. If "Start" was 10 then element #0 will be newer in time than element#10. This is because the vector will be filled as follows 10, 11, 12 ... 719, 0, 1, ... 9. The "Start" locates where the trigger will execute.

The data maintained by this element may be retrieved via the Get Entire ADC Angle Vector block.

Block Parameters

Parameter Field Values Comments/Description
Name 'single-quote' enclosed alpha-numeric text

No special characters such as spaces, dashes, commas (underscore allowed). Select a unqiue name. This name shall be used within the [ADCAngleVectorDefinition.html ADC Angle Vector Object Definition] to reference this element.

Resource Drop-down list Select appropriate resource.
Vector Name 'single-quote' enclosed alpha-numeric text

Set to the name of the [ADCAngleVectorDefinition.html ADC Angle Vector Object Definition] block that this element applies to

Vector ID Numeric (Integer)

Zero-based element order. Use the value of 0 (zero) if this definition applied to 'Cyl1' in a system that defined two vectors 'Cyl1 Cyl2' within the [ADCAngleVectorDefinition.html ADC Angle Vector Object Definition]. If it was 'Cyl2' then the value of 1 (one) would be used. . This is also the value that will appear at the Vector ID output of the [GetEntireADCAngleVector.html Get Entire ADC Angle Vector] block.