> ## Documentation Index
> Fetch the complete documentation index at: https://developer.synopsys.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Triangular

The flow varies linearly from 0 to 1 and then back to 0 at every period.

The figure shows the output flow for a triangular waveform with the following input:

* period: 1
* ts (timesample): 0.1
* amplitude: 2
* offset: -1

![](https://mintcdn.com/synopsys-00a47cbc/Srh1_f--TdKCLyqD/docs/scade-one/scade-one-standard-libraries/2025-r1/libraries/images/t__triangular_00.svg?fit=max\&auto=format\&n=Srh1_f--TdKCLyqD\&q=85\&s=bacfce9981cbd9a1aa5ab6493e821fe7)

## Interface

| Name | Kind | Type | Comment |
| - | :-: | - | - |
| period | I | float | Value of the period Range: >0 |
| ts | I | float | Time sample during the period Range: >0 |
| amplitude | I | float | Gain to be applied to the output flow (default 1) |
| offset | I | float | Offset to be added to the output flow (default 0) |
| flow | O | float | Output flow |

**Constraint**: The ratio period / ts must be greater than 2.

**Parent topic:**[Sources::T](https://developer.synopsys.com/docs/scade-one/scade-one-standard-libraries/2025-r1/libraries/sources/sources_t)
