LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Question about using a .NET library

Solved!
Go to solution

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!

0 Kudos
Message 1 of 3
(2,744 Views)

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

Regards,
Srikrishna


0 Kudos
Message 2 of 3
(2,736 Views)
Solution
Accepted by topic author cwpatterson1

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.

Message 3 of 3
(2,727 Views)