Performance of "Get LV Class Default Value"

Updated May 3, 2018

Reported In

Software

  • LabVIEW

Issue Details

I am using the "Get LV Class Default Value" to load classes dynamically and was wondering about it's performance with many larger classes. It seems like it gets slower as more classes are loaded.

Solution

In general, it's not unexpected for it to take longer as you load more classes. This is due to a variety of factors including checking to see if it's already loaded. As mentioned in the Get LV Class Default Value VI help page, when loading a class, LabVIEW first has to check if that class is already in memory. In order to to so, it has to go through every class already loaded into memory and do a comparison before trying to open that class. This means that the more classes that are in memory, the more comparisons LabVIEW has to do before deciding to load the class or use one in memory already.

Additional Information


Another significant factor is that when you load a new class you must ensure that not only is it not broken, but that all the other items in the hierarchy are not broken either. One broken class will break the entire hierarchy.

WAS THIS ARTICLE HELPFUL?

Not Helpful