Extensions.DiagDataBrowsingPlus.GetDbParameterRadix

From emotive
Jump to navigation Jump to search

Classification

Name GetDbParameterRadix
Short Description Gets the radix of the DbParameter
Class Term
Extension OTX DiagDataBrowsingPlus extension
Group DbParameter related terms
Exceptions InvalidTypeException
Checker Rules -
Standard Compliant Yes

OTL Syntax

IntegerTerm DiagDataBrowsingPlus.GetDbParameterRadix(DbParameterTerm dbParameter);

Description

GetDbParameterRadix returns the display radix of the parameter. The display radix shall be used by the Client to display a numeric parameter value in the format as defined in the data base (2 - ODX value BIN, 10 - ODX value DEC, 16 - ODX value HEX).

If the parameter is not a A_UINT or A_INT value, the InvalidTypeException exception will be thrown.

Icons Note.png The appropriate MVCI system operation is MCDDbParameter::getRadix

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
Integer Returns the display radix of the parameter.

Properties

Name Data Type Class Default Cardinality Description
DbParameter DbParameter Term - [1..1] The element addresses the DbParameter (MCDDbParameter) which radix shall be returned.

OTL Examples

/// Local Declarations

DiagCom.Request Request;
DiagDataBrowsingPlus.DbParameter DbParameter;
DiagCom.Parameter Parameter;
Integer MyInteger;

/// Flow

Request = DiagCom.GetRequest(DiagCom.CreateDiagServiceByName(DiagCom.GetComChannel("LL_GatewUDS", "", false), "DiagnServi_ReadDataByIdentGenerServi"));
Parameter = DiagCom.GetParameterByPath(Request, {"Param_RecorDataIdent"});
DbParameter = DiagDataBrowsingPlus.GetParameterDbParameter(Parameter);
MyInteger = DiagDataBrowsingPlus.GetDbParameterRadix(DbParameter);

See also

GetComChannel
CreateDiagServiceByName
CreateDiagServiceBySemantic
ExecuteDiagService
GetFirstResponse
GetRequest
GetParameterByPath
GetParameterDbParameter