03-21-2011 12:33 PM
I'm using the Constructor, Invoke, and Property nodes to interact with a .NET library. What I want to know is how to instantiate a new object by setting it equal to the return value of a method called by an Invoke Node. I'm wondering if this is possible since there's no input to a Constructor Node.
Thanks!
Solved! Go to Solution.
03-21-2011 01:08 PM
Hi cwpatterson1,
Have you tried to place a constructor node on the block diagram?Actually constructor nodes in LabVIEW behave in such a way that,they will give out references to the functions present in them and we can use invoke nodes to use them.I think you can search examples and find out.
Thanks and regards,
srikrishnaNF
03-21-2011 01:39 PM
That's not how you would do it. A constructor node will not give you references to any functions "in them" (assuming you are referring to the class).A constructor node will simply list the various constructors that have been created for a class.
As for the question: You don't need to do anything. If the invoke node retuns an object of the class it's already "instantiated". The return object will already be of the class that you want.