LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Regarding TIME STAMP Control in LabVIEW

Solved!
Go to solution

Here i have attached which is having time stamp control,where i can mask time but when i click on control it is showing date and time I don't want time in that control,i have to set time once either that is 00:00:000 or 23:59:59.Later i have to change date.Below i have attached a vi which is having timing information control.If there is any idea to mask time completely please suggest me.

0 Kudos
Message 1 of 8
(4,278 Views)

Did you attach the correct VI?  The one you attached doesn't show any timestamp control.  Just a numeric indicator.

0 Kudos
Message 2 of 8
(4,263 Views)

Sorry Here i have attached the correct one.Please have a look on it.

0 Kudos
Message 3 of 8
(4,256 Views)

Please a look on it.VI is attached 

0 Kudos
Message 4 of 8
(4,253 Views)

In the control properties you can chose which part of the time is shown. See the attached image:

 

ControlProperties_DisplayFormat.JPG

You can either select to show time or date or both of them in your prefered style.

0 Kudos
Message 5 of 8
(4,245 Views)

Sorry that is not i want.For elaboration i have added two images please look into it.

image 1. I have enabled time unused option in Control properties.

           2.  on front panel When i click on control it is showing date with time and set time to now.

           3. I dont want to have those time options.

           4. How to mask time Completely after setting once???

 

 

Download All
0 Kudos
Message 6 of 8
(4,234 Views)
Solution
Accepted by topic author VenkataRajasekhar

Hi Venkata,

 

How to mask time …?

when reading the value from your "current time" control you could "filter" the time (aka time of day) part and only keep the date:

check.png

 

How to mask time Completely after setting once?

Hide that "calender" button. Have the user input the date in the control.

Or create your own VI to let the user select a date from a calender.

Or search the forum for some .Net implementations: IMHO you can configure them to only show a calender, but no time inputs…

 

Like this:

check.png(Just change the CustomFormat as needed.)

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 7 of 8
(4,231 Views)

Thanks alot. I got perfect output.The way i want.

0 Kudos
Message 8 of 8
(4,217 Views)