Extensions.DiagCom.GetDiagServiceFromEvent

From emotive
Revision as of 04:00, 15 February 2016 by Hb (talk | contribs)
Jump to navigation Jump to search

Classification

Name GetDiagServiceFromEvent
Short Description Diagnostics service event handler source
Class Term
Extension OTX DiagCom extension
Group Event related terms
Exceptions TypeMismatchException
Checker Rules -
Standard Compliant Yes

OTL Syntax

DiagServiceTerm = DiagCom.GetDiagServiceFromEvent(EventTerm);

Description

The GetDiagServiceFromEvent term returns associated with the event handling source Diagnostics Service, see Event Library. Thus, this term is the opposite of DiagServiceEventSource term.

Return Value

The Term returns the value, see table below.

Icons Note.png In OTX, Terms are categorized according to its return data type!
Data Type Description
DiagService Diagnostics Service.

Properties

Name Data Type Class Default Cardinality Description
Event Event Term - [1] Represents the event that was raised by the DiagService that shall be retrieved.

OTL Examples

DiagCom.ComChannel myComCannel;
DiagCom.DiagService DiagService1;
EventHandling.EventSource EventSource1;
EventHandling.Event Event1;
DiagCom.DiagService DiagService2;

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);
   }
}

DiagService2 = DiagCom.GetDiagServiceFromEvent(Event1);

See also

DiagServiceEventSource
IsDiagServiceEvent