Difference between revisions of "Extensions.DiagCom.GetComParameterValueAsByteField"
Jump to navigation
Jump to search
Line 9: | Line 9: | ||
== Description == | == Description == | ||
− | The '''GetComParameterValueAsByteField''' term | + | The '''GetComParameterValueAsByteField''' term will return the current value of a [[Core.DataTypes.ComplexDataType.ByteField|bytefield]] type communication parameter. If the communication parameter has not been previously modified by the [[Extensions.DiagCom.SetComParameter|SetComParameter]] action, the default parameter value will be returned. |
{{TermReturnValue| [[Core.DataTypes.ComplexDataType.ByteField|ByteField]] | The current value of a [[Core.DataTypes.ComplexDataType.ByteField|ByteField]] communication parameter.}} | {{TermReturnValue| [[Core.DataTypes.ComplexDataType.ByteField|ByteField]] | The current value of a [[Core.DataTypes.ComplexDataType.ByteField|ByteField]] communication parameter.}} |
Latest revision as of 12:24, 24 December 2019
Contents
Classification
Name | GetComParameterValueAsByteField |
Short Description | Gets the current value of a ByteField communication parameter |
Class | Term |
Extension | OTX DiagCom extension |
Group | ComParam related terms |
Exceptions | UnknownTargetException TypeMismatchException |
Checker Rules | - |
Standard Compliant | Yes |
OTL Syntax
ByteFieldTerm DiagCom.GetComParameterValueAsByteField(ComChannelTerm comChannel, StringTerm comParameterName);
Description
The GetComParameterValueAsByteField term will return the current value of a bytefield type communication parameter. If the communication parameter has not been previously modified by the SetComParameter action, the default parameter value will be returned.
Return Value
The Term returns the value, see table below.
In OTX, Terms are categorized according to its return data type!
Data Type | Description |
ByteField | The current value of a ByteField communication parameter. |
Properties
Name | Data Type | Class | Default | Cardinality | Description |
ComChannel | ComChannel | Term | - | [1] | The ComChannelTerm specifies the ComChannel which will be queried. |
ComParameterName | String | Term | - | [1] | The otx:StringTerm specifies the name of a communication parameter. |
OTL Examples
/// Local Declarations
DiagCom.ComChannel ComChannel1;
ByteField ByteField1;
/// Flow
ComChannel1 = DiagCom.GetComChannel("LL_CentrElectUDS", "EV_BCMCONTI_009", false);
DiagCom.ExecuteDiagService(DiagCom.CreateDiagServiceByName(ComChannel1, "DiagnServi_ReadDataByIdentActuaTestStatu"), {}, {}, NULL, NULL, false, false);
ByteField1 = DiagCom.GetComParameterValueAsByteField(ComChannel1, "CP_TesterPresentMessage");
See also
GetComChannel
CreateDiagServiceByName
ExecuteDiagService
GetComplexComParameter
SetComplexComParameter
GetComParameterValueAsBoolean
GetComParameterValueAsString
GetComParameterValueAsInteger
GetComParameterValueAsFloat
GetComParameterValueAsQuantity