Accessing Selected Channels in DIAdem SUD Programmatically

Updated May 3, 2023

Environment

Software

  • DIAdem

Programming Language

  • Visual Basic

In DIAdem using the default SUD it is possible to select multiple channels, by following the steps below, you can access those selected channels programmatically.

The selected channels in DIAdem's default user dialog (SUD) interface are stored in a variable called ChnList. In order to access this variable in a DIAdem script, use the following code snippet:
Call SudDlgShow("Main", ResourceDrv & "DlgChnSelect")
msgbox ChnList

By accessing the ChnList variable in a DIAdem script, it is possible to easily access the list of selected channels in the SUD interface. This enables to perform a wide range of operations on the selected channels, such as analyzing data, exporting data to a file, or plotting the data on a graph.