Extensions.DiagCom.IsDiagServiceEvent
Jump to navigation
Jump to search
Contents
Classification
Name | IsDiagServiceEvent |
Short Description | Checks whether an event was rased to a diagnostic service |
Class | Term |
Extension | OTX DiagCom extension |
Group | Event related terms |
Exceptions | - |
Checker Rules | - |
Standard Compliant | Yes |
OTL Syntax
BooleanTerm = DiagCom.IsDiagServiceEvent(EventTerm);
Description
The IsDiagServiceEvent term checks whether the passed event so was rased to a diagnostic service on the DiagServiceEventSource was generated term or not, see Event Library.
Return Value
The Term returns the value, see table below.
![]()
In OTX, Terms are categorized according to its return data type!
Data Type | Description |
Boolean | True if and only if the Eventoriginates from a DiagServiceEventSource term, otherwise false. |
Properties
Name | Data Type | Class | Default | Cardinality | Description |
Event | Event | Term | - | [1] | Represents the Eventwhose type shall be tested. |
OTL Examples
DiagCom.ComChannel myComCannel;
DiagCom.DiagService DiagService1;
EventHandling.EventSource EventSource1;
EventHandling.Event Event1;
Boolean Boolean1 = false;
myComCannel = DiagCom.GetComChannel("LL_AirbaUDS", null, false);
DiagService1 = DiagCom.CreateDiagServiceByName(myComCannel, "DiagnServi_ReadDataByIdentBasicSettiStatu");
EventSource1 = DiagCom.DiagServiceEventSource(DiagService1);
parallel
{
lane
{
DiagCom.ExecuteDiagService(DiagService1, {}, {}, false, false);
}
lane
{
EventHandling.WaitForEvent({EventSource1}, Event1);
}
}
Boolean1 = DiagCom.IsDiagServiceEvent(Event1);