LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Using C# program in Labview

Hello, I am new to LabView. I have version 7.1. I have developed experiments in MS Visual Studio using C#. The department that I work for wants to convert to LabView is there anyway that LabView can read the code that was developed in C#.

Thank you all in any help you can give me.
0 Kudos
Message 1 of 6
(3,396 Views)
You can create dll's or executable that can be used in LabView.

Look for "Call Library Function" if using dll's.
Look for "System Exec.vi" if using executables.

JLV
Message 2 of 6
(3,386 Views)
I forgot to mention:

There are also tools under "tools/advanced/.NET"
Message 3 of 6
(3,388 Views)
Yes, the recommended way to talk to a C# DLL is via the nodes in the .NET palette. I wouldn't try the normal DLL modes because it assumes that you have standard dllexport for your APIs, which C# definately does not.

Brian
0 Kudos
Message 4 of 6
(3,365 Views)
To use a c# class in labview call the constructor node from the labview .net tools, this will return a handle to the object created this handle once wired to a property node or method node will give you access to all (public?) methods and poperties of that particular class, unlike dlls all method signatures seem to be automatically known. I have been able to easily invoke c# forms and manipulate them in labview but have not seen a great need you to use the c# classes available from FCL provided from Microsoft. I am sure this will change as .net gains popularity.
-Paul
Paul Falkenstein
Coleman Technologies Inc.
CLA, CPI, AIA-Vision
Labview 4.0- 2013, RT, Vision, FPGA
0 Kudos
Message 5 of 6
(3,354 Views)
Thanks falkpl for sharing that info.

I agree that it will gain popularity.

😄
0 Kudos
Message 6 of 6
(3,332 Views)