Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI
This Document is not yet Rated  Rate this Document

How to Modify Plot Legends for DIAdem Report XY Graphs in LabVIEW

Primary Software: LabVIEW Development Systems>>Professional Development System
Primary Software Version: 8.5
Primary Software Fixed Version: N/A
Secondary Software: DIAdem

Problem:
I have created a DIAdem Report in LabVIEW (using the DIAdem Report Express VI) which contains an XY graph. How do I programmatically add/modify the graph legend directly from LabVIEW?

Solution:

One way to modify the legend that appears with a DIAdem XY graph is to associate the legend label to the channel name property by connecting Dynamica Data Type Signals as inputs for the Diadem Report Express VI.

To do this with your LabVIEW VI you first have to double click on the Diadem Report Express VI and open the configuration window. Then execute the following steps:

  • In the layout section, select Custom Layout. Then select the edit layout button; DIAdem will open and allow you to configure a new or existing report layout;
  • Right click on the XY graph and select properties;
  • Enable the legend and click on the Settings... button;
  • Go to the Label tab and click on the All On button. This will enable all the labels associated with graph plot;
  • Click on the mode property and select Channel Name option;
  • Press all OK buttons until you close all the property windows, then save the DIAdem .TDR file;


Once you completed these steps just run the attached LV_changeSignalName.vi (the other attached VI, ChangeSinglePlotName.vi, is a subVI). This will set the channel names for the DDT signals as suggested in the KnowledgeBase article in the related links section. The names you set from LabVIEW will be shown as labels on the XY Graph legend and displayed into the DIAdem report.



Related Links:
KnowledgeBase 34A6PEFP: Setting Plot Names With Dynamic Data


Attachments:

LVchangeSignalName.vi

ChangeSinglePlotName.vi






Report Date: 08/21/2008
Last Updated: 08/27/2008
Document ID: 4OK84VBG

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
  1 2 3 4 5
Please Contact NI for all product and support inquiries.submit