Difference between revisions of "Extensions.DiagCom.DiagServiceEventSource"
Jump to navigation
Jump to search
Line 3: | Line 3: | ||
{{ClassificationActivity | DiagServiceEventSource | Binds a diagnosis service to an event handling source | [[Term]] | [[DiagCom|OTX DiagCom extension]] | [[Event related terms]] | - | - }} | {{ClassificationActivity | DiagServiceEventSource | Binds a diagnosis service to an event handling source | [[Term]] | [[DiagCom|OTX DiagCom extension]] | [[Event related terms]] | - | - }} | ||
− | == | + | == OTL Syntax == |
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | <syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | ||
− | + | EventSourceTerm = DiagCom.DiagServiceEventSource(DiagServiceTerm); | |
</syntaxhighlight> | </syntaxhighlight> | ||
Line 21: | Line 21: | ||
|} | |} | ||
− | == Examples == | + | == OTL Examples == |
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | <syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | ||
− | EventSource | + | 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); | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Revision as of 08:16, 6 February 2015
Contents
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.
![]()
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);