08-31-2026 11:36 AM - edited 08-31-2026 11:38 AM
Hi Cyril,
I use the DIAdem Help's description of the ToCommand methods:
That said, 9 times out of 10, I end up using the CmdExecuteSync method.
Brad Turpin
Principal Technical Support Engineer
NI / Emerson
08-31-2026 12:41 PM
Hi Brad !
Yes perfect !
But what I meant is which commands can I use within the CmdExecute(A)Sync method ?
For example, how to find out which command I should call to empty the data portal ?
Which command should I use to load 1/N file(s) into the data portal ?
Which commands should I use to plot 1 channel into a 2D plot ?
Etc.
Is there a list of Diadem specific commands that I can call using CmdExecute(A)Sync ?
09-01-2026 02:39 PM
Hi Cyril,
The full list of DIAdem commands is available to be called via ActiveX. The only complication is that the DIAdem ActiveX servers use the old "Autosequence" calling syntax. You can get around this by calling a script with ScriptStart or by using ScriptStatement/ScriptEvaluate to pass any command that doesn't fit in Autosequence syntax:
Set Dd = CreateObject("DIAdem.ToCommand")
Dd.CmdExecuteSync("ScriptStatement('Data.Root.Clear')")
Dd.CmdExecuteSync("WndShow('SHELL', 'MAXIMIZE')")
Call Dd.IntegerVarGet("ProgramVersion", DdVer)
MsgBox "DIAdem Version = " & DdVer
Set Dd = Nothing
Brad