LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

display greetings in string indicator for certain period of real-time (timestamp)

Solved!
Go to solution

i need help in displaying greetings

 

"good morning"

  • after 12:00:00 AM
  • before 12:00:00 PM

"good afternoon"

  • After 12:00:00 PM
  • Before 6:00:00 PM

"good evening"

  • After 6:00:00 PM
  • Before 12:00:00 AM

i've attached my program so far for displaying real-time

0 Kudos
Message 1 of 4
(2,648 Views)
Solution
Accepted by topic author wali123

Using the hour out of the timestamp to drive a case structure.

 

Message 2 of 4
(2,646 Views)

What are your values for the case selector labelin the case structure?

0 Kudos
Message 3 of 4
(2,637 Views)

It's a snippet.  So you can drag that image into your block diagram and have the actual code.

 

But it is 0 to 11  "0..11" (midnight to noon)

12 to 17  (noon to 6 pm)

and Default (thus 6 pm to midnight)

 

This takes advantage of the fact that 11:59:59 am is still in the 11th hour and 5:59:59 pm is still in the 17th hour.

0 Kudos
Message 4 of 4
(2,634 Views)