LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

NET Constructor- no methods shown

I'm working with a C# developer. They have made a C# dll and have the LabVIEW constructor and invoke nodes working with that dll.

 

When I copy the dll to my computer, I can point the constructor at the DLL ok, but the invoke node claims there are no methods.

 

My question is: If a .NET dll is missing dependencies, will that stop LabVIEW invoke node from finding a list of methods? (my assumption would be that it would find them ok, but fail to run)

Josh
Software is never really finished, it's just an acceptable level of broken
0 Kudos
Message 1 of 7
(3,776 Views)

So the constructor node works ok but not the invoke node? Are you sure there are instance methods?

 

I don't believe LabVIEW frets about not finding the additional dependency at compile time but having said that I don't recall encountering it. Also that behavior might have changed in later LabVIEW versions

 

If you want to know what references the assembly actually has I often use https://github.com/isindicic/DependencyWalker.Net as it's a quick way of walking down the reference tree without going down the decompilation route.

 


EDIT: I just tried this in 2016 with an example and can access properties and methods of an assembly that is missing dependencies. However at runtime LabVIEW returns an error 1589 from the constructor node saying which assembly was missing.

Message 2 of 7
(3,721 Views)

Thanks a lot for the verification. The weird thing is, the dll developer has labview working with it and has given me his example code. He has been able to access these methods.

 

I'm able to access other windows .net calls. So there must be some difference in versions between our machines I guess? I'll get a list of versions from him

Josh
Software is never really finished, it's just an acceptable level of broken
0 Kudos
Message 3 of 7
(3,708 Views)

Hmm, he's running LabVIEW 2016 32bit, same as me.

Josh
Software is never really finished, it's just an acceptable level of broken
0 Kudos
Message 4 of 7
(3,703 Views)

Never mind, just saw that it was already suggested earlier...

0 Kudos
Message 5 of 7
(3,685 Views)

Any resolution?  I have a similar issue.  I am trying to access methods of a child class contained in a C# DLL.  I can see the methods of the parent, but if I point an invoke node to the child, I get "no methods", but there ARE public methods in the child.

 

0 Kudos
Message 6 of 7
(2,965 Views)

Your issue sounds different - perhaps start a new topic and additionally post your code (LabVIEW project zipped up and C#/assembly file).

0 Kudos
Message 7 of 7
(2,912 Views)