This post is going to cover the process of creating a C# Class Library, creating a C# Form Application to test the library and then finally how to bring it in to LabVIEW. This is how I made my LabSSH and LabSFTP libraries. When interfacing directly to a third party driver/library, the LabVIEW code to accomplish a relatively simple task can be very messy and cumbersome to read hence the C# wrapper with simple implementation in LabVIEW is my preferred method. Sometimes it’s easier to write the wrapper in C# and then implement the library directly in LabVIEW. There are many reasons why you would want to include C# dll’s into a LabVIEW project but the two that come up most often for me is reusing legacy code that was initially written in C# and writing a C# wrapper when wanting to use a third party driver or library. Knowing how to include C# libraries into a LabVIEW project can be a very useful tool.
0 Comments
Leave a Reply. |