LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Time stamp comparison for every day. confusion

Solved!
Go to solution
Highlighted

Hi, I am trying to compare two timestamps and then going to create a case structure, as far as simple comparison goes it seems ok and easy but actually I want to compare every day or in other words I need the VI to start the particular task every day while running at the given time which means the time will remain fix but the the value in timestamp contstant/control should change automatically to next day.

 

For example if I put 7-04-2011 1pm .. it just not compare for 7th April but i need it to compare everyday like 8,9,10...april as far as vi is running and every day the task should execute at 1 p.m. I hope the issue is clear and i'll get some useful suggestions.

 

 

Naqqash

Naqqash
0 Kudos
Message 1 of 6
(3,889 Views)
Highlighted

Post your vi what you have did so far...

0 Kudos
Message 2 of 6
(3,886 Views)
Highlighted

Thanks for reply. Here it is.

Naqqash
0 Kudos
Message 3 of 6
(3,878 Views)
Highlighted
Solution
Accepted by topic author Naqqash

Hi Naqqash,

 

your type of comparison will fail on computers with other regional settings...

 

Better try something like that:

check.png

(German LV: Stunde=hour...)

Best regards,
GerdW
CLAD expired, using LV2011SP1 + LV2017 (+LV2019 sometimes) on Win7+cRIO
Kudos are welcome Smiley Wink

Message 4 of 6
(3,870 Views)
Highlighted

Danke Schön. Smiley Wink  So stupid of me never thought to unbundle the time cluster anyways thanks alot. Only the top part of the program is suffiecient for comparison no need to use format string and then concetenate (might be useful for others in future).

 

 

Naqqash
0 Kudos
Message 5 of 6
(3,861 Views)
Highlighted

This little baby is actually in my image gallery somewhere... the subject "time to time of day" comes up quite frequently.

 

Time of day.png

 

 

 

Message 6 of 6
(3,828 Views)