Difference between revisions of "Extensions.DiagCom.GetParameterValueAsFloat"
Jump to navigation
Jump to search
Line 33: | Line 33: | ||
{ | { | ||
ParameterValueAsFloat = DiagCom.GetParameterValueAsFloat(Parameter1); | ParameterValueAsFloat = DiagCom.GetParameterValueAsFloat(Parameter1); | ||
+ | } | ||
+ | catch | ||
+ | { | ||
} | } | ||
</syntaxhighlight> | </syntaxhighlight> |
Revision as of 03:43, 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);
}
catch
{
}
See also
GetParameterValueAsBoolean
GetParameterValueAsString
GetParameterValueAsInteger
GetParameterValueAsByteField
GetParameterValueAsQuantity