Difference between revisions of "Extensions.DiagCom.IsPositive"
Jump to navigation
Jump to search
Line 37: | Line 37: | ||
[[Extensions.DiagCom.GetAllResponses|GetAllResponses]] <br/> | [[Extensions.DiagCom.GetAllResponses|GetAllResponses]] <br/> | ||
[[Extensions.DiagCom.GetFirstResponse|GetFirstResponse]] <br/> | [[Extensions.DiagCom.GetFirstResponse|GetFirstResponse]] <br/> | ||
+ | [[Extensions.DiagCom.GetComChannel|GetComChannel]] <br/> | ||
+ | [[Extensions.DiagCom.CreateDiagServiceByName|CreateDiagServiceByName]] <br/> | ||
+ | [[Extensions.DiagCom.CreateDiagServiceBySemantic|CreateDiagServiceBySemantic]] <br/> | ||
[[Extensions.DiagCom.ExecuteDiagService|ExecuteDiagService]] <br/> | [[Extensions.DiagCom.ExecuteDiagService|ExecuteDiagService]] <br/> | ||
[[Extensions.DiagCom.GetFirstResult|GetFirstResult]] <br/> | [[Extensions.DiagCom.GetFirstResult|GetFirstResult]] <br/> | ||
+ | [[Extensions.DiagCom.GetAllResults|GetAllResults]] <br/> | ||
+ | [[Extensions.DiagCom.GetAllResults|GetAllResults]] <br/> |
Revision as of 09:43, 12 October 2018
Contents
Classification
Name | IsPositive |
Short Description | Test, a response to positive or negative |
Class | Term |
Extension | OTX DiagCom extension |
Group | Response related terms |
Exceptions | - |
Checker Rules | - |
Standard Compliant | Yes |
OTL Syntax
BooleanTerm = DiagCom.IsPositive(ResponseTerm);
Description
The IsPositive term tests whether the specified response is positive or negative.
Return Value
The Term returns the value, see table below.
![]()
In OTX, Terms are categorized according to its return data type!
Data Type | Description |
Boolean | True if the response is positive, otherwise false. |
Properties
Name | Data Type | Class | Default | Cardinality | Description |
Response | Response | Term | - | [1] | Response object. |
Examples
DiagCom.Result Result1;
DiagCom.Response Response1;
DiagCom.ResponseState ResponseState1 = @ResponseStates:FAILED;
Boolean Boolean1 = false;
DiagCom.ComChannel ComChannel1;
ComChannel1 = DiagCom.GetComChannel("LL_AirbaUDS", null, false);
DiagCom.ExecuteDiagService(DiagCom.CreateDiagServiceByName(ComChannel1, "DiagnServi_ReadDataByIdentVWECUHardwVersiNumbe"), {}, {}, false, false, Result1);
Response1 = DiagCom.GetFirstResponse(Result1);
ResponseState1 = DiagCom.GetResponseState(Response1);
Boolean1 = DiagCom.IsPositive(Response1);
See also
GetAllResponses
GetFirstResponse
GetComChannel
CreateDiagServiceByName
CreateDiagServiceBySemantic
ExecuteDiagService
GetFirstResult
GetAllResults
GetAllResults