05-10-2006 09:54 AM
05-11-2006 01:44 PM
Hi Matthieu,
Sorry, but none of that is possible in DIAdem 10, and much of that will probably never be possible, though I am still holding out hope for non-modal SUDialogs in a future DIAdem version.
Your only option is to make a synchronous SudDlgShow() call and wait until the SUDialog terminates before the parent VBScript continues.
Unless you want to try to launch a second instance of DIAdem and have it launch a SUDialog, but I don't think you're going to get the behavior you want that way...
Regards,
Brad Turpin
DIAdem Product Support Engineer
National Instruments
05-12-2006 02:17 AM
Thanks Brad for your answer.
Finally, I find a possible workaround. I create my user interface in LabVIEW, I call the VI from my DIAdem script with the "Run" Method and the "Wait Until Done" option set to False. And during the VBS script, I use "GetControlValue" and "SetControlValue" methods of VI Server to update my UI.
I can also run my VI (the UI) from LabVIEW and call my script with the "DIAdem Run Script" VI of the DIAdem Connectivity Toolkit with the option "Asynchronous" set to TRUE. Then, I use the "DIAdem Get/Set Variable" to share data between the UI and the script.
To finish, I would like to make a product suggestion. It seems to be possible to integrate the ActiveX controls of TestStand in a SUD dialog. So, it must be possible to create a user interface for TestStand in DIAdem. NI already provides UI for TestStand in LV and CVI. A UI in DIAdem could be interesting if an application requires to run a set of VBS scripts in a TestStand sequence.
Best regards.
MatthieuG. ; Eurilogic