LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

.NET events

In a current project I have received this enquirey from the team developing control code for the unit being tested:

 

"We are designing the module interface C# library to interface with your LabView test suite. We have a situation to report new modules discovered (on chain of modules) back to LabView after establishing communication with the first interfacing module.

 

For example you might have established communication with BXX by following the module discover process using C# library and afterwards if you connect any BYY with the BXX then this newly discovered BXX should be reported to LabView.

 

There are two ways we can send this information from C# to LabView. One is defining an event and letting LabView to subscribe for this event and other one is creating a delegate function (like a callback function pointer) and letting LabView to register a function to call back. I’m not sure which one is supported in LabView."

 

I am admittedly not a .NET expert, so I want to be careful in my repy to them, so that we get it right the first time around. My reading of other threads regarding .NET and events leads me to believe that the initial method described it the way to go, but want input from those with more knowledge, so as I do when I'm in this situation I turn to the world wide LabVIEW community.

 

Thanks,

Putnam
Certified LabVIEW Developer

Senior Test Engineer North Shore Technology, Inc.
Currently using LV 2012-LabVIEW 2018, RT8.5


LabVIEW Champion



0 Kudos
Message 1 of 2
(2,540 Views)

Hi LV_Pro,

 

I believe you are correct that the first method would be the best solution.  This can definitely be done in LabVIEW as explained in this KnowledgeBase article.  Hope this helps!

 

Can I Catch and Handle .NET Assembly Events in LabVIEW

Justin D.

Applications Engineer
National Instruments
0 Kudos
Message 2 of 2
(2,500 Views)