LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

cRIO 9075: Programmatically set date & time

Hello,

 

I'm using the cRIO 9075 (in hybrid mode, if that matters). The RT Host-Vi is started and interacted with on a PC. I'd like to set the date and time of the cRIO to the same time of the Host-PC. How can I do this?

 

I found this article: http://zone.ni.com/reference/en-XX/help/370622J-01/lvrtvihelp/rt_set_date_and_time/ 

But this is works with the LV2011 RT-Module. Im running LV2015 and when I try it this way, I loose the connection to the RT System.

 

The problem is, that the whole system is shutdown regularly so all experiment data start on 01-01-1970. The workaround is to set the time wie Ni MAX eveytime, but this is not convenient. 

 

Greetings

AF87

0 Kudos
Message 1 of 2
(2,845 Views)

Have you looked at the System Configuration API under the Real-time palette? There are functions there to both set the Time Zone of your controller as well as the current date and time. This is there from LV2012 onwards; I have ben using this with LV2016 successfully without any unusual disconnects etc.

0 Kudos
Message 2 of 2
(2,798 Views)