LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Using CVI callbacks to service .NET delegates

I need to create a test program primarily in CVI. However, significant work is done using C# .NET. I now have a .NET assembly dll ready to be used by the CVI program. I was able to create a .NET controller in CVI - and the corresponding wrapper. I can access the assembly.
 
Much of the operation occurs within the assembly. The status of these operations are fired by assembly delegates (events) for the container program. I'm thinking that I need to create a CVI callback for each assembly delegate.
 
The premise is that the main program runs in CVI.
 
Anybody know how to do this.....
 
 
Thanks
0 Kudos
Message 1 of 2
(3,051 Views)
Currently, CVI does not support calling C callbacks for .NET events and delegates. Also, note that CVI does not support hosting .NET controls. If your assembly is generating events, one way to notify your CVI program about the events is by calling a C DLL that is also loaded in the same program using P/Invoke when the event occurs - the DLL would communicate with the rest of the program and could optionally call a C callback. A variation on this is to have the entire CVI code in the DLL and let the .NET assembly "run" the program.
0 Kudos
Message 2 of 2
(3,014 Views)