OTX Reference  
OpenTestSystem.Otx.Extensions.DiagDataBrowsingPlus.Terms.GetParameterDisplayUnitAsString Class Reference

Gets the display unit information of the diag:Parameter as a string More...

Inheritance diagram for OpenTestSystem.Otx.Extensions.DiagDataBrowsingPlus.Terms.GetParameterDisplayUnitAsString:
Inheritance graph

Public Attributes

ParameterTerm parameter
 Cardinality [1]
The element addresses the parameter (MCDParameter) which display unit shall be returned. More...
 
- Public Attributes inherited from OpenTestSystem.Otx.Core.Terms.Term
MetaData metaData
 Cardinality [0..1]
The MetaData type allows tools to store additional, mainly tool-specific data. More...
 

Detailed Description

Gets the display unit information of the diag:Parameter as a string

The GetParameterDisplayUnitAsString activity which returns the display unit information of the diag:Parameter as a string. If the parameter is not of simple data type or does not contain any unit information an empty string is returned. The unit is only available for parameters with simple data types.

Note: The appropriate MVCI system operation is MCDParameter::getUnit.

Exceptions
Exceptions.InvalidTypeExceptionIf the parameter is not of simple data type A_UINT (8-64), A_INT (8-64), FLOAT (32,64), TEXTTABLE, BITFIELD, ASCIISTRING, UNICODE2STRING or BYTEFIELD.
Syntax
StringTerm = DiagDataBrowsingPlus.GetParameterDisplayUnitAsString(ParameterTerm parameter);
Examples
// Local Declarations
DiagCom.Result Result;
DiagCom.Response Response;
DiagCom.Parameter Parameter;
String MyString;
// Flow
[#MetaData(RequestPdu), <#Data>22 2A 19</#Data>]
DiagCom.ExecuteDiagService(DiagCom.CreateDiagServiceByName(DiagCom.GetComChannel("LL_GatewUDS", "EV_GatewLear_006", false), "DiagnServi_ReadDataByIdentMeasuValue"), {Param_RecorDataIdent = "stall current measurement value"}, {}, Result, NULL, false, false);
Response = DiagCom.GetFirstResponse(Result);
Parameter = DiagCom.GetParameterByPath(Response, {"Param_DataRecor", "Param_StallCurreMeasuValue", "Case_MeasuValue", "Param_Ruhes"});
MyString = DiagDataBrowsingPlus.GetParameterDisplayUnitAsString(Parameter);

Member Data Documentation

◆ parameter

ParameterTerm OpenTestSystem.Otx.Extensions.DiagDataBrowsingPlus.Terms.GetParameterDisplayUnitAsString.parameter

Cardinality [1]
The element addresses the parameter (MCDParameter) which display unit shall be returned.

OpenTestSystem.Otx.Extensions.DiagDataBrowsingPlus.Terms.GetParameterDisplayUnitAsString.parameter
ParameterTerm parameter
Cardinality [1] The element addresses the parameter (MCDParameter) which display unit shall be return...
Definition: DiagDataBrowsingPlus.cs:9723