LabVIEW - Create Custom XY Legend

코드 및 문서

첨부파일

모두 다운로드

Overview
This example VI shows a way to change which data is viewed and have a legend which updates accordingly.

 


Description
To programmatically control which plots are visible on a GraphChart Control, property nodes such as setting the plot visibility are often used. One new feature in LabVIEW 2012 is a checkbox to toggle which plots to be shown on the graph. Unchecking this box will remove the plot from the graph and 'grey-out' the plot image. So this example can help you to remove items from the legend as you wish. It provide a way to change which data is viewed and have a legend which updates accordingly.

 


Requirements

  • LabVIEW 2012 (or compatible)


Steps to Implement or Execute Code

  1. Download the attached folder to your computer
  2. Open the VI "XY Programmatic Legend 2012 NIVerified.vi"
  3. Edit plot names, plot color, and visibility of pilots
  4. Run the program

 

Additional Information or References
VI Snippet

 VI Snippet.png

 

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

 


Regards,

Peter D

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