LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

time/date functions

Can I change the date and time of my computer from LabWindows. Exits some function to do it?

0 Kudos
Message 1 of 5
(3,070 Views)

The Windows API provides the function SetSystemTime but I haven't used it myself. For this function call you will need the Full Development System of CVI which provides the windows include files.

0 Kudos
Message 2 of 5
(3,057 Views)

CVI offers also native SetSystemDate and SetSystemTime functions. Be careful to the cautionary notes evidenced in the help for both commands.



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
Message 3 of 5
(3,040 Views)

Smiley Embarassed it's obvious that I never used these functions Smiley Embarassed

0 Kudos
Message 4 of 5
(3,031 Views)

One somewhat out-of-CVI alternative is using the command line.

If you have the necessary user rights, you can change system time/date from Windows command line using time and date functions.

See the function help for system(...) and LaunchExecutable(...) functions and search internet for correct command line syntax.

Hope this helps,

S. Eren BALCI
IMESTEK
0 Kudos
Message 5 of 5
(3,009 Views)