OTX Reference  
OpenTestSystem.Otx.Core.Actions.ShiftRight Class Reference

Shifts ByteField bits right. More...

Inheritance diagram for OpenTestSystem.Otx.Core.Actions.ShiftRight:
Inheritance graph

Public Attributes

NumericTerm positions
 Cardinality [1]
The number of positions to shift (non-negative). Decimal values will be truncated. More...
 
- Public Attributes inherited from OpenTestSystem.Otx.Core.Actions.ByteFieldModifier
ByteFieldVariable byteField
 Cardinality [1]
Identifies a ByteField variable which shall be modified. More...
 
- Public Attributes inherited from OpenTestSystem.Otx.Core.Actions.ActionRealisation
OtxLink validFor
 Cardinality [0..1]
Validity of ActionRealisation. More...
 

Detailed Description

Shifts ByteField bits right.

The ShiftRight-activity shifts the bits in a ByteField to the right. The most significant bits are padded with zeroes. The size of the ByteField will not change.

Note
The activity has no effect on empty ByteFields.
Exceptions
Exceptions.OutOfBoundsExceptionIt is thrown if the number of positions to shift is a negative number.
Syntax
ShiftRight(ByteFieldVariable, IntegerTerm);
Examples
// Local Declarations
Integer Positions1 = 0;
ByteField ByteField1 = &00FF;
// Flow
ShiftRight(ByteField1, Positions1);

Member Data Documentation

◆ positions

NumericTerm OpenTestSystem.Otx.Core.Actions.ShiftRight.positions

Cardinality [1]
The number of positions to shift (non-negative). Decimal values will be truncated.