Last Modified: March 15, 2017

Generates a signal containing a triangle pattern.

Amplitude of the pattern.

**Default: **1

Shifts the pattern in the time axis.

**Default: **0

Asymmetric character of the pattern. This input is the projection of the line segment between the start and the peak divided by the width of the pattern.

Algorithm Definition

**Default: **0.5

Width of the pattern. This input must be greater than zero.

**Default: **10

Error conditions that occur before this node runs.

The node responds to this input according to standard error behavior.

Standard Error Behavior

Many nodes provide an **error in** input and an **error out** output so that the node can respond to and communicate errors that occur while code is running. The value of **error in** specifies whether an error occurred before the node runs. Most nodes respond to values of **error in** in a standard, predictable way.

**Default: **No error

Sampling interval. This input must be greater than zero. If this input is less than or equal to zero, this node sets the output pattern to an empty array and returns an error.

**Default: **0.1

Number of samples in the pattern. This input must be greater than or equal to 0. If this input is less than zero, the node sets the output pattern to an empty array and returns an error.

**Default: **128

Timestamp of the output signal. If this input is unwired, this node uses the current time as the timestamp of the output signal.

This input is available only if you configure this node to return a waveform.

Output triangle pattern.

This output can return a waveform or an array of double-precision, floating-point numbers.

Error information.

The node produces this output according to standard error behavior.

Standard Error Behavior

**error in** input and an **error out** output so that the node can respond to and communicate errors that occur while code is running. The value of **error in** specifies whether an error occurred before the node runs. Most nodes respond to values of **error in** in a standard, predictable way.

If the sequence *Y* represents **triangle pattern**, this node generates the pattern according to the following equations:

${y}_{i}=\{\begin{array}{cc}\frac{a*{x}_{i}}{w*k}& 0\le {x}_{i}\le w*k\\ \frac{a*(w-{x}_{i})}{w*(1-k)}& w*k<{x}_{i}<w\\ 0& \text{otherwise}\end{array}$

$\text{for}\text{\hspace{0.17em}}i=0,\text{\hspace{0.17em}}1,\text{\hspace{0.17em}}2,\text{\hspace{0.17em}}\mathrm{...},\text{\hspace{0.17em}}N-1,\text{\hspace{0.17em}}0\le k\le 1$

where

*w*is**width***k*is**asymmetry***a*is**amplitude**-
${x}_{i}=\mathrm{\Delta}t*i-d$, where
*d*is**delay**

**Where This Node Can Run: **

Desktop OS: Windows

FPGA: This product does not support FPGA devices