02-14-2023 04:11 PM
I just noticed my input array has an NaN variable, that might be it. its at 2000.
02-14-2023 04:25 PM - edited 02-14-2023 04:31 PM
Yes, it is at index 2001. Value should be 1.
Still, even replacing that does not make the entire exercise more meaningful. What are you trying to get out of it?
Why do you do averaging if you only run it once?
Your windowing focuses on the data that is mostly zero.
Maybe some JTFA might be more informative. Do you have the advanced signal processing toolkit?
02-15-2023 12:16 PM
I use a split 1d array node to capture the data I want later on in the code. So i only get the data I need. I ended up just replacing it with one and it worked but I'm facing another issue at the moment where the graph saves previous data for some reason. I don't believe I have that toolkit. I'll look into it.
02-15-2023 12:59 PM
I'm facing another issue at the moment where the graph saves previous data for some reason.
A graph does not have a memory. Maybe you are suing a chart instead of a graph? Fir a chart, you can clear the history data at program start).
If you have previous data on a graph, it might mean that you are building the data in an uninitialized shift register.
02-15-2023 01:02 PM
yeah, for some reason turning off the averaging box in the spectral measurements node did the trick. No previous memory saved.
02-15-2023 01:06 PM
Or you can just wire a true in the first iteration (iteration terminal, =0 ) to the init terminal. Still, for a single run, averaging makes no sense anyway.