Extensions.Job.AddEnvDataByDtc

From emotive
Revision as of 08:06, 18 October 2018 by Hb (talk | contribs)
Jump to navigation Jump to search

Classification

Name AddEnvDataByDtc
Short Description Adds an environment data parameter structure to the response structure
Class Action
Extension OTX Job extension
Group Job related actions
Exceptions InvalidParameterizationException
Checker Rules -
Standard Compliant Yes

OTL Syntax

Job.AddEnvDataByDtc(ParameterContainerTerm, NumericTerm);

Description

The AddEnvDataByDtc is used to add an environment data parameter structure to the response structure according to the value of a DTC.

Properties

Name Data Type Class Default Cardinality Description
ParameterContainer ParameterContainer Term - [1] The parameter where new element(s) shall be added.
Dtc Numeric Term - [1] The value of the DTC for which environment data structures shall be added. Float values shall be truncated.

OTL Examples

DiagCom.ComChannel ComChannel1;
DiagCom.DiagService DiagService1;
DiagCom.Result Result1;
DiagCom.Response Response1;

/// Flow

ComChannel1 = DiagCom.GetComChannel("LL_GatewUDS", "EV_GatewLear_006", false);
DiagService1 = DiagCom.CreateDiagServiceByName(ComChannel1, "DiagnServi_ReadDTCInforReporDTCExtenDataRecorByDTCNumbe");
[#MetaData(RequestPdu), <#Data>19 06 00 00 0D 01</#Data>]
DiagCom.ExecuteDiagService(DiagService1, {Param_DTCMaskRecorGroupOfDTC = 13, Param_DTCExtenDataRecorNumbe = "Standard DTC Information"}, {}, Result1, NULL, false, false);
Response1 = DiagCom.GetFirstResponse(Result1);
Job.AddEnvDataByDtc(Response1, 4);

See also

SendFinalResult
SendIntermediateResult
SetJobInfo
SetProgressInfo
AddElement
AddBranchByName
AddBranchByIndex
AddBranchByValue
GetComChannel
CreateDiagServiceByName
ExecuteDiagService
GetFirstResponse
GetRequest