04-18-2008 11:13 AM
04-18-2008 01:46 PM
Hello Alex!
There are two possible aproaches:
A solution with 1. is quite simple. Start DIAdem as a process with /C parameters as commands (several are allowed!). There you can set variables, load data via the DIAdem command and start a script. The disadvantage is that for every new evaluation a new DIAdem has to be started. This is time consuming and after a while - if the user doesn't close the unused applications - many DIAdem are running ( DIAdem is verry resource consuming ).
An aproach with 2. is from .NET/C# easy to implement. If you open the ToCommand interface (see DIAdem Help for details) you start a new DIAdem or connect to an already running. Then you can execute every DIAdem command from your .NET application. You can choose between synchronous or asynchronous command execution. You should load the data synchronous and execute the evaluation script asynchronous.
Hope this abstract helps to decide and to start
Matthias
Matthias Alleweldt Project Engineer / Projektingenieur | Twigeater? |
04-23-2008 06:32 AM
04-23-2008 07:03 AM
Matthias Alleweldt Project Engineer / Projektingenieur | Twigeater? |
04-23-2008 10:09 AM
Hello Alex
you can bring DIAdem to top with this command:
oDIAdem.CmdExecuteSync("WndShow('SHELL','Show')")
You can find an example how to work with OLE in the DIAdem ExampleFinder with the Keyword ToCommand.
Please use oDIAdem.bInterfaceLocked to be sure that DIAdem is responding, when you send a command. If for example a dialog is open or a script is running DIAdem will not respond.
Winfried
04-23-2008 11:21 AM
Matthias Alleweldt Project Engineer / Projektingenieur | Twigeater? |