06-21-2012 05:13 PM
Hey guys,
I'm new to this forum and I am looking for some help with finding the average of a frequency-amplitude graph. I tried multiple example codes I've found on here and none of them really worked for me. I attached my program to this post. The problem I am having now is that my averaged graph looks exactly like my originial graph and I don't know why... theoretically I think I'm correct because I add one everytime the loop execute itself and then it divide the graph by the number I got and therefore it's the average. The average code is near the bottom of the picture I've attached, everything else works fine in my program. Please let me know what you think!
Also, a lot of times I like to ask really obvious questions. Sorry if this is one of them! Thanks in advance for helping out and let me know if you need any addtional information!
06-21-2012 06:30 PM
I cannot tell how you have the express VIs configured from looking at an image.
The averaging done by the spectrum express VIs keeps track internally of the number of iterations in much the same way as you are doing. Open the VIs and look for yourself.
So it appears that you have an averaged spectrum and an averaged spectrum divided by an integer. It is not clear that you have an "instantaneous" on "un-averaged" spectrum.
Lynn