Difference between revisions of "Extensions.DiagCom.DiagServiceEventSource"

From emotive
Jump to navigation Jump to search
(No difference)

Revision as of 07:14, 5 February 2016

Classification

Name DiagServiceEventSource
Short Description Binds a diagnosis service to an event handling source
Class Term
Extension OTX DiagCom extension
Group Event related terms
Exceptions -
Checker Rules -
Standard Compliant Yes

OTL Syntax

EventSourceTerm = DiagCom.DiagServiceEventSource(DiagServiceTerm);

Description

The DiagServiceEventSource term binds the given diagnosis service to an event handling source, see Event Library.

The functionality of the DiagServiceEventSource term is the counterpart of the asynchronous mode in the ExecuteDiagService activity. Every time a new result is received from the control unit, an event is triggered.

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
EventSource Source for event handling

Properties

Name Data Type Class Default Cardinality Description
DiagService DiagService Term - [1] Represents the DiagService that shall be connected to the event source.

OTL Examples

DiagCom.ComChannel myComCannel;
DiagCom.DiagService DiagService1;
EventHandling.EventSource EventSource1;

myComCannel = DiagCom.GetComChannel("LL_AirbaUDS", null, false);
DiagService1 = DiagCom.CreateDiagServiceByName(myComCannel, "DiagnServi_ReadDataByIdentBasicSettiStatu");
EventSource1 = DiagCom.DiagServiceEventSource(DiagService1);

See also

GetDiagServiceFromEvent
IsDiagServiceEvent