Difference between revisions of "Extensions.Flash.GetNumberOfBlocks"
Jump to navigation
Jump to search
(Created page with "Category:Flash == Classification == {{ClassificationActivity | GetNumberOfBlocks | Specifies the number of blocks in a flash session | Term | Flash|OTX Flash extensi...") |
|||
| Line 3: | Line 3: | ||
{{ClassificationActivity | GetNumberOfBlocks | Specifies the number of blocks in a flash session | [[Term]] | [[Flash|OTX Flash extension]] | [[Flash session related terms]] | - | - }} | {{ClassificationActivity | GetNumberOfBlocks | Specifies the number of blocks in a flash session | [[Term]] | [[Flash|OTX Flash extension]] | [[Flash session related terms]] | - | - }} | ||
| − | == | + | == OTL Syntax == |
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | <syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | ||
| − | + | IntegerTerm = Flash.GetNumberOfBlocks(FlashSessionTerm); | |
</syntaxhighlight> | </syntaxhighlight> | ||
| Line 19: | Line 19: | ||
|} | |} | ||
| − | == Examples == | + | == OTL Examples == |
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | <syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | ||
| − | Integer | + | DiagCom.ComChannel ComChannel1; |
| + | List<String> List1; | ||
| + | Flash.FlashSession FlashSession1; | ||
| + | Integer Integer1; | ||
| + | |||
| + | ComChannel1 = DiagCom.GetComChannel("DiagnosticsCan_ECU_1", null, false); | ||
| + | List1 = Flash.GetListOfValidFlashSessions(@Directions:DOWNLOAD, ComChannel1, @Audiences:SUPPLIER); | ||
| + | FlashSession1 = Flash.GetFlashSession(List1[0]); | ||
| + | Integer1 = Flash.GetNumberOfBlocks(FlashSession1); | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Revision as of 10:41, 6 February 2015
Contents
Classification
| Name | GetNumberOfBlocks |
| Short Description | Specifies the number of blocks in a flash session |
| Class | Term |
| Extension | OTX Flash extension |
| Group | Flash session related terms |
| Exceptions | - |
| Checker Rules | - |
| Standard Compliant | Yes |
OTL Syntax
IntegerTerm = Flash.GetNumberOfBlocks(FlashSessionTerm);Description
The GetNumberOfBlocks term specifies the number of blocks in a flash session. If no blocks are present, the return value is zero, otherwise a positive number will be.
Return Value
The Term returns the value, see table below.
![]()
In OTX, Terms are categorized according to its return data type!
| Data Type | Description |
| Integer | The number of blocks in a flash session. |
Properties
| Name | Data Type | Class | Default | Cardinality | Description |
| Session | FlashSession | Term | - | [1] | This element represent the FlashSession to be used. |
OTL Examples
DiagCom.ComChannel ComChannel1;
List<String> List1;
Flash.FlashSession FlashSession1;
Integer Integer1;
ComChannel1 = DiagCom.GetComChannel("DiagnosticsCan_ECU_1", null, false);
List1 = Flash.GetListOfValidFlashSessions(@Directions:DOWNLOAD, ComChannel1, @Audiences:SUPPLIER);
FlashSession1 = Flash.GetFlashSession(List1[0]);
Integer1 = Flash.GetNumberOfBlocks(FlashSession1);See also
GetListOfValidFlashSessions
GetFlashSession
GetFlashKey
GetSessionPriority
IsDownloadSession
GetSessionID