DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

DIAdem problem with more than 2 instances

Hi,

I am invoking DIAdem from a COM through tocommand. My work calls the DIadem instances whenever a button is clicked. I noticed that only two instance of DIAdem work correctly if it a 3rd instance is invoked then the problem arises, I dont get a correct output. Can anyone let me know if my analysis is correct and how can I solve this problem. Currently I am working on DIAdem9.1, but observed the same problem in 9.0 too.

Also, when I am calling the DIAdem in invisible mode, can anyone help me to trap the error messages that DIAdem gives,if any like Script not found etc.

Expecting your valuable response at the earliest.
Thanks,
Priya
0 Kudos
Message 1 of 4
(3,789 Views)
Hi Priya,

You can control the DIAdem instance by the Instancing-Key.
In the DIAdem help you can find the following:

DIAdem Entries in the Windows Registry
During installation DIAdem generates the following general entries in the Windows registry:

HKEY_CURRENT_USER\Software\National Instruments\
HKEY_LOCAL_MACHINE\SOFTWARE\National Instruments\DIAdem

Also in the path [HKEY_CLASSES_ROOT\CLSID\{285E4FB2-F633-11D1-85DC-008048D9A408}\StartParameter] DIAdem additionally generates the following entries that affect the process of starting DIAdem using OLE:

DesktopFile:
Specifies the desktop file. Corresponds to the program start parameter /D.

SystemPath:
Specifies the system directory. Corresponds to the program start parameter /S.

Commands:
Specifies a DIAdem command. DIAdem executes the command directly after the start of the program. This entry corresponds to the start parameter /C.

Instancing:
Specifies whether you can start DIAdem using OLE repeatedly. If this value is 0 Windows only starts a DIAdem session, if no DIAdem session is open.

I hope this may help you

Greetings

Walter
0 Kudos
Message 2 of 4
(3,778 Views)
Hi Walter,

I am unable to change the instacing in the registry. The registry does not allow a blank and takes a default value whatever was entered lastly. So unable to work with multiple instance. Can you please provide me with further information?

Thanks,
Priya
0 Kudos
Message 3 of 4
(3,753 Views)
Hi Priya,

It's not necessary to create this key, it already created by DIAdem.

You can find that key in [HKEY_CLASSES_ROOT\CLSID\{285E4FB2-F633-11D1-85DC-008048D9A408}\StartParameter]

There you can change the value of "Instancing" to 1

Of course you need administrator access.

I hope this will help

Greetings

Walter
0 Kudos
Message 4 of 4
(3,746 Views)