From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Can I use "conditional disable diagram" and "diagram disable structure" to disable and enable a section of a code programmatically? If yes, how?

While this is perfectly valid I prefer the OOP method of using classes and dynamically loading the specific class instance required at runtime. An added advantage of this approach is that you can use packed project libraries and add new implementations of the class without requiring the application itself to be rebuilt. The new PPL can be added to the folder that the classes are loaded from and the application has ben extended. This does require one to adhere to the SOLID principles of design but this does provide a lot of flexibility.



Mark Yedinak
Certified LabVIEW Architect
LabVIEW Champion

"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot
0 Kudos
Message 11 of 11
(163 Views)