DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

"Diadem command line control"

Hi Cyril,

 

I use the DIAdem Help's description of the ToCommand methods:

ToCommand Methods.png

 

That said, 9 times out of 10, I end up using the CmdExecuteSync method.

 

Brad Turpin

Principal Technical Support Engineer

NI / Emerson

0 Kudos
Message 21 of 23
(345 Views)

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 ?

CLA, CTA, LV Champion
View Cyril Gambini's profile on LinkedIn
This post is made under CC BY 4.0 DEED licensing
0 Kudos
Message 22 of 23
(335 Views)

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

Message 23 of 23
(313 Views)