06-12-2013 10:46 AM
I'm Labview begineer .
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
06-12-2013 11:31 AM
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.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord