FieldPoint Family

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?OpenDocument

How can I do this?

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

As you noted, the example (above) does not currently support changing the date. I have requested that the ability be added to the example/tool, but I do not currently have a good estimate as to when the upgraded tool will be available.

Regards,
Aaron
LabVIEW Champion, CLA, CPI
0 Kudos
Message 2 of 3
(3,953 Views)
Aaron,

I found functions in kernel32.dll called SetSystemTime and GetSystemTime. These use a cluster similar to that used by "Date/Time To Seconds" and "Seconds To Date/Time" I tried them out on my FP2000 and they worked just fine.

-Jim Kring
Download All
0 Kudos
Message 3 of 3
(3,953 Views)