LabVIEW APIs Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

Possible Ways to Interface C# with NI LabView

My team and I are currently working on a project in which our goal is to determine possible methods to integrate an embedded system into the existing control system. We have looked into the cRIO controller as a potential solution but there are some bottlenecks. One of the biggest problem is that the existing program code has been developed in C# which may cause compatibility issues with the National Instrument’s environment. We are curious to learn more about methods that can be utilized to successfully interface the existing C# code with the NI environment. Would this be a useful and viable solution for the long run? Please fee free to reach out if any more information would be needed from our end. We would really appreciate any other possible solutions. Thank you very much! 

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

A C# (framework) DLL can often be used in LabVIEW.

 

Delegates, inheritance, where C# provides an interface to inherit from, are not possible from LabVIEW.

 

.NET Events can be used in LabVIEW, although you have to use event callback that are a bit tricky. 

 

Of course you can always make C# applications and an interface (TCP/IP?) and make LabVIEW use C# that way.

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