Turn on suggestions

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page

Tanchris

Member

02-23-2021 04:00 AM - edited 02-23-2021 04:49 AM

Options

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report to a Moderator

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.

GerdW

Knight of NI

02-23-2021 04:29 AM - edited 02-23-2021 04:29 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report to a Moderator

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?

Best regards,

GerdW

using LV2011SP1 + LV2017 (+LV2020 sometimes) on Win10+cRIO

GerdW

using LV2011SP1 + LV2017 (+LV2020 sometimes) on Win10+cRIO

02-23-2021 04:46 AM - edited 02-23-2021 05:07 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report to a Moderator

Hello GerdW,

attached the older version.

Regards

TanChris

GerdW

Knight of NI

02-23-2021 05:02 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report to a Moderator

Hi Tanchris,

your VI still is in LV2018, just renaming the VI doesn't help!

(File->Save for previous…)

Best regards,

GerdW

using LV2011SP1 + LV2017 (+LV2020 sometimes) on Win10+cRIO

GerdW

using LV2011SP1 + LV2017 (+LV2020 sometimes) on Win10+cRIO

02-23-2021 05:09 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report to a Moderator

Sorry, I´ve saved it to times and load the wrong file...Now it should be the correct one...

Solution

Accepted by topic author Tanchris

GerdW

Knight of NI

02-23-2021 05:25 AM - edited 02-23-2021 05:29 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report to a Moderator

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…

Best regards,

GerdW

using LV2011SP1 + LV2017 (+LV2020 sometimes) on Win10+cRIO

GerdW

using LV2011SP1 + LV2017 (+LV2020 sometimes) on Win10+cRIO

02-23-2021 05:30 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report to a Moderator

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??!!

Kevin_Price

Proven Zealot

02-23-2021 06:07 AM - edited 02-23-2021 06:11 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report to a Moderator

[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