If you are using windows, you can use the "time" command by calling System Exec (Communications palette).
It appears you can't call the command yourself, but you can use the windows command prompt to call it. To do so, wire "Cmd /c time 23:59:59" into System Exec (obviously with your own time). The /c switch causes the string following it to be executed as a command.
Since you posted in the FieldPoint board, if you have any RT software installed, you can also use the Set Date and Time VI from the RT palette. It works on PCs just as well.
You can also call the Windows API function (SetSystemTime) to set the date and time. See attached VI.
PS: Note that the time set is UTC/GMT time.
I actually did a quick search to see if I could find a windows function, but didn't.
As to change the system time, is it possible to time zone also??? cos we could get the data either in the GMT or in the Local Standard time, and it all depends on the user, so is it also possible to change the time zone from the LabVIEW?
I believe so. There's a windows function to set and get the timezone info'. I am attaching a half-finished VI to get the time zone info'. Maybe you can use this as a starting point for the set function.
Message Edited by Khalid on 11-14-2006 05:33 PM
I found this topic while doing a search for a related topic. I was wondering if anyone would be kind enough to re-post the three vi's previously posted here in Labview 7.0? I tried opening them, but they appear to be in version 7.1.
I know it is a random thing to ask, but I appreciate any help. Thanks.