08-03-2005 03:43 PM
08-04-2005 06:33 AM
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.
08-04-2005 10:56 AM
That was great answer.
Here is an example VI to get you started.
Kalyan
08-04-2005 11:18 AM
08-04-2005 06:20 PM
You can also call the Windows API function (SetSystemTime) to set the date and time. See attached VI.
-Khalid
PS: Note that the time set is UTC/GMT time.
08-05-2005 04:42 AM
Thanks, Khalid.
I actually did a quick search to see if I could find a windows function, but didn't.
11-14-2006 02:55 AM
Dear Khalid,
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?
Thanks,
Nishant
11-14-2006 06:32 PM - edited 11-14-2006 06:32 PM
Hi Nishant,
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.
Good luck!
-Khalid
Message Edited by Khalid on 11-14-2006 05:33 PM
09-18-2009 12:18 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.