Example Code

Tree Table Control with User Dialog box in DIAdem

Products and Environment

This section reflects the products and operating system used to create the example.

To download NI software, including the products shown below, visit ni.com/downloads.

    Software

  • Diadem

Code and Documents

Attachment

Description

This example shows you how to control Tree table with user dialog box in DIAdem. Use the Tree object to define a tree to be displayed in the dialog box. This example creates the tree contents in the script. The contents change displayed data dynamically in a different event. If you click a node, the example displays the entry you clicked.

 

The functions of this example are as follows:

  • The Xtable shows channel data, depending on the tree item selected in the channel list.
  • According to the results retrieved from Channel name search, the tree items in the Channel list are filtered.

 

 

How to Use

  1. Open the SCRIPT tab of the DIAdem, and press the button create user dialog box function.
  2. Run the attached Dlg_Tree_Example.SUD from the DIAdem DIalog Editor. (Or double-click the SUD file to launch the Editor.)
  3. Press the Test in DIAdem button to launch Dialog from DIAdem.

 

The tee example display below : 

Related Links

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.