From 08:00 PM CDT Friday, August 12 - 01:00 PM CDT Saturday, August 13, ni.com will be undergoing system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

DIAdem script error with "ChnFFT1" function

Solved!
Go to solution

Hi all,

 

I'm trying to write a DIAdem script to automate FFTs on several signals.

So, with the script recording mode enabled, I manually perform a simple FFT from the analysis tab. This works well and generate a new signal with the FFT result. Then I disable the recording mode.

But, when I try to run the generated script, it shows an error that I don't understand (you can see a screenshot in attached files)

 

Does someone has an idea of what I'm facing ?

 

By advance, thank you for your attention and your help

0 Kudos
Message 1 of 6
(249 Views)
Solution
Accepted by Ariel_aka_Atryou

Hi Ariel_aka_Atryou,

 

you don't calculate anything. At least one of these parameters need to be set to TRUE:

 

FFTCalc = false
FFTAmpl = false
FFTPhase = false
FFTCepstrum = false

 

Greetings

Walter

0 Kudos
Message 2 of 6
(220 Views)

Hello

 

Thank you for your answer, it solved my problem.

We can still notice that there is a strange behavior between the Analysis tab and the recording mode of the script tab : 

We can see that parameters we are talking about are not configured the same way, depending on the tab they appears. You can see screenshots in attached file, one is the analysis tab parameters, and the other is the script automatically generated from this analysis tab action. The "FFTAmpl" parameter is clearly not the same ! Maybe it's a problem with my DIAdem configuration..?

 

Once again, thank you for your help

0 Kudos
Message 3 of 6
(215 Views)

Hi Ariel_aka_Atryou,

 

Which DIAdem version do you use? I have tested all Versions from 2019 SP1 on up to DIAdem 2022. All recordings of the FFT function are OK.

 

Greetings

Walter

0 Kudos
Message 4 of 6
(208 Views)

Hi Walter_Rick

 

I use DIAdem 2018, you can see more information in the attached file

 

Maybe I should change my version... I will talk my company bout that

 

Thank you again for your help

0 Kudos
Message 5 of 6
(192 Views)

Hi Ariel_aka_Atryou,

 

Yes, with DIAdem 2018 I can reproduce this problem. I think an upgrade is a good idea.

 

Greetings

Walter

0 Kudos
Message 6 of 6
(176 Views)