12-14-2008 07:16 AM
unsafe public class Class1
{
public delegate void PseudoCallback_delegate(int A);
public event PseudoCallback_delegate Event1;public void PseudoCallback(int Event_Data)
{
Event1(Event_Data);
}
}
12-15-2008 05:48 PM
Hello Sashok,
I am a little bit unclear about how these two applications will be interacting with each other. Are you planning on calling a C# dll from within LabVIEW? Also how do you plan on subscribing to particular LabVIEW events? Let me know and I will try to find more information for you.
12-16-2008 01:34 AM
Hi, Burt!
My main acting application is C# window application, from that C# application I should call some data grabber written in LabVIEW. This data grabber has events inside (like: data is ready to be read, data is empty and so on). And my goal is to respond to those events happening in LabVIEW data grabber dll. The response should be in my C# main application. So, somehow I should see those events inside C# application. How can I do that? The one possible solution is to work with polling mechanism. But I don’t like that way, I want it to be pure event driven application.
Regards
Sashok
12-16-2008 05:17 PM
Hello Sashok, I am not sure whether or not there is a way to do this. I am currently looking into it. I am curious why you have decided to set-up your application this way. If you have created a .dll from VIs you have made, could you do the event handling in LabVIEW and return any final values. Also what exactly do you plan on doing with the event once you receive it in C#? Unfortunately I am still going to need some more information before I can make any real helpful suggestions. In the meantime, I will continue to look for a way to see LabVIEW events in C#.
12-21-2008 01:01 AM
Hi, Burt! Thanks for your response on LabVIEW C# issue. Let’s assume that LabVIEW data grabber dll writes series of sets of data on disk (data could be voice or video), each time new series. As I receive event, for example that series was successfully written to disk I will manipulate with data written.
The possibility to work with LabVIEW event handling exists, same as pure C# code, but the problem is that different parts of my application were developed by different people.
Regards
Sasha
12-23-2008 12:12 PM
12-24-2008 01:09 AM
Hi, I am sorry, but I can’t send you my code, since it’s the proprietorship of the company I am working in. I think that you can emulate such dlls very easy. You should have very simle LabVIEW dll that only fires events, and C# .NET main program that should run this dll and response to the events. That’s it.
Regards
Sashok
12-26-2008 01:30 PM
Hello Sashok,
I am working on reproducing this but I have one more question for you. What type of events are being generated by this dll? Do you happen to know if they are an ActiveX event, a DAQ Hardware event, or a User Generated event? The way the events get handled are different depending on which type of event it is. Thanks.
07-01-2009 01:42 PM
07-06-2009 03:53 PM
Hi Mauricio J,
I am not too familiar with C but what type of solution were you looking for. Something that is more efficient?
Flash