아래의 제품을 비롯한 NI 소프트웨어를 다운로드하시려면 ni.com/downloads를 방문하십시오.
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
Steps to Implement or Execute Code
Additional Information or References
Block Diagram
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 라이센스로 라이센스가 부여됩니다.