10-16-2017 10:47 AM
For some reason the invoke node is telling me there are no methods available in my dll. The .NET constructor node and the invoke node both have no problem recognizing the dll and the constructor, but for some reason they're not seeing any methods. I'm not sure if it's necessary, but I made sure the class itself is public on the C# side, and any methods I need to use are also public. Any help would be greatly appreciated.
10-17-2017 08:11 AM
Hi Brian,
Below I have linked some NI documentation and community resources which go through the process of calling .NET dlls in LabVIEW.
Calling .NET Assemblies from LabVIEW
https://forums.ni.com/t5/Developer-Center-Resources/Calling-NET-Assemblies-from-LabVIEW/ta-p/3523180
Requirements for Using .NET Assemblies in LabVIEW
http://zone.ni.com/reference/en-XX/help/371361K-01/lvconcepts/net_defaults/
Have you tested the dll in C#? Or is using it in LabVIEW the first time you've tested it?
10-17-2017 10:43 AM
Thanks for the reply. I have followed the documentation, and everything I have seems to be in line with what is said in the documentation. I have tested the dll in C# and everything functions as expected. It just seems strange to me that Labview can recognize the class and the constructor, but has trouble seeing any of the methods contained in it. Any other ideas would be appreciated.
10-17-2017 11:42 AM
Hi Brian,
I found some NI documentation that might point you in the right direction, linked below.
Why Can't I See Methods for the Calculator .NET Shipping Example
http://digital.ni.com/public.nsf/allkb/D71B8CC03F39872B862571060071130B
This discusses a solution to being unable to see methods from a .NET Invoke node, on an older version of LabVIEW. By the way, what version of LabVIEW are you using?
10-18-2017 10:03 AM
I checked the link provided and made sure I was doing everything listed, still showing no methods in my project. I will say that the calculator example does work on my end no problem. I'm using Labview 2015 sp1.
10-19-2017 12:25 PM
Hi Brian,
Could you post a screenshot of your code so I can see what is going on, on your end? I have tried to recreate the issue but am unable to do so.
12-21-2020 09:20 AM
Were you able to resolve this (3 years ago)? I have a similar issue using 64-bit LV2018. I have a C# DLL and I am unable to see the methods of a child class that should be available. We have been hacking around it by making a separate class in the DLL that calls the methods of the child class, but it would be much more convenient to NOT have to do this. I can see the methods of the parent class, but the methods of the child are not available and the invoke node shows "no methods".
12-21-2020 10:25 AM
Do those methods you can't see contain by any chance generics as parameters? List<something> for instance?
01-09-2021 11:39 AM
Nope, but thanks for the response.