From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I programatically set the date and time of my FP-2000 in LabVIEW RT?

I checked out the following knowledgebase document which has a tool for setting the system time, but I also need to set the date:


http://zone.ni.com/devzone/explprog.nsf/ 6c163603265406328625682a006ed37d/ 37175dbc3696a1ac86256a850051097d?OpenDoc ument


How can I do this?


-Jim
0 Kudos
Message 1 of 4
(3,077 Views)
Jim,

I know it's not very elegant... but, I run "SystemExec.vi" and use the DOS
"date" command.

Bill

Jim Kring wrote in message
news:50650000000800000055360000-1007855737000@exchange.ni.com...
> I checked out the following knowledgebase document which has a tool
> for setting the system time, but I also need to set the date:
>
>
> http://zone.ni.com/devzone/explprog.nsf/
> 6c163603265406328625682a006ed37d/
> 37175dbc3696a1ac86256a850051097d?OpenDoc ument
>
>
> How can I do this?
>
>
> -Jim
0 Kudos
Message 2 of 4
(3,077 Views)
Jim,

I apologize for taking so long in getting back to you. I have discussed this issue with several people and we have now updated the developer zone to include a tool for setting both the system time and date. Please refer to the following categories:


Development Library >> Measurement and Automation Software >> LabVIEW >> Real-Time Module >> Advanced Programming Techniques
Development Library >> Measurement and Automation Software >> LabVIEW >> Development System >> Fundamentals >> Time and Date

The actual document is titled "Setting the System Date and Time". This document should be posted within the next week.
0 Kudos
Message 3 of 4
(3,077 Views)
That is great, Steven. I also found a solution using GetSystemTime and SetSystemTime which are functions in kernel32.dll that get and set the system date-time. This function call worked on the FP-2000 that I have and should work on RT-Embeded systes, as well.

-Jim
Download All
0 Kudos
Message 4 of 4
(3,077 Views)