02-17-2006 08:14 AM
02-17-2006 08:44 AM
Hi,
Try this example
Regards
Ray Farmer
02-17-2006 09:04 AM
Ray,
Thanks for the example, unfortunatly I don't have the tools to see how this was accomplished. "It requires Microsoft Visual Studio 7 with version 1.1 of the
Dot Net Framework to compile. The example source code is written in CSharp."
But the executable worked and it proves to me that it can be done. Now I need to recreate parts in Labview. Any ideas?
02-17-2006 09:23 AM
Ok, progress is being made. By trial and error I have discovered that I need to have multiple execution managers, not just multiple execution viewers. Please correct me if I am wrong.
BTW/FYI, I am modifing the simple NI labview version of the operator interface
02-17-2006 09:26 AM
Paul,
Sorry about that. This has come up before which is why I remembered the example.
Can you work anything out from the Csharp code?
Regards
Ray Farmer
02-17-2006 09:44 AM
02-17-2006 10:09 AM
06-05-2006 07:35 PM
Hi, All:
With the similar approach, I create a multiple window user interface with CVI. Although it can run, the Execution view doesn't display
anything while execution. In my user interface, there is an applicaiton manager resident in Parent form, and every child forms has
itsown Exection view and Manager.
Referred to the C# sample, in the function :private void DisplayExecution(Execution execution)
{
....
if (executionForm == null) // execution is not in a form, make a new form
{
executionForm = new ExecutionForm(this, this.axApplicationMgr, execution);
this.mChildFormsKeyedByViewMgr.Add(executionForm.GetViewMgr().GetOcx(), executionForm);
SetNewChildFormLocation(executionForm);
}
...
I guess the execution form "hook" the exectuion view manager via Add(), so the exectuion view can be updated properly.
And according to reference manual of teststand, it mentions that "The application sets the ExecutionViewMgr.UserData property to
attach a handle, reference, or pointer that represents the window." But when I try to utilize this method, I got 2 problems:
1. How to get a window handle of a CVI panel? As execution view are resident in child panels, so I may need the window handle of
individual child panels.
2. Even the window hanlde is gotten, how can I convert it to a VARIANT Type? According to the function panle of
TSUI_ExecutionViewMgrSetUserData (, NULL, ), the last parameter is a "VARIANT".
Any comments or instructions for my assumption?
Thank you for your help.