OTX Reference  
OpenTestSystem.Otx.Extensions.DiagComPlus.Actions.SetRequestParameters Class Reference

Assigns OTX terms to request parameters with the so-called Inline-Mapping. More...

Inheritance diagram for OpenTestSystem.Otx.Extensions.DiagComPlus.Actions.SetRequestParameters:
Inheritance graph

Public Attributes

DiagServiceVariable diagService
 Cardinality [1]
The DiagService on which request parameters will be set. More...
 
RequestParameters requestParameters
 Cardinality [1]
Lists all request parameters defined for this service. They can be set statically or dynamically via variables. More...
 
- Public Attributes inherited from OpenTestSystem.Otx.Core.Actions.ActionRealisation
OtxLink validFor
 Cardinality [0..1]
Validity of ActionRealisation. More...
 

Detailed Description

Assigns OTX terms to request parameters with the so-called Inline-Mapping.

The SetRequestParameters action allows the assignment of OTX terms to request parameters of a DiagService. This is the modular version of ExecuteDiagService's inline-mapping for request parameters, meaning the user can performing request parameters mapping for a diagService separately without the using ExecuteDiagService.

Exceptions
DiagCom.Exceptions.UnknownTargetExceptionIf no request parameter with the specified name in any of the parameter mappings exists.
Core.Exceptions.OutOfBoundsExceptionIf a conversion cannot be made because an OTX value exceeds the limits of the target data type of a request parameter of the vehicle communication component.
Core.Exceptions.TypeMismatchExceptionIf an invalid OTX data type is mapped to a request parameter. For instance it is thrown if a String variable gets mapped onto a request parameter that is of type Integer.
Checker rules
DiagCom.CheckerRule.DiagCom_Chk103 - Request Parameter Path does not exist in assigned diagService
DiagCom.CheckerRule.DiagCom_Chk200 - The required request parameter in ExecuteDiagService can not be determined


Syntax
DiagComPlus.SetRequestParameters(DiagServiceVariable diagService, { RequestParameter[] requestParameters });
Examples
// Local Declarations
[#DiagMetaData(comChannelGroupName = "SFD_ECUs")]
DiagCom.ComChannel ComChannel1;
[#DiagMetaData(ecuVariantGroupName = "LL_SteerAssisUDS_J1992", diagServiceName = "Combined_IdentificationsGlobal_Read")]
DiagCom.DiagService DiagService1;
// Flow
ComChannel1 = DiagCom.GetComChannel("LL_RearAxleSteerUDS", NULL, false);
DiagService1 = DiagCom.CreateDiagServiceByName(ComChannel1, "Combined_IdentificationsGlobal_Read");
DiagComPlus.SetRequestParameters(DiagService1, {EOPDUF_EOPDIDsIdentGlobaReadRDBIRQ[0].RecordDataIdentifier = "System Identification"});

Member Data Documentation

◆ diagService

DiagServiceVariable OpenTestSystem.Otx.Extensions.DiagComPlus.Actions.SetRequestParameters.diagService

Cardinality [1]
The DiagService on which request parameters will be set.

◆ requestParameters

RequestParameters OpenTestSystem.Otx.Extensions.DiagComPlus.Actions.SetRequestParameters.requestParameters

Cardinality [1]
Lists all request parameters defined for this service. They can be set statically or dynamically via variables.

OpenTestSystem.Otx.Extensions.DiagComPlus.Actions.SetRequestParameters.requestParameters
RequestParameters requestParameters
Cardinality [1] Lists all request parameters defined for this service. They can be set statically or ...
Definition: DiagComPlus.cs:817
OpenTestSystem.Otx.Extensions.DiagComPlus.Actions.SetRequestParameters.diagService
DiagServiceVariable diagService
Cardinality [1] The DiagService on which request parameters will be set.
Definition: DiagComPlus.cs:807