Admin Production ni-theme
Current Publication

UnsymmetricTriangle

LabWindows/CVI

UnsymmetricTriangle

Advanced Analysis Library Only

AnalysisLibErrType UnsymmetricTriangle (ssize_t numberOfElements, double amplitude, double delay, double samplingInterval, double pulseWidth, double asymmetryCoefficient, double unsymmetricTrianglePattern[]);

Purpose

Generates an unsymmetric triangle array.

This function obtains the element of the output array using the following formula:

where

Parameters

Input
Name Type Description
numberOfElements ssize_t The number of elements to generate.
amplitude double Peak amplitude of the pattern.
delay double Shifts the peak of the pattern.
samplingInterval double The sampling interval, which must be positive.
pulseWidth double The width of the triangle pattern pulse, which must be positive.
asymmetryCoefficient double Is the projection of the line segment between the start and the peak divided by the pulseWidth, and must be between [0,1].
Output
Name Type Description
unsymmetricTrianglePattern double [] The generated unsymmetric triangle pattern.

Return Value

Name Type Description
status AnalysisLibErrType A value that specifies the type of error that occurred. Refer to analysis.h for definitions of these constants.

Additional Information

Library: Advanced Analysis Library

Include file: analysis.h

LabWindows/CVI compatibility: LabWindows/CVI 8.1 and later