ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
PrimaryKey

Allow user to unload a class from memory programmatically - plug-in architectures will benefit

Status: Declined
There are technical limitations preventing a LabVIEW class from being unloaded once it is loaded. More details in AristosQueue's post here: http://forums.ni.com/t5/LabVIEW-Idea-Exchange/Allow-user-to-unload-a-class-from-memory-programmatica...

There are some cool methods to load VIs programatically and also to load classes programatically. There is however no way to unload a plug-in class from memory.

 

This should be a VI available in LabVIEW to do this kind of operation programatically. It can look like this:

 

Usage.png

 

 

Documentation.png

 

Adding this method to LabVIEW would be a big benefit for large architectures, I think.

Piotr Kruczkowski
Certified TestStand Architect
Certified LabVIEW Architect
3 Comments
PNR
Member
Member

True, this sometimes causes my main VI to have a broken arrow after the first run, just because LabVIEW keeps the plug-in classes into memory. Close Project -> Open Project works but is tedious.

AristosQueue (NI)
NI Employee (retired)

There are technical limitations preventing this idea from ever being implemented. Short story: It would require the ability to track all instances of the class in memory and such tracking imposes a severe performance penalty that hampers execution of classes everywhere. This is a limitation imposed by most other programming languages that support dynamic type loading for similar reasons. For details: https://decibel.ni.com/content/docs/DOC-13724#comment-14806

Darren
Proven Zealot
Status changed to: Declined
There are technical limitations preventing a LabVIEW class from being unloaded once it is loaded. More details in AristosQueue's post here: http://forums.ni.com/t5/LabVIEW-Idea-Exchange/Allow-user-to-unload-a-class-from-memory-programmatica...