DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

Using dialogs with Python bug

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:

SeryDavid_0-1605778885140.png

 

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.

 

0 Kudos
Message 1 of 3
(1,636 Views)

Hello,

 

Have you checked DIAdem 2020 Known Issues article?

 

__________________________________________
The best way to thank, is to give KUDOS
0 Kudos
Message 2 of 3
(1,570 Views)

I checked it now and there does not seem to be a similar issue mentioned.

0 Kudos
Message 3 of 3
(1,558 Views)