06-16-2019 10:28 AM
My application my application has grown to the complexity that it would make sense to start using object-oriented features. In particular, there is one cluster that appears throughout the program that carries my output file reference and some related information.
I created a class. I tried to global-replace the cluster with the class – knowing that I would have to replace a lot of accesses with accessors. But the global replace just shows a blank if I select my class as the replacing object – and instead of replacing all, it only replaces the first one.
If I have to do this all by hand it will be prohibitive. Is there any way to replace those cluster controls and indicators in my subVIs with class things, throughout?
06-16-2019 03:23 PM
Of course, we can't "see" your project (because you didn't post any code), but I'm guessing that one or more of the following "Good LabVIEW Practices" was not followed:
With these two steps, it should be a very simple process to create a Class that incorporates the TypeDef and turn the VIs that currently process the Cluster into Methods of the Class.
Bob Schor