ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

Lookout

cancel
Showing results for 
Search instead for 
Did you mean: 

Timer Parameters

I am trying to implement a simple counter that will count the number of times a switch is turned on during a 24 hour, 5 day and 30 day period. I have created timer funtions for this, however, they dont seem to be having the desired result. For the 24 hour, I would like the timer to allow counting between midnights, and reset after every 24 hour. Similarly for the 5 day - monday thru friday. I have enclosed screen grabs for each case, can someone please tell me what I am doing wrong here, and also how to implement a 30 day timer. Any help is appreciated. Thanks.
Download All
0 Kudos
Message 1 of 3
(3,852 Views)
Use the parameters below and connect these timers to the reset of your Counters.

Time of Day Timer
ON/OFF true
Offset 23:59:59
(resets 1 sec before midnight)
Duration 00:01

Time of Week Timer
ON/OFF true
Offset 23:59:59
(Lookout counts Sunday to Saturday for the week. If you want Monday to Sunday use the listed parameter, if you want Sunday to Monday use 00:00:10, this will reset the time a 10th of a second after midnight Sunday morning.)
Duration 00:01

Time of Month Timer
ON/OFF true
Offset 00:00:10
(To over come the inconstant number of days, use a 10th of a second to have your counter reset first thing on the 1st day of the month.)
Duration 00:01

Hope this helps.
Message 2 of 3
(3,852 Views)
Ollie - that helps a lot.
Field testing it now. Thanks.
Sudhi
0 Kudos
Message 3 of 3
(3,852 Views)