04-01-2011 08:59 AM
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
04-01-2011 09:08 AM
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?