LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to call function in C# DLL

What is the way for LabVIEW 7.0 Call Function Library Node to call function generated by Visual Studio.net especially C# ?
0 Kudos
Message 1 of 5
(4,269 Views)
ictsb wrote:

> What is the way for LabVIEW 7.0 Call Function Library Node to call
> function generated by Visual Studio.net especially C# ?

I have no experience with C# or better .net DLLs. But I heard that they
are not classical DLLs anymore but rather assemblies or something like
that. So I have a gut feeling that the Call Library Node will not really
work with .net assemblies.

Rolf Kalbermatter
Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
0 Kudos
Message 2 of 5
(4,269 Views)
> What is the way for LabVIEW 7.0 Call Function Library Node to call
> function generated by Visual Studio.net especially C# ?

I think Rolf is right, and you will probably want to look at the
tutorial on zone.ni.com. I searched for .NET and LabVIEW and the
tutorial was on the top. Since the .NET or C# code will produce an
assembly, the easiest thing to do is to use the .NET assembly. It is
probably possible to build a DLL instead or put a DLL wrapper on it, but
I'm not sure it is worth it.

Greg McKaskle
0 Kudos
Message 3 of 5
(4,269 Views)
Did someone have an example in LabView 8.5 of Function Library Node that call function that  generated by Visual Studio.net especially C# ?
Did someone have  a new information about this?or  someone have any special problems wuth this?
thanks alot,
Ziv
0 Kudos
Message 4 of 5
(3,967 Views)
In this case it's probably better for you to start a new thread and reference the old one, rather than replying to a thread that's just about 4 years old.

LabVIEW 8.5 can call .NET assemblies. You do not use the Call LIbrary Function Node, as LabVIEW has native .NET functions to call .NET class constructors. I've done it with the MS .NET assemblies as well as with a .NET assembly I wrote in C#. There's nothing special about it, and LabVIEW comes with plenty of example on how to do this. Just open up the Example Finder (Help -> Find Examples), and search for ".NET".
0 Kudos
Message 5 of 5
(3,953 Views)