Pulse counter Time what is it?

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
hestia
Normal user
Posts: 80
Joined: 06 Mar 2021, 08:27
Location: Paris

Pulse counter Time what is it?

#1 Post by hestia » 26 Sep 2021, 23:39

Hello
in the docs https://espeasy.readthedocs.io/en/lates ... /P003.html the time for a Generic - Pulse counter is Time between current and most recent pulse in milliseconds
What does that mean?
When I look to my counters I could not figure out anything...
Screenshot 2021-09-26 233801.png
Screenshot 2021-09-26 233801.png (57.97 KiB) Viewed 565 times
What is the current? Time? Pulse?

TD-er
Core team member
Posts: 5516
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Pulse counter Time what is it?

#2 Post by TD-er » 26 Sep 2021, 23:44

I have to check the code to be sure, but as far as I can remember it is also related to the settings of the task as not all settings update all values (I think...)

The updating of the values on the Devices page has also been changed slightly a few months ago (automatic update values even if you only have pulse counters, display of values/formatting, etc)
So if you have an older build, you may also want to try a later build, but keep in mind there have been some issues with WiFi in recent builds (again... :( )

hestia
Normal user
Posts: 80
Joined: 06 Mar 2021, 08:27
Location: Paris

Re: Pulse counter Time what is it?

#3 Post by hestia » 27 Sep 2021, 13:31

Thanks for your reply,
what I wanted to do is knowing how much time there was pulses during the "interval" (10 sec for me).
Perhaps the Time wasn't the good thing to use.
Perhaps the is another way to do it...
I could reduce the interval to reduce the error and consider that there was pulses during the whole "interval", but I'm afraid the the ESP capacity (CPU)
Screenshot 2021-09-27 132854.png
Screenshot 2021-09-27 132854.png (51.57 KiB) Viewed 536 times
I have 4 pulse counters

TD-er
Core team member
Posts: 5516
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Pulse counter Time what is it?

#4 Post by TD-er » 27 Sep 2021, 14:01

So you're suggesting the "time" value should be configurable to show either one of these metrics:
- "time high" or "time low" since the last interval of the task
- time since last pulse (can be longer than the interval of the task)
- "duty cycle", which is essentially the "time high" divided by the task interval.
- "period", or 1/freq

I guess those could indeed be added.

hestia
Normal user
Posts: 80
Joined: 06 Mar 2021, 08:27
Location: Paris

Re: Pulse counter Time what is it?

#5 Post by hestia » 27 Sep 2021, 22:05

I'd like to measure the nb of pulses / sec
As in the beginning the pulses do not start at T0 in the interval and in the last interval do not stop just at the end, the intervals are not "full"
Screenshot 2021-09-27 220429.png
Screenshot 2021-09-27 220429.png (214.22 KiB) Viewed 522 times
So,if I had the duration between the first pulse and the last pulse, I'll be able to do it...

Post Reply

Who is online

Users browsing this forum: No registered users and 52 guests