DLL to create a spectrum analyser

Post general discussions on using our drivers to write your own software here
Post Reply
Allan

DLL to create a spectrum analyser

Post by Allan »

Hi, i am trying to create a software utilising the spectrum analyser functions instead of a scope. But the adc200_set_timebase takes in only seconds, instead of Hz.

Is there any other functions or dlls that i can use to create a spectrum analyser. Please advise. Thanks

Regards
Allan

User avatar
markspencer
Site Admin
Site Admin
Posts: 598
Joined: Wed May 07, 2003 9:45 am

Post by markspencer »

Hi,

To generate spectrum analyser functionality you will need to write your own algorithm to calculate the FFT, as the functions provided will only return raw data readings. However, this is possible with the functions provided in the .dll.

I would suggest getting a good book on the FFT, one such book is:

'Understanding the FFT' by Anders E. Zonst

Alternatively, perhaps someone else on the forum can help you.

Best regards,
Regards,

Mark Spencer

guest

Post by guest »

If I understand correctly the gentleman wants to convert seconds and Frequency


I believe you will find

F (Hz) = 1 / T (time period of signal)

e.g.

F (Hz) = 1 / 0.1 seconds

F = 10 Hz

reverse the formula to convert in the other direction.


FFT
----
Check out a search on the web for 'Numerical Recipies In C' in that you will find a C algorithim which you can use to calculate an FFT.

The bigger problem you have is in understanding the limitations that occur as a result of sampling and transforming the data....... Good - luck !

Post Reply