LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How many copies of class method VIs in memory for multipe objects?

Hi,

 

    I wonder how many copies of class method VIs are loaded in memory for multipe objects? Does it depend on VI reentrant? Thansk for help!

 

    Tom

 

 

0 Kudos
Message 1 of 3
(2,599 Views)

The number of instances of a VI in memory has nothing to do with how many objects you have. A LabVIEW class wire is exactly the same as any other wire (a DBL or a string), so the number of instances would be one for a non-reentrant VI and N for reentrant VIs (where N depends on how many instances you dropped, whether or not the VI is set to shared reentrancy, whether you are loading VIs dynamically, etc.).


___________________
Try to take over the world!
Message 2 of 3
(2,592 Views)

Just one, unless you configure the VI to allow reentrant execution.  If the VI is configured to allow reentrant execution, the VI is loaded once, but space is allocated for multiple copies of the VI's local data (see http://digital.ni.com/public.nsf/allkb/98847B4E4C715E6D86256C59006B57CC ).

 

Mark Moss

Electrical Validation Engineer

GHSP

Message 3 of 3
(2,591 Views)