Classification
OTL Syntax
/// Local Declarations
Integer IntegerVariable;
/// Flow
IntegerVariable = Flash.GetNumberOfSegments(FlashSessionTerm, NumericTerm);
Description
The GetNumberOfSegments term shall return the number of data segments in a block. If no segments exist, the return value shall be zero, otherwise it shall be a positive number.
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 data segments in a block.
|
Properties
Name |
Data Type |
Class |
Default |
Cardinality |
Description
|
Session |
FlashSession |
Term |
- |
[1] |
This element represents the FlashSession in which the block of interest resides.
|
Block |
Numeric |
Term |
- |
[1] |
This element provides the number of the block from which the number of data segments shall be retrieved. Float values shall be truncated.
|
OTL Examples
/// Local Declarations
DiagCom.ComChannel ComChannel1;
Flash.FlashSession FlashSession1;
List<String> List1;
Integer Integer1;
/// Flow
ComChannel1 = DiagCom.GetComChannel("SCHEINWERFER", "SCHEINWERFER_1", false);
List1 = Flash.GetListOfValidFlashSessions(ComChannel1, @Audience:SUPPLIER, @Directions:DOWNLOAD);
FlashSession1 = Flash.GetFlashSession(List1[2]);
Integer1 = Flash.GetNumberOfSegments(FlashSession1, 1);
See also
GetNumberOfOwnIdents
GetNumberOfSecurities
GetLogicalBlockID
GetCompressionEncryption
GetType
BlockIsValidForAudience
GetListOfValidFlashSessions
GetFlashSession
GetComChannel