Difference between revisions of "Extensions.Flash.SetFlashSession"
Jump to navigation
Jump to search
(Created page with "Category:Flash == Classification == {{ClassificationActivity | SetFlashSession | Set the flash session to be programmed | Action| OTX Flash extension | Fla...") |
|||
| Line 3: | Line 3: | ||
{{ClassificationActivity | SetFlashSession | Set the flash session to be programmed | [[Action]]| [[Flash|OTX Flash extension]] | [[Flash related actions]] | - | - }} | {{ClassificationActivity | SetFlashSession | Set the flash session to be programmed | [[Action]]| [[Flash|OTX Flash extension]] | [[Flash related actions]] | - | - }} | ||
| − | == | + | == OTL Syntax == |
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | <syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | ||
| − | SetFlashSession( | + | Flash.SetFlashSession(FlashJobTerm, FlashSessionTerm); |
</syntaxhighlight> | </syntaxhighlight> | ||
| Line 18: | Line 18: | ||
|} | |} | ||
| − | == Examples == | + | == OTL Examples == |
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | <syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | ||
| − | SetFlashSession( | + | 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.CreateFlashJobByName(ComChannel1, "VariantCoding_Read", FlashSession1); | ||
| + | Flash.SetFlashSession(FlashJob1, FlashSession1); | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Revision as of 10:08, 6 February 2015
Classification
| Name | SetFlashSession |
| Short Description | Set the flash session to be programmed |
| Class | Action |
| Extension | OTX Flash extension |
| Group | Flash related actions |
| Exceptions | - |
| Checker Rules | - |
| Standard Compliant | Yes |
OTL Syntax
Flash.SetFlashSession(FlashJobTerm, FlashSessionTerm);Description
This action shall set the flash session to be programmed when the FlashJob is executed. Only one session can be set at a time. If this action is used multiple times, the later call shall overwrite the session set by a previous call.
Properties
| Name | Data Type | Class | Default | Cardinality | Description |
| FlashJob | FlashJob | Term | - | [1] | Represents the FlashJob where the session shall be set. |
| FlashSession | FlashSession | Term | - | [1] | 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.CreateFlashJobByName(ComChannel1, "VariantCoding_Read", FlashSession1);
Flash.SetFlashSession(FlashJob1, FlashSession1);