Extensions.DiagCom.GetParameterValueAsFloat

From emotive
Jump to navigation Jump to search

Classification

Name GetParameterValueAsFloat
Short Description Gets the actual value of the parameter as a Float
Class Term
Extension OTX DiagCom extension
Group Parameter related terms
Exceptions TypeMismatchException
Checker Rules -
Standard Compliant Yes

OTL Syntax

FloatTerm DiagCom.GetParameterValueAsFloat(ParameterTerm parameter);

Description

The GetParameterValueAsFloat term accepts a ParameterTerm and returns the actual value of the parameter as a Float.

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
Float The actual value of the parameter.

Properties

Name Data Type Class Default Cardinality Description
Parameter Parameter Term - [1] The Parameter whose value will be returned as a Float.

OTL Examples

/// Local Declarations

DiagCom.ComChannel ComChannel1;
DiagCom.Result Result1;
DiagCom.Response Response1;
DiagCom.Parameter Parameter1;
Float Float1;

/// Flow

ComChannel1 = DiagCom.GetComChannel("LL_GatewUDS", "EV_GatewLear_006", false);
[#MetaData(RequestPdu), <#Data>22 02 86</#Data>]
DiagCom.ExecuteDiagService(DiagCom.CreateDiagServiceByName(ComChannel1, "DiagnServi_ReadDataByIdentMeasuValue"), {Param_RecorDataIdent = "Voltage terminal 30"}, {}, Result1, NULL, false, false);
Response1 = DiagCom.GetFirstResponse(Result1, );
Parameter1 = DiagCom.GetParameterByPath(Response1, {"Param_DataRecor", 0});
Float1 = DiagCom.GetParameterValueAsFloat(Parameter1);

See also

GetComChannel
CreateDiagServiceByName
CreateDiagServiceBySemantic
GetRequest
ExecuteDiagService
GetFirstResponse
GetAllResponses
GetParameterBySemantic
GetParameterByPath
GetParameterAsList
GetParameterValueAsBoolean
GetParameterValueAsString
GetParameterValueAsInteger
GetParameterValueAsByteField
GetParameterValueAsQuantity