OTX Reference  
OpenTestSystem.Otx.Extensions.DiagCom.Actions.SetParameterValue Class Reference

Sets a Request-Parameter More...

Inheritance diagram for OpenTestSystem.Otx.Extensions.DiagCom.Actions.SetParameterValue:
Inheritance graph

Public Attributes

ParameterTerm parameter
 Parameter object which be returned as a list of included parameter handles. More...
 
Term value
 Specifies the value that should be set to the Parameter. Allowed input types are simple types, List, Map and Quantity. More...
 
- Public Attributes inherited from OpenTestSystem.Otx.Core.Actions.ActionRealisation
OtxLink validFor
 Validity of ActionRealisation. More...
 

Detailed Description

Sets a Request-Parameter

The SetParameterValue activity sets a specific value to a Parameter element. The value to be set is to be provided as a simple type, a List, Map or Quantity.

Exceptions
Core.Exceptions.OutOfBoundsExceptionIt is thrown if the conversion cannot be made because the OTX value exceeds the limits of the target data type of a parameter of the vehicle communication component.
If the underlying system cannot set the parameter value, for example, because the parameter is a ResponseParameter or ConstantParameter.
Core.Exceptions.TypeMismatchExceptionIt is thrown if the data type of the OTX value to be set does not match the parameter vehicle communication component.For instance, it is thrown if a String variable gets mapped onto a parameter that is of type Integer.
Syntax
DiagCom.SetParameterValue(ParameterTerm parameter, Term value);
Term value
Specifies the value that should be set to the Parameter. Allowed input types are simple types,...
Definition: DiagCom.cs:1823
ParameterTerm parameter
Parameter object which be returned as a list of included parameter handles.
Definition: DiagCom.cs:1813
Examples
// Local Declarations
DiagCom.Request Request1;
DiagCom.Parameter Parameter1;
// Flow
Request1 = DiagCom.GetRequest(DiagCom.CreateDiagServiceByName(DiagCom.GetComChannel("LL_GatewUDS", "", false), "SinglJob_PostDataSet"));
Parameter1 = DiagCom.GetParameterByPath(Request1, {"IPA_Refer"});
DiagCom.SetParameterValue(Parameter1, &FFFF);

Member Data Documentation

◆ parameter

ParameterTerm OpenTestSystem.Otx.Extensions.DiagCom.Actions.SetParameterValue.parameter

Parameter object which be returned as a list of included parameter handles.

◆ value

Term OpenTestSystem.Otx.Extensions.DiagCom.Actions.SetParameterValue.value

Specifies the value that should be set to the Parameter. Allowed input types are simple types, List, Map and Quantity.