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

Gets the display unit information of the DbParameter as a string More...

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

Public Attributes

DbParameterTerm dbParameter
 Cardinality [1]
The element addresses the DbParameter (MCDDbParameter) 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 DbParameter as a string

The GetDbParameterDisplayUnitAsString activity which returns the display unit information of the DbParameter 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 MCDDbParameter::getUnit.

Syntax
StringTerm = DiagDataBrowsingPlus.GetDbParameterDisplayUnitAsString(DbParameterTerm dbParameter);
Examples
// Local Declarations
DiagCom.Result Result;
DiagCom.Response Response;
DiagCom.Parameter Parameter;
DiagDataBrowsingPlus.DbParameter DbParameter;
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"});
DbParameter = DiagDataBrowsingPlus.GetParameterDbParameter(Parameter);
MyString = DiagDataBrowsingPlus.GetDbParameterDisplayUnitAsString(DbParameter);

Member Data Documentation

◆ dbParameter

DbParameterTerm OpenTestSystem.Otx.Extensions.DiagDataBrowsingPlus.Terms.GetDbParameterDisplayUnitAsString.dbParameter

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

OpenTestSystem.Otx.Extensions.DiagDataBrowsingPlus.Terms.GetDbParameterDisplayUnitAsString.dbParameter
DbParameterTerm dbParameter
Cardinality [1] The element addresses the DbParameter (MCDDbParameter) which display unit shall be re...
Definition: DiagDataBrowsingPlus.cs:11005