From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
05-28-2020 12:47 AM
Hello,
I have some old classes and in lv2020 i need them as interfaces. They have no private data. Is there a way in LV to change lvclass to interface and interface back to lvclass?
05-28-2020 06:35 AM
I don't know what you mean by "interfaces".
05-28-2020 07:27 AM
I mean interfaces:
I wanted to convert some classes from 2018 to interfaces in 2020 without recreating all the methods manually.
05-28-2020 07:53 AM
@paul_cardinale wrote:
I don't know what you mean by "interfaces".
06-03-2020 10:10 PM
From what I can see it doesn't look like you can change a class to an interface easily. There is an 'Is Interface' property, but it's not writeable, and hand-hacking the xml in the lvclass file is probably non-trivial
I've thrown together some scripting that will copy all of the method VIs from a class into an interface which might get you what you need, or at least close enough that tidying things up by hand is possible
Cheers
Brett
06-03-2020 11:39 PM
One other thing, you may need to turn on VI Scripting for this to work - this is in the Options dialog under the Tools menu