Difference between revisions of "Extensions.DiagCom.GetParameterValueAsFloat"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
{{DISPLAYTITLE:OTX '''GetParameterValueAsFloat'''}}[[Category:DiagCom]] | {{DISPLAYTITLE:OTX '''GetParameterValueAsFloat'''}}[[Category:DiagCom]] | ||
== Classification == | == Classification == | ||
− | {{ClassificationActivity | GetParameterValueAsFloat | The actual value of the parameter as a [[Core.DataTypes.SimpleDataType.Float|Float]] | [[Term]] | [[Extensions.DiagCom|OTX DiagCom extension]] | [[Parameter related terms]] | [[TypeMismatchException]] | - }} | + | {{ClassificationActivity | GetParameterValueAsFloat | The actual value of the parameter as a [[Core.DataTypes.SimpleDataType.Float|Float]] | [[Term]] | [[Extensions.DiagCom|OTX DiagCom extension]] | [[Parameter related terms]] | [[Core.Actions.Throw.Exception.TypeMismatchException|TypeMismatchException]] | - }} |
== OTL Syntax == | == OTL Syntax == |
Revision as of 08:13, 16 February 2016
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