LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

External C# Application generating event callback

I am developing a LabVIEW application that has to contact a .NET assembly to get the most current data that is available and display it on the screen.  Currently I am using the Timeout feature of the Event Structure to ping the assembly for data, whether the data is new or not.  Howerver I would really like the .NET assembly to tell me that there is new data available rather that me asking every second or so.  I have looked into using the Register Event Callback feature, however the example that comes with LabVIEW is not very helpful since the event callback is being generated by a knob on the front panel.  Also I am not a C# developer, I know enough to be dangerous.  I am working with anohter developer who is very familiar with C#, however after having him look at the Event Callback for DataWatcher example he was not sure how to implement an event from an exteranal assembly.

 

Any suggestions that I could pass along to my colleague?

 

Thanks,

Matt

0 Kudos
Message 1 of 2
(3,211 Views)
The turning of the knob on the front panel is generating a user event that your application is handling. Your application needs to implement its own event. This is done using delegates. If your colleague doesn't know how to do this, a good place to start is at MSDN. There are also tons of examples online.
0 Kudos
Message 2 of 2
(3,210 Views)