LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LabVIEW does not handle some .NET method calls correctly

When I try to call certain methods of a .NET assembly LabVIEW sees the parameters, but will not allow me to wire an input to some of them. This may be related to overloaded constructors.
In the attached example, I am using the FileSystemWatcher class from the .NET framework. If I use the first WaitForChanged method, which only takes a single parameter, everything works fine, but if I use the second (overloaded) WaitForChanged method (which takes 2 parameters), LabVIEW complains that the invoke node "contains an unwired or bad terminal" even though all inputs appeared to be wired correctly. Is this a bug or am I missing something.
0 Kudos
Message 1 of 2
(2,828 Views)
I do not believe that LabVIEW can handle overloaded functions. You may need to dig through the class and find the exact function you want to call. If this not possible, you can always create a assembly that handles the calls for you and then call that from LabVIEW.
0 Kudos
Message 2 of 2
(2,828 Views)