LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Programmatically add a parent interface to a class

Solved!
Go to solution

I am trying to programmatically add a parent interface to a LabVIEW class in LabView 2021.  The LabVIEW help leads to be believe that I should be able to do this using the Add Parent Interface method (one of the LVClassLibrary Methods) using an invoke node.  I get a reference to the class and pass that to an invoke node, but the Add Parent Interface method doesn't show up on the invoke node.  What am I doing wrong?  Is this the wrong way to get the class reference?  See the attached image.

0 Kudos
Message 1 of 3
(133 Views)
Solution
Accepted by topic author cbfsystems

Your image can't be downloaded at the moment...

 

Does the Invoke Node say LVClassLibrary when you wire in the reference? If so, I think you should have the right type of reference.

 

Do you have VI Scripting enabled? You can't see that method unless scripting is enabled.

 

(Note that many such methods, including this one, are not available in the run-time engine. Don't attempt to use them in an executable.)

0 Kudos
Message 2 of 3
(101 Views)

Thank you very much.  I didn't have VI scripting enabled.  It was enabled previously, but then I upgraded to LabVIEW 2021 and didn't enable it in the new installation.

0 Kudos
Message 3 of 3
(97 Views)