Example Code

Sinc Interpolation Example

Code and Documents

Attachment

Overview

A simple implementation of a sinc interpolation algorithm.

Description

This VI implements a simple sinc interpolation algorithm, using Shannon's Interpolation Formula:

http://en.wikipedia.org/wiki/Whittaker%E2%80%93Shannon_interpolation_formula

Note: The LabVIEW VI "Resample Waveforms.vi" when using "FIR filter" interpolation also performs sinc interpolation, with better accuracy at the beginning and end of the resampled waveform.

Steps to Implement or Execute Code

Add Sinc Interpolation.vi to your project

Connect your waveform to interpolate and the new desired sample interval (dt)

Run VI.

Requirements

Software

LabVIEW 2014

Hardware

None.

Additional Images or Video

Sinc Interpolation_snip.png

Systems Engineer
SISU

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.

Comments
sonofwind
Member
Member
on

Dear Nathan, if I just want to use part of the sample to interpolate, say 10 samples from left ang right of the interpolation point, to reduce the computation time, how to modify your codes to do it? Your codes workes well for all the samples point. Thank you!

Contributors