LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

using .NET dll created by LabVIEW with C#

When using .NET dll created by LabVIEW with C#,

How can I generate regular C# classes from LabVIEW classes.

 

For example:

For class Foo there are few static methods:

Init(int index);

SetValueA(int val);

GetValueA(out int val);

Close();

 

Calling each method Foo.Init(5);

Or

int newVal;

Foo.GetValue(out newVal);

 

How generated LabVIEW VI classes to C# clsses with interfaces.

For example:

 

Interface Device

{

                bool Init(int index);

                bool Close();

}

 

Class Foo : IDevice

{

                Public Foo(){\\CODE HERE}

                Public bool Init(int index){\\CODE HERE}

                Public bool Close(){\\CODE HERE}

}

 

Int main()

{

Foo newFoo = new Foo();

newFoo.Init(5);

newFoo.close();

}

 

 

Thanks

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