XControl - Clock

제품 및 환경

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

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

    소프트웨어

  • LabVIEW

코드 및 문서

첨부파일

모두 다운로드

Overview

This is an example that fulfills the function of analog clock using XControl.  

 

Description

This VI demonstrates how to achieve the analog clock by using XControl.  

 

Requirements

  • LabVIEW 2012(or compatible)

 

Steps to Implement or Execute Code

  1. Run the VI.
  2. See the related figures in front panel.

 

Additional Information or References

VI Snippet

 BD.png

 

 

 

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

 

Regards
Prabhakant Patil

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

의견
Hooovahh
Proven Zealot Proven Zealot
Proven Zealot
날짜

I know this is quite old, but a word of caution for anyone using this.  I suspect this has what will appear to be a memory leak, where as the application continues to run it will continue to use up resources.  This is because the clock is a 2D picture control, and the image is just continually redrawn on top of the old one.  I don't fully know how resources are kept or not between runs of an XControl but this type of thing should be avoided in normal VIs.  I explored this in a thread years ago here

 

On top of this there are other issues like not having any labels on controls in VIs such as this one.

Untitled.png

And lastly this doesn't actually use the value passed in at all.  The time displayed will always be the time on the system.  If you wire a constant of any number to it, it will always display the system time and not the time wired.