LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

i would like to create a system time & date numeric box in cvi similar to the labview numeric vi.

i would like to create a system time & date numeric box in cvi/labwindows similar to the labview numeric vi to be able to set the time and date. is there something available in labwindows that is similar to whats in labview to be able to set the time and date from a numeric box on the GUI panel?
0 Kudos
Message 1 of 2
(2,946 Views)

Mikeehamm,

There isn't a system time/Date box that you can use in CVI but you can use a string box and sprintf to create your own system date/time display.  Use the GetSystemTime, and GetSystemDate functions to get the necessary data and you can concatanate the data into a string.  Run these functions in a separate thread from your main application and you can have it update at whatever time interval you wish.

0 Kudos
Message 2 of 2
(2,936 Views)