Jump to content

Windowing in Extract Single Tone Information.vi


Recommended Posts

Does anyone have any ideas in converting the built-in Labview function "Extract Single Tone Information.vi" to use Flat Top windowing instead of the default Hanning windowing? I need the same functionality this built in VI provides only I need Amplitude and Frequency (after advanced search options applied) to reflect Flat Top windowing. For context I have attached my Signal input VI which uses a DAQmx task.

Link to comment

It seems you can't modify VI's in vi.lib anymore.. ARGGGHH!! Why does NI have to make everything more difficult with every new release?

Anyway, Open up Extract Single Tone Information 1 Chan.vi, manually build an exact copy of it using Extract Single Tone Information from Hann Spectrum.vi.

Make a copy of ma_FFT with Hanning.vi but make the WINDOW typedef constant into a Control and change from Hanning to flat top.

Stick this modified VI into the first VI and you should be done.

These are the mechanics of it, but you can only tell with actual data whether changing the windowing is going to give you "correct" results.

FYI, this VI was once available as a download from the NI website and could be modified at will. Maybe you can look there again to find an older version and that might be quicker to modify.

Neville.

Link to comment

QUOTE (Neville D @ Mar 17 2009, 12:56 PM)

It seems you can't modify VI's in vi.lib anymore.. ARGGGHH!! Why does NI have to make everything more difficult with every new release?

Anyway, Open up Extract Single Tone Information 1 Chan.vi, manually build an exact copy of it using Extract Single Tone Information from Hann Spectrum.vi.

Make a copy of ma_FFT with Hanning.vi but make the WINDOW typedef constant into a Control and change from Hanning to flat top.

Stick this modified VI into the first VI and you should be done.

These are the mechanics of it, but you can only tell with actual data whether changing the windowing is going to give you "correct" results.

FYI, this VI was once available as a download from the NI website and could be modified at will. Maybe you can look there again to find an older version and that might be quicker to modify.

Neville.

Neville,

I am a Labview newbie and not sure what you mean by "but make the WINDOW typedef constant into a Control and change from Hanning to flat top." Could you please elaborate on this?

Link to comment

QUOTE (aaronb @ Mar 18 2009, 08:46 AM)

Ignore earlier advice. Changing the window constant only gives you a choice of Hanning or No windowing.

Instead: replace the Hanning Window VI with the Flat Top Window.vi like shown in the Blue Sequence below:

http://lavag.org/old_files/monthly_03_2009/post-2680-1237402388.jpg' target="_blank">post-2680-1237402388.jpg?width=400

I notice you have 7.1.1. That SHOULD allow you to save the Extract Single Tone (or any other VI from vi.lib) separately to a new VI. Do this before making any changes and save to a different location so that your changes don't get erased with the next update of LV!

I have 8.6 so my changes are a lot more work, plus you won't be able to open the VI anyway..

N.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.