LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

RT Set Date and Time VI is missing

I'm trying to set the system time on our PXI and the documentation says to run "RT Set Date and Time" VI but I cannot find this VI anywhere.  Was it removed in 8.5.1?  Is there any other way to set the date/time?  Ideally, I'd like to set up the PXI to use an NTP server whenever it boots (which sounds like it can do this).  But how do I specify the NTP server address on the target?

 

Keith.

 

0 Kudos
Message 1 of 4
(3,794 Views)

Hi knicewar,

 

When you create a Real-Time project and select the Block Diagram of a VI that's listed under your Real-Time PXI controller, you can then access the RT Set Date and Time VI.  (Real-Time » RT Utilities » RT Set Date and Time)  You don't have the option to select this VI unless you are on the Block Diagram of a VI listed under your PXI Real-Time controller.

 

As for accessing an NTP server, these articles discuss time servers and have examples posted as well:
PXI TIME SETTING
Getting/Setting the System Date/Time on CVS and PXI RT Targets
Configuring CompactRIO Real-Time Controllers to Synchronize to SNTP Servers

 

I hope this helps,

Kevin S.

Applications Engineer

National instruments

0 Kudos
Message 2 of 4
(3,762 Views)

Aha!  I typically develop and test on a PC and then deploy to the PXI, so I never saw the RT Set Date Time VI.  But when I bring up the block diagram under the target, there it is! 

 

That was not at all obvious.  Why not always show the VIs in the function tool but disable them if they cannot be applied on the current target?

 

Thanks!

Keith.

 

0 Kudos
Message 3 of 4
(3,758 Views)

Hi knicewar,

 

Thank you for this feedback.  I will document your recommendation because I believe it to be a valid one.  In the future, please leave similar feedback.  We take into account each recommendation.  You can leave future feedback by going through the follow process: www.ni.com/support » Contact NI » feedbck

 

Regards,

Kevin S.

Applications Engineer

National Instruments

0 Kudos
Message 4 of 4
(3,732 Views)