07-14-2013 01:51 AM
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
07-15-2013 06:35 PM
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
07-19-2013 12:29 PM
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
11-15-2013 08:21 AM
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.
11-18-2013 11:20 AM
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.