Triangle Pattern VI

Generates an array that contains a triangle pattern.


icon

Inputs/Outputs

  • cdbl.png width (s)

    width (s) is the width of the Triangle Pattern. width (s) must be greater than zero. The default is 10.

  • ci32.png samples

    samples is the number of samples of the Triangle Pattern. If samples is less than 1, the VI sets Triangle Pattern to an empty array and returns an error. The default is 128.

  • cdbl.png amplitude

    amplitude is the amplitude of the Triangle Pattern. The default is 1.0.

  • cdbl.png delay (s)

    delay (s) shifts the starting point of the Triangle Pattern in the time axis. The default is 0.

  • cdbl.png delta t (s)

    delta t (s) is the sampling interval. delta t (s) must be greater than zero. If delta t (s) is less than or equal to zero, the VI sets Triangle Pattern to an empty array and returns an error. The default is 0.1.

  • cdbl.png asymmetry

    asymmetry specifies the asymmetric character of the Triangle Pattern. The asymmetry is the projection of the line segment between the start and the peak divided by the width. The default is 0.5.

  • i1ddbl.png Triangle Pattern

    Triangle Pattern returns an array that contains the triangle pattern of samples.

  • ii32.png error

    error returns any error or warning from the VI. You can wire error to the Error Cluster From Error Code VI to convert the error code or warning into an error cluster.

  • If the sequence Y represents Triangle Pattern, the Triangle Pattern VI generates the pattern according to the following equations.

    for i = 0,1,2, …,N–1, 0 ≤ k ≤ 1,

    where w is the width (s), k is the asymmetry, a is the amplitude, N is the samples, and

    Xi = Δt*i-d

    where d is the delay (s).

    The following illustration shows the definition of asymmetry. D is the projection of B on AC.