From 11:00 PM CST Friday, Feb 14th - 6:30 PM CST Saturday, Feb 15th, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Example Code

Calling Non-Modal Dialog 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

    Programming Language

  • Visual Basic .NET

Code and Documents

Attachment

Description

This example shows you how to call Modal / Non-Modal dialog(SUD) with your VB Script in DIAdem. The SUDDlgShow function that calls the SUD is a modal dialog method. Therefore, other functions of DIAdem are not available when using User Dialog. But, the non-modal dialog box call method let the parallel execution of DIAdem and SUD.

 

 

How to Use

The two different dialog calling methods in Modal and Non-Modal are implemented separately on two VBSs.

 

  • Modal Dialog method : 
    1. Open the Script tab of the DIAdem.
    2. Run the script, Modal Dialog.VBS in attached file.
  • Non-Modal Dialog method : 
    1. Open the Script tab of the DIAdem.
    2. Run the script, Non-Modal Dialog.VBS in attached file

Note : The attached dialog script is named Dlg_XTable_Example.SUD. This dialog displays the groups, channels, and data in the Data portal loaded into the DIAdem using Xtable. You can modify, delete, or add each channel data. See the related link for details.

 

Related Links

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

Contributors