DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

Controlling Diadem from c# application

Hi,

I am using diadem advanced edition 2102.

 

My project include c# application that need to controll diadem. i found out that ToCommand object can do the job, and i succeeded with that.

 

My application needs to control diadem graph player - play/stop/goto..

 

***The problem is when i click play(the diadem graph player start moving) but if i want to stop diadem after play was Clicked (from the c# application) diadem must to be stopped from himself to get c# application stop command,
that means that after play was clicked i need to stop the diadem himself in order to send him new commands.

 

thanks

0 Kudos
Message 1 of 5
(6,203 Views)

How are you trying to stop DIAdem? what functions are you using for that?

 

http://forums.ni.com/t5/DIAdem/diadem-and-c/td-p/450631

National Instruments
Applications Engineer
0 Kudos
Message 2 of 5
(6,167 Views)

Hi Oz,

 

The Cursor.Play() method has a boolean parameter that controls whether the command returns synchronously (1) or asynchronously (0).

Call WndShow("VIEW")
Set Cursor = View.ActiveSheet.Cursor
Call Cursor.GotoStart
Call Cursor.Play(0)
MsgBox "Done"
Call Cursor.Stop

Tthis sequence of commands works in a DIAdem VBScript, and it ought to work through the ActiveX layer (though I haven't tested it).

 

Brad Turpin

DIAdem Product Support Engineer

National Instrumetns

 

Brad

0 Kudos
Message 3 of 5
(6,132 Views)

Dear OzShimon,

 

Can you please send me the code you have used in c# to control Diadem? I am new to Diadem and have no clue how to use it in c#. I am also trying to send an excel sheet as input to diadem to create groups and channels.

 

Thanks in advance.

0 Kudos
Message 4 of 5
(5,964 Views)

Hi EagleEye,

 

I would go ahead and post a new thread.  Since this thread is older it will not get any traffic on it unless people specifically search for the topic.

Peter T
Applications Engineer
National Instruments
0 Kudos
Message 5 of 5
(5,930 Views)