7.7.9. DTC match exists (pdtc_MatchExists)

Determine the existence of DTCs which match the DTC type, DTC emissions severity and DTC state.

7.7.9.1. Supported targets

All targets

7.7.9.2. Required license

EXT_DIAG (Extended diagnostics library). (See Section 2.3, “Licensed Features”.)

7.7.9.3. Description

Given a DTC table, determine the existence of DTCs which match the block parameters DTC type, DTC emissions severity and DTC state. Indicate the existence, or otherwise via an output flag and a count.

7.7.9.4. Inports

None.

7.7.9.5. Outports

  • dtc_match

    Set to 1 if at least one DTC exists, in the DTC table, that matches the criteria. Set to 0, otherwise.

    Value type:Boolean
  • dtc_count

    Set to the number of DTCs, in the DTC table, that match the criteria.

    Value type:Integer

7.7.9.6. Mask parameters

  • DTC table identifier

    The name of the DTC table to act on (there must be a corresponding named table specified in a pdtc_Table block in the model).

    Value type:String
    Calibratable:No
  • DTC type

    A drop-down selection of the type of DTCs to match in the DTC table (specified by parameter DTC table identifier).

    Value type:List
    Calibratable:No
  • DTC emissions severity

    A drop-down selection of the emissions severity of the DTCs to match in the DTC table (specified by parameter DTC table identifier).

    Value type:List
    Calibratable:No
  • GTE emissions comparison

    If this option is checked, the block will attempt to match DTCs that have an emissions severity greater than or equal to the DTC emissions severity. Otherwise, the block will attempt to match DTCs that have an emissions severity equal to the DTC emissions severity.

    Value type:Boolean
    Calibratable:No
  • DTC state

    A drop-down selection of the state of the DTCs to match in the DTC table (specified by parameter DTC table identifier).

    Value type:List
    Calibratable:No
  • Sample time

    The periodicity of the block execution in seconds.

    Range: [0.001, 3600] seconds

    Value type:Real
    Calibratable:No

7.7.9.7. Notes

None.