NI Home > Community > NI Discussion Forums

LabVIEW

Showing results for 
Search instead for 
Do you mean 
Reply
Member
Anilgk
Posts: 16
0 Kudos

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

Active Participant
.aCe.
Posts: 674
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.
Knight of NI
altenbach
Posts: 27,049
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. :smileywink:


LabVIEW Champion . Do more with less code and in less time .

Member
Wes_Ramm1
Posts: 84
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
Knight of NI
altenbach
Posts: 27,049
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. :smileywink:


LabVIEW Champion . Do more with less code and in less time .