Difference between revisions of "Extensions.DiagCom.GetAllResults"
Jump to navigation
Jump to search
(2 intermediate revisions by one other user not shown) | |||
Line 5: | Line 5: | ||
== OTL Syntax == | == OTL Syntax == | ||
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | <syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | ||
− | + | ListTerm DiagCom.GetAllResults(DiagServiceTerm diagService); | |
− | + | </syntaxhighlight> | |
− | |||
− | |||
− | </syntaxhighlight> | ||
== Description == | == Description == | ||
Line 19: | Line 16: | ||
{| {{TableHeader}} | {| {{TableHeader}} | ||
{{TableRowPropertiesHeader}} | {{TableRowPropertiesHeader}} | ||
− | {{TableRowPropertie2| DiagService | [[Extensions.DiagCom.DiagService|DiagService]] | [[Term]] | - | [1] | Represents the '''DiagService''' of which the '''Results''' | + | {{TableRowPropertie2| DiagService | [[Extensions.DiagCom.DiagService|DiagService]] | [[Term]] | - | [1] | Represents the '''DiagService''' of which the '''Results''' will be returned.}} |
|} | |} | ||
Latest revision as of 10:13, 12 September 2019
Contents
Classification
Name | GetAllResults |
Short Description | Gets all available results of a diagnostic service |
Class | Term |
Extension | OTX DiagCom extension |
Group | Result related terms |
Exceptions | - |
Checker Rules | - |
Standard Compliant | Yes |
OTL Syntax
ListTerm DiagCom.GetAllResults(DiagServiceTerm diagService);
Description
The GetAllResults term returns all available results of a diagnostic service as a ListTerm. The list contains Result objects. This term only reads Result entries and does not delete the buffer containing the results. Possible use case is the monitoring of results without changing the state of the DiagService. GetAllResults is derived from ListTerm.
Return Value
The Term returns the value, see table below.
![]()
In OTX, Terms are categorized according to its return data type!
Data Type | Description |
List | The List of all available results of a diagnostic service. |
Properties
Name | Data Type | Class | Default | Cardinality | Description |
DiagService | DiagService | Term | - | [1] | Represents the DiagService of which the Results will be returned. |
OTL Examples
/// Local Declarations
DiagCom.ComChannel ComChannel1;
DiagCom.DiagService DiagService1;
List<DiagCom.Result> List1;
/// Flow
ComChannel1 = DiagCom.GetComChannel("LL_GatewUDS", "", false);
DiagService1 = DiagCom.CreateDiagServiceByName(ComChannel1, "DiagnServi_ReadDataByIdentActuaTestStatu");
DiagCom.SetRepetitionTime(DiagService1, 5);
DiagCom.StartRepeatedExecution(DiagService1);
EventHandling.Sleep(50);
DiagCom.StopRepeatedExecution(DiagService1);
List1 = DiagCom.GetAllResults(DiagService1);
See also
GetComChannel
CreateDiagServiceByName
SetRepetitionTime
StartRepeatedExecution
StopRepeatedExecution
GetFirstResult
ExecuteDiagService