![](/profiles/wavemetrics/themes/wavemetrics/logo.png)
Troubleshoot: FFT
![](/sites/default/files/styles/thumbnail/public/default_images/Artboard%201_1.png?itok=jeHOCIXy)
ychen344
I am getting an error message, "While executing FFT, the following error occurred: One or more of the input waves are not supported," when running the following script:
string eyeName = testWave_eye[a]
artRemovalWaveName = "PDmm_"+eyeName+"_deBlinked_artRemoval"
wave artRemovalWave = $artRemovalWaveName
string artRemovalWave_postR1_FFTName = artRemovalWaveName+"_postR1_FFT"
wave artRemovalWave_postR1_FFT=$artRemovalWave_postR1_FFTName
FFT/OUT=2/DEST=artRemovalWave_postR1_FFT/RP=[600, 1085] artRemovalWave
DeletePoints 0,1, artRemovalWave_postR1_FFT
artRemovalWave_postR1_FFT = sqrt(artRemovalWave_postR1_FFT)
artRemovalWaveName = "PDmm_"+eyeName+"_deBlinked_artRemoval"
wave artRemovalWave = $artRemovalWaveName
string artRemovalWave_postR1_FFTName = artRemovalWaveName+"_postR1_FFT"
wave artRemovalWave_postR1_FFT=$artRemovalWave_postR1_FFTName
FFT/OUT=2/DEST=artRemovalWave_postR1_FFT/RP=[600, 1085] artRemovalWave
DeletePoints 0,1, artRemovalWave_postR1_FFT
artRemovalWave_postR1_FFT = sqrt(artRemovalWave_postR1_FFT)
When I ran the FFT function in Command window on the same wave, it returned the right output. Any idea what was wrong with the script?
Please let me know if you'd like me to submit the Igor file.
Thanks,
Judy
A few comments.
* Please edit your posting to put the code lines within one code block snippet rather than as individual lines. Indeed, we would be helped even more when you would post the function call that you are using to do this processing.
* The string expects a string, for example string eyeName = "testWave_eye"
* The second line should likely be prefaced with string (string artRemovalWaveName = ...)
May 27, 2024 at 10:03 am - Permalink
The error message that you are reporting is normally a result of providing a non-numeric wave as the source wave for the FFT.
May 28, 2024 at 09:24 am - Permalink
Thank you for getting back to me. I am not sure what you meant "one code block snippet", so I attached the entire function in pdf for you to review. The waves for FFT function are numerical. Please let me know if you'd like to see the Igor file.
Thank you,
Judy
May 28, 2024 at 03:16 pm - Permalink
It would be easier to help you if you sent a copy of your experiment to support@wavemetrics.com
A.G.
May 28, 2024 at 03:35 pm - Permalink
I mean as below, where the code is in one block rather than each line in a block by itself
artRemovalWaveName = "PDmm_"+eyeName+"_deBlinked_artRemoval"
wave artRemovalWave = $artRemovalWaveName
string artRemovalWave_postR1_FFTName = artRemovalWaveName+"_postR1_FFT"
wave artRemovalWave_postR1_FFT=$artRemovalWave_postR1_FFTName
FFT/OUT=2/DEST=artRemovalWave_postR1_FFT/RP=[600, 1085] artRemovalWave
DeletePoints 0,1, artRemovalWave_postR1_FFT
artRemovalWave_postR1_FFT = sqrt(artRemovalWave_postR1_FFT)
May 28, 2024 at 03:49 pm - Permalink
I suggest you use Igor's debugger and "Debug on Error" to examine artRemovalWave 's actual wave type at the point of the error.
Also, take a look at these help topics:
DisplayHelpTopic "The Debugger"
DisplayHelpTopic "Debugging on Error"
June 3, 2024 at 11:48 am - Permalink