Author Topic: FFT Software  (Read 2351 times)

0 Members and 1 Guest are viewing this topic.

Offline yramgu

  • Contributor
  • Posts: 44
  • Country: fr
FFT Software
« on: May 09, 2015, 05:34:16 pm »
Hi everyone,

I’m opening this topic to share a piece of PC software I wrote recently: an FFT tracer.

I designed it originally to help myself at work, where I wanted to analyze the frequency content of the output signal of an accelerometer. I first began to look for a simple (that part is important) software on the internet but couldn’t find anything I deemed suitable (either too complex/ not adapted to my needs) so I decided to design my own. I started by looking for a simple C FFT library and stumbled upon KISS FFT, which looked nice. I developed my own code under codeblocks and was doing all the tracing “manually” under Excel. When I got to a working code I decided to develop an interface to it, under Visual C++. I understand it may not be the best option, but I’m not a professional programmer so I didn’t want to spend too much time on it.

I could also have developed under linux but I don’t like Linux  >:D

Anyway as this is my own personal work (I developed it entirely at home), I decided I would share, may it be useful for somebody else.

Here are two links:

1 - The software : https://mega.co.nz/#!Ocl1kTLT!UWJPnSbFlhzuKuqJxD2BpKcpZ5hGxOR6kV5ZEzV6C1Q
2 - The english "manual", with screenshots and description of the software : https://mega.co.nz/#!6VcgHJTT!RGGWD4s1kuatzBRojYJt6ERFU5n0Q0wp9LbMRHlo-68

I tested it under XP/7/8 and it works fine.

Let me know what you think  ;)
 

Offline dom0

  • Super Contributor
  • ***
  • Posts: 1475
  • Country: de
Re: FFT Software
« Reply #1 on: May 09, 2015, 06:55:51 pm »
- You might want to adhere to the LGPL license that comes with ZedGraph (that is, you need to put a notice somewhere  in your program and/or the README that you're using ZedGraph and that it's LGPL'd)
- You're distributing a debug build (~500 kB download overhead)
- No source code, so I won't run it
,
 

Online Alex Eisenhut

  • Super Contributor
  • ***
  • Posts: 2499
  • Country: ca
  • If you can buy it for 4$ on eBay, why design it?*
Re: FFT Software
« Reply #2 on: May 09, 2015, 07:46:40 pm »
LTSpice
open waveform
do fft?
*Except AC/DC adapters on eBay. Avoid them all!
 

Offline yramgu

  • Contributor
  • Posts: 44
  • Country: fr
Re: FFT Software
« Reply #3 on: May 09, 2015, 08:21:53 pm »
Quote
You might want to adhere to the LGPL license that comes with ZedGraph (that is, you need to put a notice somewhere  in your program and/or the README that you're using ZedGraph and that it's LGPL'd)

You're right, I'll add a readme for zedgraph and KISS FFT

Quote
You're distributing a debug build (~500 kB download overhead)

Nope, it's the release build

Quote
No source code, so I won't run it

Fair enough. At the beginning I wanted to release the source code but quite frankly it's such a mess (I developped for myself so I didn't put any effort on writing "clean" code) I don't think it would be of any help. I can publish it if people want it though.

Quote
LTSpice
open waveform
do fft?

I'm not a user of LTSpice, didn't know you could do that^^. Then again I didn't tell the whole story: I was also looking to implement an FFT algorithm in a microcontroller for a future project and that's why I began working with KISS FFT. Then along the way I decided to write my own PC software based on it. Just a pretext to work with the library  ;)
 

Offline dom0

  • Super Contributor
  • ***
  • Posts: 1475
  • Country: de
Re: FFT Software
« Reply #4 on: May 09, 2015, 08:39:58 pm »
Quote
You're distributing a debug build (~500 kB download overhead)

Nope, it's the release build

Well, you're shipping the .pdb file, that effectively turns it into a debug build.
,
 

Offline yramgu

  • Contributor
  • Posts: 44
  • Country: fr
Re: FFT Software
« Reply #5 on: May 09, 2015, 09:05:14 pm »
Yep, don't know why but it keeps generating the .pdb file even when configured in Release mode. Deleting it doesn't seem to change anything, the program still works.
 

Offline T3sl4co1l

  • Super Contributor
  • ***
  • Posts: 16308
  • Country: us
  • Expert, Analog Electronics, PCB Layout, EMC
    • Seven Transistor Labs
Re: FFT Software
« Reply #6 on: May 10, 2015, 04:01:51 am »
For audio (WAV) use, I've used AnalFreq ("The Unfortunately Named Spectrum Analyzer Tool" :-DD ).  NO idea if that's free, or too special-purpose, or...anything.

A more heavy-weight but general-purpose solution might also be, open the source (WAV or otherwise) in Octave/MATLAB/Python/etc. as an array, then use the dft function.

Tim
Seven Transistor Labs, LLC
Electronic design, from concept to prototype.
Bringing a project to life?  Send me a message!
 

Offline dom0

  • Super Contributor
  • ***
  • Posts: 1475
  • Country: de
Re: FFT Software
« Reply #7 on: May 10, 2015, 09:38:07 am »
For basic analysis audacity is ok. It handles unreasonably high sample rats and float audio w/o complaining.
,
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf