LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

DLL C# Labview

How create a DLL (visual c#) for use witch LabVIEW ?

 

Is possible or not ?

 

-------------------------------------------------------------------

using System;
using System.Collections.Generic;
using System.Text;

namespace dlltest
{
     public  class Adder
    {
        public static int add(int x, int y)
        {
            return (x + y);
        }
    }
}
------------------------------------------------------

I would like use method add in LabVIEW

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

English version of this post: http://forums.ni.com/t5/Discussions-de-produit-de-NI/c-DLL-et-Labview/m-p/1508782

 

Are you asking if it's possible to create a .NET assembly in C#?   Yes. Note that in C# you'd be creating .NET assemblies, not DLLs.

 

Are you asking if it's possible to call .NET assemblies in LabVIEW?   Yes - you'd use the .NET functions in the Connectivity -> .NET palette.  Examples are provided in LabVIEW, as well as on this site. A search will yield lots of examples. You did try a search before posting, right?

 

 

0 Kudos
Message 2 of 2
(2,011 Views)