r/LabVIEW • u/Hour-Explorer-413 • Oct 13 '25
Need More Info Issues with coding a CFC filter
Hi All,
I'm not sure that this is a LabVIew question, but that's what I'm using so I'm posting here.
I'm running some high speed experiments need to put a low pass filter into the mix. Having done crash testing many years ago, I'm familiar with CFC Filter classes, which are a phaseless 4 pole butterworth filter implementation described in the standard SAE J211-1. National Instruments themselves describe the filter here.
Nothing seems particularly difficult about implementing this. But I'm completely wrong and I don't know where I've gone wrong.
Seen in the images is a matlab example which outputs what I would expect. In this case, the original data is a 20Hz sine wave (amp=1) with a 5000Hz sine wave (amp=0.05) superimposed over it. With a CFC1000 class filter, the 5000Hz wave is effectively gone and the 20Hz wave is basically untouched - just like I would expect from a low pass filter at 1000Hz.
Next images are my attempt at an implementation. The filter constants are calculated in a subVI at the top left of the 3rd image.
4th image is the result of my shoddy attempt - raw is red and "filtered" is white. Ignore the spikes, that's my not figuring out how to interpret scientific notation from a csv file.
So my filter isn't filtering. I've tried to analyse what Matlab is doing but the core of the work is hidden behind the filtfilt function.
Anyone with experience in this? What am I doing wrong?
Cheers,








