FPGA Timekeeper to Timestamp in LabVIEW

제품 및 환경

이 섹션은 예제 생성에 사용된 제품과 OS를 표시합니다.

아래의 제품을 비롯한 NI 소프트웨어를 다운로드하시려면 ni.com/downloads를 방문하십시오.

    하드웨어

  • CompactRIO|SingleBoardRIO

    소프트웨어

  • LabVIEW FPGA Module
  • LabVIEW

코드 및 문서

첨부파일

모두 다운로드

Overview

This example shows how you can take the output from the FPGA Timekeeper timestamp, and calculate the date and time. 

 

Description

The FPGA Timekeeper is very precise, but its native timekeeping data structure (ns since the TAI epoch) is hard to read and convert, especially on the FPGA where math functions are limited. This set of functions uses FPGA-only IP to convert from the FPGA Timekeeper timestamp to Year, Month, Day, Hours, Minutes, and Seconds. It also calculates the ordinal date (day of the year).

 

Requirements

  • LabVIEW 2012 (or compatible).
  • LabVIEW FPGA Module
  • FPGA Timekeeper

 

Steps to Implement or Execute Code

  1. Place the timestamp returned into the FPGA time (ns) control
  2. Run the code
  3. The corresponding date and time is returned by the indicators

Additional Information or References 

Block Diagram

capture1.JPG

It does this by using the Julian Date calculations described at https://en.wikipedia.org/wiki/Julian_day

 

**This document has been updated to meet the current required format for the NI Code Exchange.** 

NI 커뮤니티에 있는 예제 코드 교환의 예제 코드는 MIT 라이센스로 라이센스가 부여됩니다.