02-23-2021 04:00 AM - edited 02-23-2021 04:49 AM
Hi everyone,
First of all: these are implausible values for me, because I do not really understand the resampling function (actually with the 1D array interpolation contained there).
Attached is a VI with data that initially seems to be resampled and then going down to around zero.
Can anyone explain to me?
Many Thanks
Solved! Go to Solution.
02-23-2021 04:29 AM - edited 02-23-2021 04:29 AM
Hallo Tanchris,
dir ist bewußt, dass dies ein englischsprachiges Forum ist?
Wenn du auf Deutsch kommunizieren willst, solltest du im www.labviewforum.de schreiben…
Kannst du dein VI für LV2017 konvertieren und anhängen?
02-23-2021 04:46 AM - edited 02-23-2021 05:07 AM
Hello GerdW,
attached the older version.
Regards
TanChris
02-23-2021 05:02 AM
02-23-2021 05:09 AM
Sorry, I´ve saved it to times and load the wrong file...Now it should be the correct one...
02-23-2021 05:25 AM - edited 02-23-2021 05:29 AM
Hi Tanchris,
set the interpolation mode to "FIR"…
Possible explanation:
Your signal contains two voltage levels, and when decimating you may select the upper or the lower level. You see the result in the "linear" or "spline" mode. With FIR you get some filtering added, which "smears" (aka averages) the two signal levels…
02-23-2021 05:30 AM
Thanks GerdW...that seems to work.
Could you stil explain me, why linear-interpolation not works? Maybe then I also understand the working of 1D-Interpolation??!!
02-23-2021 06:07 AM - edited 02-23-2021 06:11 AM
[Edit: that's twice this morning I started a reply, went away for a bit, and by the time I finished and posted, a solution had already been given. I'll leave my post below in case any of the verbage helps with understanding.]
You're seeing an artifact caused by having a sample rate that's just about exactly an integer divisor of your waveform's frequency. The same kind of thing would happen if you had a 10 kHz sine wave that you sampled at 10 Hz -- you'd measure a constant value because every sample would be taken at the same phase point of the regular waveform.
There's an input for 'interpolation mode' that you should experiment with. When left unwired like you did, the default value is 'linear'. That means it'll do a linear interpolation between the 2 neighboring points in the input data to calculate a resampled value at the target time.
I suspect you may want to specify 'FIR filter' mode. Odds are that the default FIR filter specifications will be ok.
-Kevin P