LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

counter of days

hi,

I want to make a counter that counts the days in a month

example:  start at first january
                counts 31 days and jumps to first of february
                then counts 28 days and jumps to the first of march

I want to couple 2 integers to the month (max and min temp)

thanks in advance


0 Kudos
Message 1 of 6
(3,496 Views)
Hello suske,

what do you want exactly:
Should the vi know the number of days per month? Or do you just want to have the number of days between 2 dates? Or do you need just a date string like '1. Feb. 2006'?

Anyway, there are functions in the time&dialog palette to do this: "Date/Time to seconds" and "Seconds to Date/Time". You can setup your own date in a date record and manipulate it...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 6
(3,486 Views)

Hi Suske,

Can you use the VI in the picture. From the timestamp the day, month and year number is displayed.

Message 3 of 6
(3,481 Views)
thanks for the reply

in my front panel there's a text box with the month and one with the days
the day in the textbox must not the same as the present day

I have a timer so one day has a lengt of  5 seconds 

Its for my project for school and I need a "little" bit help

thanks

0 Kudos
Message 4 of 6
(3,477 Views)
Thanks for the reply KC
but the timestamp is not an option.
0 Kudos
Message 5 of 6
(3,475 Views)
Perhaps if you show us the VI and tells us what the result should be we can help, because I don't understand want you exactly want.
0 Kudos
Message 6 of 6
(3,471 Views)