LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Progress of the date and time

Hi

I want to display the progress of the date and time on my labview interface.

how do i do that please?

0 Kudos
Message 1 of 3
(778 Views)

Hi , 

 

Could you possibly share more on what is generally required for the application?

 

I prefer to use the Get Time/Date in seconds function which returns a timestamp. If you need to convert this to another format there are functions that will do that in the Time Palette and some are very clever so can return the day of the week, century, etc. 

 

If you call it when you application starts and want to see how much time has elapsed since the beginning you can call the function again and subtract the two timestamps. You can use the Tick Counter instead of Get Time/Date in Seconds in this case but keep in mind that that returns an integer and you might come into issues when it rolls over at the end of its range. 

 

Let me know if this is not what you meant in your question. 

 

Many Thanks, 

 

Riley

0 Kudos
Message 2 of 3
(773 Views)

Hi mouadh,

 


@mouadh2018 wrote:

I want to display the progress of the date and time on my labview interface.

how do i do that please?


Place a timestamp indicator on your frontpanel.

In the blockdiagram you wire the GetDateTimeInSeconds output to this indicator, then place a while loop around that part of code.

 

Run the VI and watch the indicator "display the progress of date and time"…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 3 of 3
(741 Views)