The Line Segment logic block provides linear scaling and biasing of an input value using one or more line segments where two points define a single line segment.
The Line Segment block reliability values are Reliable or Math Error. The Present Value retains its previous value on Math Error. The block remains reliable if the input is not reliable (ignores unreliability of the input).
You must open the Details view of this block to configure its Input Points and Output Points. See Configuring the Line Segment Block in the Configuring a System section.
The following table describes the inputs and outputs of the Line Segment logic block.
Name |
Data Type |
Exposed for Connection by Default |
Description |
Default Value |
---|---|---|---|---|
Inputs |
||||
Clamp First |
Boolean |
No |
Indicates the behavior when the Input is less than the first value in the Input Points array. |
True |
Clamp Last |
Boolean |
No |
Indicates the behavior when the Input is greater than the last value in the Input Points array. |
True |
Input |
Float |
Yes |
Indicates the signal that is transferred to the Present Value based on the line segment that the input falls within. |
0.0 |
Outputs |
||||
Present Value 1 |
Float |
Yes |
Indicates the result of the linear scaling and biasing performed by the block. |
0.0 |
Properties |
||||
Input Points |
Float Array |
N/A |
Provides an array of values that contains the X values for the break points of the linearization. |
0, 100 Number of Segments plus 1 |
Output Points |
Float Array |
N/A |
Provides an array of values that contains the Y values for the break points of the linearization. |
0, 100 Number of Segments plus 1 |