Closed Blutkoete closed 6 months ago
Yeah, basically the frequency calculation does not really show proper information for frequencies below 1Hz. At some point, eCAL just decides that this topic probably is not published anymore (hence the 0Hz).
I have create a slow publisher with a 5 second loop and can reproduce the toggel between 0Hz and 0.2 Hz with that. However, if I publish the data with a 1-second loop I get a relatively stable 1-ish Hz Frequency in eCAL Mon. Maybe your loop time doesn't work as you expect it to work? You should be able to see the "Data Clock" increasing with each message, so if your loop works correctly, you should also see the data clock being increased each second.
We have seen that the current frequency calculations is problematic in multiple ways. What you described for frequencies < 1Hz, but also it is really unstable for frequencies ~2-3 Hz as well: For an exact frequency of 2.00Hz, the calculated frequencies are between 1.9 and 2.9 Hz, and diverging heavily. We will implement a more stable frequency calculation.
Wow, thank you for your fast response & new calculator! Really impressive.
Problem Description
I created a simple Python publisher that publishes machine state from my machines at home like memory and CPU consumption. I configured the publisher to send out the data roughly once per second, which probably corresponds to a frequency of less than one Hz in reality.
Now the Frequency column in the eCAL Monitor toggles slowly between 0 and 0.2, which are both not really helpful values.
While I understand the 0 for cases in which no message is published during the calculation window for the frequency, the 0.2 makes no sense at all to me.
This is not a big issue, but maybe it's somehow possible to have the calculation window to adjust itself automatically so that the values for slow publishers are more accurate?
How to reproduce
How did you get eCAL?
Custom Build / Built from source
Environment
eCAL System Information