06-24-2013 08:37 AM
Hi,
I was playing with waveform graph (update via property node) and found out that it takes much longer when plotting data with NaN values compared to plotting data with no NaN values (see attached example). Is this expected behavior?
06-24-2013 08:59 AM
Please post the code in 2011 version.
06-24-2013 09:09 AM - edited 06-24-2013 09:10 AM
@andrej wrote:
Hi,
I was playing with waveform graph (update via property node) and found out that it takes much longer when plotting data with NaN values compared to plotting data with no NaN values (see attached example). Is this expected behavior?
Is the NaN data replacing real data, or is it in addition to the real data?
nvm - I answered my own q by looking at the code. 😉
06-24-2013 09:12 AM
Actually, I see no difference in the times.
06-24-2013 09:13 AM
While benchmarking (against execution time) I prefer to run the code in a For loop and then take average. I don't see much difference also the results are quite inconsistent, probably because the target is Windows.
06-24-2013 09:13 AM
However, if i connect the data directly to the indicator, instead of to the property node, the value drops to ~ 0 ms for either...
06-24-2013 09:15 AM
Passing data using wire should always be first choice...!!
06-24-2013 09:23 AM - edited 06-24-2013 09:24 AM
Hmmmm interesting. If I run with "No NaN values", the average time is around 24 ± 1 ms, while with "NaN values", the average time is 435 ± 5 ms. So results are quite different and consistent for me.
I'm aware that local variable and terminal will make it faster.
06-24-2013 09:28 AM
Maybe you are demonstrating why it is so much better to wire data directly to an indicator, rather than to a property node. 😉
06-24-2013 09:34 AM
@andrej wrote:
Hmmmm interesting. If I run with "No NaN values", the average time is around 24 ± 1 ms, while with "NaN values", the average time is 435 ± 5 ms. So results are quite different and consistent for me.
I'm aware that local variable and terminal will make it faster.
Even I got the same result but by wiring to the terminal no difference among both. I wonder it depends on the OS also ()