LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Multitone Generator outputs NaN values without an error !?!

Hi there,
I'm using Multitone Generator from signal processing package and I get a lot of NaN values without any error from the VI. As the documentation is lacking this issue, I don't know exactly what happens. After some prospections, I've found that '0' values in the amplitude vector (oops, array) may bring those bad values. However I'm not sure at all and there's some times when all works fine. The problem may also arise from a Nyquist criterion problem since some of my frequencies in the frequency array may be higher than Nyquist frequency (hardly avoidable in my app).
My question is the following one, what can produce NaN output values in Multitone Generator without even producing a warning?
0 Kudos
Message 1 of 3
(2,603 Views)
Can you create an example that produces this behavior and post it? Frequencies above Nyquist should be pruned along with the corresponding amplitudes and phases, with a warning (20020).
0 Kudos
Message 2 of 3
(2,603 Views)
OK... the bug is out!
After some simple tests, the problem arises when the last amplitude value is 0. There's possibility to put 0 in the amp vector as long as the last value is not null. I've done a simple workaround to correct this, but imo this is a bug and it would be fine if it were corrected in a future release.

Best regards
0 Kudos
Message 3 of 3
(2,603 Views)