6.8.3. Analogue input — angular, variable absolute angle (pan_AngularAnalogInputVariableAbs)

Retrieves analogue input samples taken relative to crank zero degrees.

6.8.3.1. Supported targets

M220-000, M221-000, M250-000 and M670-000

6.8.3.2. Required license

None (Main library). (See Section 2.3, “Licensed Features”.)

6.8.3.3. Description

The pan_AngularAnalogInputVariableAbs block retrieves a buffer of sampled analogue input values taken by the ECU relative to crank zero degrees. See Section 6.1.3, “Crankshaft zero degrees” for a definition of crank zero degrees. The application provides the sample angles through the angles inport. The application can vary these sample angles while the application runs. The block can provide the samples as an average or individually based on the Average samples? mask parameter.

The angular samples are buffered by the ECU when the TDC-calculation event occurs. See Section 6.2, “Engine TDC-firing events” for a definition of TDC-calculation. If the angles at which the samples are taken are both before and after the TDC-calculation angle, then those samples prior to the TDC-calculation angle will be from the current cycle, but the angles after the TDC-calculation angle will be from one cycle earlier.

The sample angles are resolved to the closest sample (samples occur every 6 degrees throughout the engine cycle).

6.8.3.4. Inports

  • angles

    A vector of angles where analogue input samples are to be taken. Each angle is relative to crank zero degrees. The angles are reduced to a resolution of at least 6 degrees.

    Size: [1, 8] entries Range: [-360, 360) ° crank, for a two-stroke engine Range: [-720, 720) ° crank, for a four-stroke engine

    Value type:Real
  • sim_average

    Only used under simulation. The outport average is set to the value of this inport. Available only if Average samples? is ticked.

    Range: [-5, 5] volts

    Value type:Real
  • sim_samples

    Only used under simulation. Under simulation, the width of this inport is configured to match the width of the outport (as a scalar for an average sample, or a vector for individual samples). The outport samples is set to the value of this inport. Available only if Average samples? is unticked.

    Range: [-5, 5] volts

    Value type:Real

6.8.3.5. Outports

  • average

    The average of the angular sample channel calculated and buffered at the last TDC-calculation event. This outport is available when the Average samples? mask parameter is ticked.

    Range: [-5, 5] volts

    Value type:Real
  • samples

    The individual samples of the angular channel buffered at the last TDC-calculation event. This outport is available when the Average samples? mask parameter is unticked.

    The outport is a vector of samples. The size of the vector matches the size of the angles inport. The order of the A/D samples given by this outport matches the order of the sample angles given by the angles inport.

    Size: [1, 8] entries Range: [-5, 5] volts

    Value type:Real

6.8.3.6. Mask parameters

  • Group

    A drop down to identify the group of analogue input channel samples to process (as defined by the pan_AngularAnalogInputConfig block).

    Value type:List
    Calibratable:No
  • Average samples?

    Tick to provide the sampled A/D channel information as an average, untick to provide the information as individual samples.

    Value type:Boolean
    Calibratable:No
  • Sample time

    The periodicity of the block execution.

    Range: [0.001, 3600] seconds

    Value type:Real
    Calibratable:No
  • Provide simulation inports?

    Tick to enable inports sim_average or sim_samples.

    Value type:Boolean
    Calibratable:No

6.8.3.7. Notes

None.