From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
This example shows you how to open a scriptable user dialog (SUD) in DIAdem and exchange input data with your VB Script using a VBS class.
Description-Separate-2
How to Use
How-Separate-1
The best way to exchange data between VBS and SUD in DIAdem is a VBS CLASS.
Define a class which contains at least the variables to be exchanged.
Define a class object variable which is used as parameter for the SUD call.
In SUD define a global variable and assign the SUD parameter (class object variable) with it.
In the SUD dialog initialize event you assign the class content to the corresponding SUD object to initialize them.
In the EventClick of the OK button or in the EventTerminate of the dialog write back the content of the dialog objects to the corresponding SUD parameter (class object variable).