Difference between revisions of "Extensions.Flash.CreateFlashJob"

From emotive
Jump to navigation Jump to search
(Created page with "Category:Flash == Classification == {{ClassificationActivity | CreateFlashJob | Create a new '''FlashJob''' for the specified '''FlashSession''' | Term | Flash|OTX F...")
 
Line 3: Line 3:
 
{{ClassificationActivity | CreateFlashJob | Create a new '''FlashJob''' for the specified '''FlashSession''' | [[Term]] | [[Flash|OTX Flash extension]] | [[Flash jobs related terms]] | - | - }}
 
{{ClassificationActivity | CreateFlashJob | Create a new '''FlashJob''' for the specified '''FlashSession''' | [[Term]] | [[Flash|OTX Flash extension]] | [[Flash jobs related terms]] | - | - }}
  
== Pseudo-Code Syntax ==
+
== OTL Syntax ==
 
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;">
 
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;">
FlashJob CreateFlashJob(ComChannel myComChannel, FlashSession flashSession);
+
FlashJobTerm = Flash.CreateFlashJob(ComChannelTerm, FlashSessionTerm);
 
</syntaxhighlight>
 
</syntaxhighlight>
  
Line 20: Line 20:
 
|}
 
|}
  
== Examples ==
+
== OTL Examples ==
 
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;">
 
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;">
ComChannel myComCannel = GetComChannel("LL_AirbaUDS", "", false);
+
DiagCom.ComChannel ComChannel1;
FlashJob result = CreateFlashJob(myComCannel, flashSession);
+
List<String> List1;
 +
Flash.FlashSession FlashSession1;
 +
Flash.FlashJob FlashJob1;
 +
 
 +
ComChannel1 = DiagCom.GetComChannel("DiagnosticsCan_ECU_1", null, false);
 +
List1 = Flash.GetListOfValidFlashSessions(@Directions:DOWNLOAD, ComChannel1, @Audiences:SUPPLIER);
 +
FlashSession1 = Flash.GetFlashSession(List1[0]);
 +
FlashJob1 = Flash.CreateFlashJob(ComChannel1, FlashSession1);
 
</syntaxhighlight>
 
</syntaxhighlight>
  

Revision as of 10:10, 6 February 2015

Classification

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

OTL Syntax

FlashJobTerm = Flash.CreateFlashJob(ComChannelTerm, FlashSessionTerm);

Description

The CreateFlashJob term create a new FlashJob for the specified FlashSession. 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 FlashSession.

Properties

Name Data Type Class Default Cardinality Description
ComChannel ComChannel Term - [0..1] Communication Channel.
Session FlashSession Term - [1] This element represents the FlashSession to be programmed by the FlashJob.

OTL Examples

DiagCom.ComChannel ComChannel1;
List<String> List1;
Flash.FlashSession FlashSession1;
Flash.FlashJob FlashJob1;

ComChannel1 = DiagCom.GetComChannel("DiagnosticsCan_ECU_1", null, false);
List1 = Flash.GetListOfValidFlashSessions(@Directions:DOWNLOAD, ComChannel1, @Audiences:SUPPLIER);
FlashSession1 = Flash.GetFlashSession(List1[0]);
FlashJob1 = Flash.CreateFlashJob(ComChannel1, FlashSession1);

See also

CreateFlashJobByName
CreateFlashJobBySemantic
GetComChannel