> ## 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 for every number of cycles.

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

* cycles: 10
* amplitude: 2
* offset: -1

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

## Interface

| Name | Kind | Type | Comment |
| - | :-: | - | - |
| cycles | I | unsigned | Number of cycles for a period Range: > 1 |
| 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 |

**Parent topic:**[Sources::N](https://developer.synopsys.com/docs/scade-one/scade-one-standard-libraries/libraries/sources/sources_n)
