Difference between revisions of "Extensions.DiagCom.GetDiagServiceFromResult"

From emotive
Jump to navigation Jump to search
Line 3: Line 3:
 
{{ClassificationActivity | GetDiagServiceFromResult | Diagnostic service, is assigned to the Result object | [[Term]] | [[DiagCom|OTX DiagCom extension]] | [[DiagService related terms]] | [[InvalidReferenceException]] | - }}
 
{{ClassificationActivity | GetDiagServiceFromResult | Diagnostic service, is assigned to the Result object | [[Term]] | [[DiagCom|OTX DiagCom extension]] | [[DiagService related terms]] | [[InvalidReferenceException]] | - }}
  
== Pseudo-Code Syntax ==
+
== OTL Syntax ==
 
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;">
 
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;">
DiagService GetDiagServiceFromResult(Result resultEcu);
+
DiagServiceTerm = DiagCom.GetDiagServiceFromResult(ResultTerm);
 
</syntaxhighlight>
 
</syntaxhighlight>
  
Line 19: Line 19:
 
|}
 
|}
  
== Examples ==
+
== OTL Examples ==
 
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;">
 
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;">
DiagService result = GetDiagServiceFromResult(resultVariable, "DiagServiceName");
+
DiagCom.ComChannel myComCannel;
 +
DiagCom.Result Result1;
 +
DiagCom.DiagService DiagService1;
 +
 
 +
myComCannel = DiagCom.GetComChannel("LL_AllEmissRelatUDSSyste", null, false);
 +
DiagService1 = DiagCom.CreateDiagServiceByName(myComCannel, "DiagnServi_ReadDataByIdentActuaTestStatu");
 +
DiagCom.ExecuteDiagService(DiagService1, {}, {}, false, false, Result1);
 +
DiagService1 = DiagCom.GetDiagServiceFromResult(Result1);
 
</syntaxhighlight>
 
</syntaxhighlight>
  

Revision as of 06:55, 5 February 2015

Classification

Name GetDiagServiceFromResult
Short Description Diagnostic service, is assigned to the Result object
Class Term
Extension OTX DiagCom extension
Group DiagService related terms
Exceptions InvalidReferenceException
Checker Rules -
Standard Compliant Yes

OTL Syntax

DiagServiceTerm = DiagCom.GetDiagServiceFromResult(ResultTerm);

Description

The GetDiagServiceNameFromResult term returns the diagnostic service that is assigned to the Result object.

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
ResultEcu Result Term - [1] Result object.

OTL Examples

DiagCom.ComChannel myComCannel;
DiagCom.Result Result1;
DiagCom.DiagService DiagService1;

myComCannel = DiagCom.GetComChannel("LL_AllEmissRelatUDSSyste", null, false);
DiagService1 = DiagCom.CreateDiagServiceByName(myComCannel, "DiagnServi_ReadDataByIdentActuaTestStatu");
DiagCom.ExecuteDiagService(DiagService1, {}, {}, false, false, Result1);
DiagService1 = DiagCom.GetDiagServiceFromResult(Result1);

See also

CreateDiagServiceBySemantic
GetDiagServiceListBySemantic
GetDiagServiceFromException
GetDiagServiceName
ExecuteDiagService
GetComChannel