LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Accessing shared .NET methods in LabVIEW

Is it possible to access shared .NET methods in LabVIEW?  For example, is it possible to access System.Math.Sin()?  System.Math doesn't have a constructor.  And I don't see an invoke method node that doesn't require a object in LabVIEW.
 
- Kevin Hall
 
P.S. System.Math is only an example.  I know LabVIEW has its own math library.  I just need to access a static function in a class that cannot be constructed.
0 Kudos
Message 1 of 3
(2,607 Views)
Yes, you can access any public static method of any .NET class in LabVIEW. There are a couple ways of doing this.
 
1. Drop down a .NET invoke node, right click on the input terminal for the reference and say "Select Class->.NET".
 
2. If you have LV 8, bring up the Class Browser, browse to the .NET class and then drag and drop the method you want to call onto the diagram.
Message 2 of 3
(2,601 Views)
Excellent! Smiley Happy  I was confused because I still saw the reference input.  I just don't need to hook it up.
 
Thank you so much!!!
0 Kudos
Message 3 of 3
(2,594 Views)