Example Code

XTable 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 Xtable with user dialog box in DIAdem. A Xtable can assign a cell type to a column of the extended table. The cell type specifies what type of control is assigned to a column. Button, CheckBox, ChnComboBox, ChnListBox, ComboBox, EditBox, ListBox, or Text are valid cell types. 

 

The functions of this example are as follows:

  • Xtable imports data from the Data portal loaded into the DIAdem.
  • Xtable can be viewed with filters by channel group, and the column and row of the table are Channel name and Channel data, respectively.
  • Each data can be modified/copy/paste, and the channel name of each cell is shown as tooltip when mouse over.
  • Modified data is reflected in data potal data.

 

 

 

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_Xtable_Examlple.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.

 Dialog Xtable example image below :
 

 

 

 

 

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

Contributors