Showing results for 
Search instead for 
Did you mean: 
Reply

comparing time

comparing time

I want to compare the time to display working shift like Morning 7:15 to 14:00 is A shift and 14:00 to 22:30 - B shift . Please some one give the solution.

 

 

Thanks in advance

Anilkumar

0 Kudos
Message 1 of 5 (208 Views)
Reply
0 Kudos

Re: comparing time

You could try this:

compare time1.png



Beginner? Try LabVIEW Basics
Sharing bits of code? Try Snippets or LAVA Code Capture Tool
Have you tried Quick Drop?, Visit QD Community.
0 Kudos
Message 2 of 5 (199 Views)
Reply
0 Kudos

Re: comparing time


Anilgk wrote:

I want to compare the time to display working shift like Morning 7:15 to 14:00 is A shift and 14:00 to 22:30 - B shift.


What should the result be for times before 7:15 or after 22:30? Please provide a complete problem specifications. Smiley Wink

0 Kudos
Message 3 of 5 (197 Views)
Reply
0 Kudos

Re: comparing time

[ Edited ]

Ignore this post, I though Altenbach was asking a question, not making a request!!


--------------------------------------------------------------------------------------
Wes Ramm, Cyth UK
CLD, CPLI
0 Kudos
Message 4 of 5 (186 Views)
Reply
0 Kudos

Re: comparing time


Wes Ramm wrote:

In this case, the value for the resulting string is limited to what the two "Select" primitives, linked in series, can do.


Yes, the code by .:aCe:. is an over-interpretation of the incomplete problem specification by Anilkumar. It was not specified what should happen in the exception case. In any case, I am sure there is a significantly simpler solution. Smiley Wink

0 Kudos
Message 5 of 5 (179 Views)
Reply
0 Kudos