LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

reset the number after 24 hours HELP!!!!

I'm Labview begineer .Smiley Sad

i want to know how to

reset back to the original number at the end of the day.

 

Example:

there will be two 2 numeric.

my second numeric is reducing

therefore, that second numeric will be reset to the number in first numeric At the end of the day.

Please help Smiley Happy

0 Kudos
Message 1 of 2
(2,150 Views)

The way I've done this in the past is to use the Get Date/Time In Seconds and wire that to the Seconds to Date/Time.  This creates a cluster with the components broken out.  I would then unbundle the Dat indicator.  Feed that into a feedback node, and then say is the previous day of the month, not equal to the current day of the month?  If this is true then mid night just went by and take action.

 

If you really want to know 24 hours from the start time, then just get the Date/Time in seconds when the software starts, then subtract the current Date/Time to this date time, and then determine if the number of seconds passed is greater than the number of seconds in 24 hours.

0 Kudos
Message 2 of 2
(2,133 Views)