使用cRIO-901x控制器的内部实时时钟



硬件: CompactRIO>>Controllers>>cRIO-9012, CompactRIO>>Controllers>>cRIO-9014

问题: 在cRIO-901x控制器的手册中有这样的一段话: "cRIO-9012/9014的系统时钟在启动时就和内部的高精度实时时钟同步, 这种同步机制为控制器提供时间戳.您可以使用内部的实时时钟来修订您系统时钟的偏移." (The system clock of the cRIO-9012/9014 is synchronized with the internal high-precision real-time clock at startup. This synchronization provides timestamp data to the controller. You can also use the internal real-time clock to correct drift of the system clock.) 我如何使用内部的实时时钟来纠正我的系统时钟的偏移呢?

解答: 如果您需要使用内部的实时时钟来修订您的系统时钟,您需要在名为ni-rt.ini的文件中加入如下的语句.修改文件的方法是, 首先通过FTP把文件传到您的windows系统的机器中来, 修改后再将文件传至您的控制器, 以完成修改.

[Time Sync]
source.rtc.enable=True

如果您需要确认您的更改是否已经有效,您可以在显示终端下使用Console Out DIP switch: 查看到如下的语句

Time sync source: rtc now active

相关链接: KnowledgeBase 493BIHLX: Using the SMB Connector for Digital I/O on cRIO-901x Controllers

附件:





报告日期: 08/27/2007
最近更新: 10/07/2007
文档编号: 4CQFC9LX