09-10-2010 02:44 AM
hi,
How do i manually set which version of diadem should be called from a external command. Current calls is activating diadem 11.1 where i need to 10.2 to be called.
regards
S
Solved! Go to Solution.
09-10-2010 04:15 AM
Hello dragnov,
DIAdem provides the following variables for this:
ProgramVersion
ProgramRevision
ProgramBuild
' since DIAdem 2010:
ProgramVersionName
Detailed information you find in the DIAdem online-help.
Greetings
Walter
09-10-2010 05:05 AM
Hi
I suppose the post before didn't answer your question.
If you communicate via OLE, you always get the program which was launched at first. As I know is that a restriction of OLE. So you must close all DIAdem versions and start the one you would like to work with. In general, if you would like to use more than one DIAdem revision on the same PC it is necessary to have main user privileges.
Greetings
Walter
09-10-2010 06:38 AM
Hi,
Thank you for the reply.
i have few clarification on you suggestions, yes i'm accessing using OLE.
>>If you communicate via OLE, you always get the program which was launched at first
if this is the case, where do they right in the machine that this is the version last launched. do they keep any registry entries or some kind of tracking mechanism on this ??
I fouund in one of the registry entry created by diadem {285E4FB2-F633-11D1-85DC-008048D9A408} pointing to the newer version of diadem 'LocalServer32'. You have any idea of this?
with regards,
S
09-10-2010 07:22 AM
Hi dragnov,
You're on the right track. The general behavior is that the most recent version launched manually will be the version launched via an ActiveX command invoking DIAdem.ToCommand or DIAdem.ToDataSheet. This information is indeed recorded in the DIAdem section of the Windows registry, and you can manually or programmatically alter this registry entry prior to calling DIAdem via an ActiveX command. I don't recall the registry key name off the top of my head, but it sounds from your last post like you're staring at it already.
Brad Turpin
DIAdem Product Support Engineer
National Instruments
09-10-2010 07:22 AM
Hi dragnov,
You're on the right track. The general behavior is that the most recent version launched manually will be the version launched via an ActiveX command invoking DIAdem.ToCommand or DIAdem.ToDataSheet. This information is indeed recorded in the DIAdem section of the Windows registry, and you can manually or programmatically alter this registry entry prior to calling DIAdem via an ActiveX command. I don't recall the registry key name off the top of my head, but it sounds from your last post like you're staring at it already.
Brad Turpin
DIAdem Product Support Engineer
National Instruments
09-10-2010 07:49 AM
Hi,
Yes this is managed via registry. But I don't know whether it is possible and/or how to change that entry.
Greetings
Walter
09-10-2010 10:04 AM - edited 09-10-2010 10:05 AM
Hello dragnov,
as DIAdem implements a standard COM Sever you don't have to know the registry keys. Just start the desired DIAdem version with -regserver as parameter. DIAdem will just update the registry for this version and terminate immediatly. The next external call will use this DIAdem version.
Matthias
Matthias Alleweldt Project Engineer / Projektingenieur | Twigeater? |
09-11-2010 04:26 AM
Ok, thank you for the answer. I appreciate that response. Will try that possibiity.