Difference between revisions of "Extensions.DiagCom.SetParameterValue"
Jump to navigation
Jump to search
(Created page with "Category:DiagCom == Classification == {{ClassificationActivity | SetParameterValue | Sets the value of a request parameter | Action | OTX DiagCom extension...") |
|||
Line 22: | Line 22: | ||
ComChannel myComCannel = GetComChannel("LL_AirbaUDS", "", false); | ComChannel myComCannel = GetComChannel("LL_AirbaUDS", "", false); | ||
DiagService myDiagService = CreateDiagServiceByName(myComChannel, "DiagnServi_ReadDataByIdentECUIdent"); | DiagService myDiagService = CreateDiagServiceByName(myComChannel, "DiagnServi_ReadDataByIdentECUIdent"); | ||
+ | Request req = GetRequest(myDiagService); | ||
+ | Parameter param = GetParameterByPath(req, "Param_RequeServiId"); | ||
− | + | SetParameterValue(param, value); | |
</syntaxhighlight> | </syntaxhighlight> | ||
Revision as of 07:38, 15 July 2014
Classification
Name | SetParameterValue |
Short Description | Sets the value of a request parameter |
Class | Action |
Extension | OTX DiagCom extension |
Group | DiagService related actions |
Exceptions | OutOfBoundsException TypeMismatchException |
Checker Rules | - |
Standard Compliant | Yes |
Pseudo-Code Syntax
SetParameterValue(Parameter param, Variable value);
Description
The OTX SetParameterValue activity sets the value of a request parameter "manually" to a specific value, see ExecuteDiagService.
Properties
Name | Data Type | Class | Default | Cardinality | Description |
Parameter | Parameter | Term | - | [1] | Request parameter whose value is to be set. |
Value | - | Term | - | [1] | Value of the corresponding type that is to be placed. |
Examples
ComChannel myComCannel = GetComChannel("LL_AirbaUDS", "", false);
DiagService myDiagService = CreateDiagServiceByName(myComChannel, "DiagnServi_ReadDataByIdentECUIdent");
Request req = GetRequest(myDiagService);
Parameter param = GetParameterByPath(req, "Param_RequeServiId");
SetParameterValue(param, value);
See also
GetComChannel
CreateDiagServiceByName
SetParameterValueBySemantic