‚Č° Menu

05 VISV Optimizing LabVIEW Class Loading with the Factory Pattern

 

VISV-002 ThumbnailIn this video tutorial, I share with you a technique that I use, when I want to be selective of how LabVIEW child classes load into memory. Specifically, by using the Factory pattern, I can dynamically load a class into memory and create an instance of a child class on-demand.

It's important to note that LabVIEW loads classes into memory automatically whenever class objects are used in VIs.

To demonstrate these concepts, I am using a code example from VISV 002. Take a look at that video if you want a more in-depth walkthrough of the code. Here, I attack the problem of how to limit loading of classes to only the ones you need for your current application run.

Download Code Used in this Tutorial: (LabVIEW 2009)

Hey, this is Michael Aivaliotis! Thanks for reading my post, listening to the podcast or watching the video on this page. When I’m not posting content on this site, I help companies develop automation powered by LabVIEW. If you want to find out how I can help you succeed with your next LabVIEW project – Contact Me.

Leave a Comment