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.



为什么在调试ARM程序时无法更新时间戳



主要软件:
主要软件版本: 1.0
主要软件修正版本: N/A
次要软件: LabVIEW Modules>>LabVIEW Embedded Module for ARM Microcontrollers

问题: 我在调试一个部署在ARM目标上的程序。但是我的时间戳显示控件不更新,并且我在时间戳的线上放置探针时显示未被执行。我如何解决此问题。

解答: 时间戳在ARM目标上是执行的,但是在调试模式不显示。为了能在调试时看到它的输出,你需要把它转换为字符串并在字符串显示控件中或在控制台输出中显示。最简单的实现方法是使用转换至字符串VI。下图中展示了如何实现的例子。


因为在很多目标上没有用于跟踪时间的电池,时间戳可能默认是1 January 1970 0:00:00 AM。如果遇到这种情况,你需要加上以ARM程序开始时刻减去1970年1月1日上午0:00:00的以秒计的时间差。实现方式也在上图中显示。


相关链接: Developer Zone Tutorial: LabVIEW 2009 Embedded Module for ARM Microcontrollers Known Issues
Community Example: Convert String to Timestamp

附件:





报告日期: 04/02/2010
最近更新: 05/23/2013
文档编号: 581B591R