11-19-2020 03:41 AM
Hello,
I believe I encountered a bug when sending parameters from python to DIAdem dialog. I simplified the example to be as short as possible.
The python code is:
from DIAdem import Application as dd
if False:
import DIAdem_CodeCompletion as dd
param = [['Elem1@P', 'Elem1@Q', 'Elemq@R'], ['resource1', 'resource2', 'resource3']]
#param = [['Elem1@P', 'Elem1@Q'], ['resource1', 'resource2', 'resource3']]
#param = [['Elem1@P', 'Elem1@Q', 'Elemq@R'], ['resource1', 'resource2']]
dd.SUDDlgShow('BugDialog', r'C:\Users\Public\Documents\National Instruments\DIAdem 2020\Documents\BugDialog.SUD', param)
The dialog is empty, its code is:
Option Explicit 'Erzwingt die explizite Deklaration aller Variablen in einem Skript.
Sub Dialog_EventInitialize(ByRef This) 'Erzeugter Event-Handler
Dim arguments
Dim listChannels
Dim listResources
arguments = This.GetArgument
listChannels = arguments(0)
listResources = arguments(1)
End Sub
Executing the code generates following error:
However, when i uncomment either of the commented lines defining the param variable, the code is running again. It seems that the number of items in the lists affects whether the code does run or not.
Does anyone know what is happening / Can anyone forward the message as bug if it really is a bug?
Thanks.
12-05-2020 03:30 PM
Hello,
Have you checked DIAdem 2020 Known Issues article?
12-06-2020 11:35 PM
I checked it now and there does not seem to be a similar issue mentioned.