Difference between revisions of "Extensions.Flash.CreateFlashJobByName"

From emotive
Jump to navigation Jump to search
 
(3 intermediate revisions by the same user not shown)
Line 5: Line 5:
 
== OTL Syntax ==
 
== OTL Syntax ==
 
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;">
 
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;">
FlashJobTerm = Flash.CreateFlashJobByName(ComChannelTerm, StringTerm, FlashSessionTerm);
+
FlashJobTerm Flash.CreateFlashJobByName(ComChannelTerm comChannel, StringTerm name, FlashSessionTerm session);
 
</syntaxhighlight>
 
</syntaxhighlight>
  
 
== Description ==
 
== Description ==
The '''CreateFlashJobByName''' term create a new '''FlashJob''' for the specified '''ComChannel'''. The '''FlashJob''' can subsequently be used for initiating an ECU reprogramming session. Optionally a [[Extensions.Flash.FlashSession|FlashSession]] can be specified which will be used by the '''FlashJob''' for reprogramming (alternatively the [[Extensions.Flash.SetFlashSession|SetFlashSession]] action can be used to assign a different [[Extensions.Flash.FlashSession|FlashSession]] to an already existing '''FlashJob''' object).
+
The '''CreateFlashJobByName''' term creates a new '''FlashJob''' for the specified '''ComChannel'''. The '''FlashJob''' can subsequently be used for initiating an ECU reprogramming session.  
  
 
{{TermReturnValue| [[Extensions.Flash.FlashJob|FlashJob]] | A new FlashJob for the specified ComChannel.}}
 
{{TermReturnValue| [[Extensions.Flash.FlashJob|FlashJob]] | A new FlashJob for the specified ComChannel.}}
Line 23: Line 23:
 
== OTL Examples ==
 
== OTL Examples ==
 
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;">
 
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;">
 +
/// Local Declarations
 +
 
DiagCom.ComChannel ComChannel1;
 
DiagCom.ComChannel ComChannel1;
 
Flash.FlashSession FlashSession1;
 
Flash.FlashSession FlashSession1;
Line 31: Line 33:
 
ComChannel1 = DiagCom.GetComChannel("SCHEINWERFER", NULL, false);
 
ComChannel1 = DiagCom.GetComChannel("SCHEINWERFER", NULL, false);
 
FlashSession1 = Flash.GetFlashSession("_7PP907357F_7520");
 
FlashSession1 = Flash.GetFlashSession("_7PP907357F_7520");
FlashJob1 = Flash.CreateFlashJobByName(ComChannel1, "Flash Jobs FlashJob_UDS", FlashSession1);
+
FlashJob1 = Flash.CreateFlashJobByName(ComChannel1, "FlashJobs_FlashJob_UDS", FlashSession1);
 
</syntaxhighlight>
 
</syntaxhighlight>
  

Latest revision as of 03:52, 5 November 2018

Classification

Name CreateFlashJobByName
Short Description Create a new FlashJob for the specified ComChannel
Class Term
Extension OTX Flash extension
Group Flash jobs related terms
Exceptions UnknownTargetException
Checker Rules -
Standard Compliant Yes

OTL Syntax

FlashJobTerm Flash.CreateFlashJobByName(ComChannelTerm comChannel, StringTerm name, FlashSessionTerm session);

Description

The CreateFlashJobByName term creates a new FlashJob for the specified ComChannel. The FlashJob can subsequently be used for initiating an ECU reprogramming session.

Return Value

The Term returns the value, see table below.

Icons Note.png In OTX, Terms are categorized according to its return data type!
Data Type Description
FlashJob A new FlashJob for the specified ComChannel.

Properties

Name Data Type Class Default Cardinality Description
ComChannel ComChannel Term - [1] This specifies the diag:ComChannel object to which the to-be-created FlashJob belongs to and will be executed on when the diag:ExecuteDiagService action is used
Name String Term - [1] Represents the name of the to-be-created FlashJob.
Session FlashSession Term - [0..1] This optional element represents the FlashSession to be programmed by the FlashJob.

OTL Examples

/// Local Declarations

DiagCom.ComChannel ComChannel1;
Flash.FlashSession FlashSession1;
Flash.FlashJob FlashJob1;

/// Flow

ComChannel1 = DiagCom.GetComChannel("SCHEINWERFER", NULL, false);
FlashSession1 = Flash.GetFlashSession("_7PP907357F_7520");
FlashJob1 = Flash.CreateFlashJobByName(ComChannel1, "FlashJobs_FlashJob_UDS", FlashSession1);

See also

CreateFlashJob
CreateFlashJobBySemantic
GetFlashSession
GetComChannel