Sinc
Advanced Analysis Library Only
AnalysisLibErrType Sinc (ssize_t numberOfElements, double amplitude, double delay, double dt, double sincPattern[]);
Purpose
Generates an array that contains a sinc pattern. Sinc generates the output array x according to the following formula:
xi = amplitude × sinc (i × dt – delay)
where
Parameters
Input | ||
Name | Type | Description |
numberOfElements | ssize_t | Number of elements to generate in the sinc pattern. |
amplitude | double | Amplitude of the resulting sinc pattern. Default Value: 1.0. |
delay | double | Shifts the peak value of the sinc pattern to the index. index = delay/dt Default Value: 0.0. |
dt | double | Sampling interval; inversely proportional to the width of the main lobe of the sinc pattern that Sinc generates. The recommended range is 0.0 < dt ≤ 1.0. |
Output | ||
Name | Type | Description |
sincPattern | double [] | The generated sinc 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 3.1 and later