Difference between revisions of "Extensions.DiagCom.GetParameterValueAsFloat"
Jump to navigation
Jump to search
Line 19: | Line 19: | ||
|} | |} | ||
− | == Examples == | + | == OTL Examples == |
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | <syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | ||
DiagCom.Request Request1; | DiagCom.Request Request1; |
Revision as of 03:42, 6 February 2015
Contents
Classification
Name | GetParameterValueAsFloat |
Short Description | 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);
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.
![]()
In OTX, Terms are categorized according to its return data type!
Data Type | Description |
Float | The actual value of the parameter as a Float.) |
Properties
Name | Data Type | Class | Default | Cardinality | Description |
Parameter | Parameter | Term | - | [1] | The parameter object. |
OTL Examples
DiagCom.Request Request1;
DiagCom.Parameter Parameter1;
Float ParameterValueAsFloat;
DiagCom.ComChannel ComChannel1;
ComChannel1 = DiagCom.GetComChannel("LL_AccesStartInterUDS", "", false);
Request1 = DiagCom.GetRequest(DiagCom.CreateDiagServiceByName(ComChannel1, "DiagnServi_ReadDataByIdentActuaTestStatu"));
Parameter1 = DiagCom.GetParameterByPath(Request1, {"Param_RequeServiId"});
try
{
ParameterValueAsFloat = DiagCom.GetParameterValueAsFloat(Parameter1);
}
See also
GetParameterValueAsBoolean
GetParameterValueAsString
GetParameterValueAsInteger
GetParameterValueAsByteField
GetParameterValueAsQuantity