11-15-2011 01:05 AM
I'm working on a labview active-object architecture.. and Im struggling to find a elegant method of instantiating multiple active objects (VIs) complete with front panels and event structures that can handle FP events (interacting with FP controls of the clone).
I know that reentrant VI's only clone the dataspace of a VI (so from what I gathered not good for FP events).. VITs create full copies and work as expected in the development environment, but I get strange "VI already in memory" errors when I do a quick test build to see if it works in an exe.
XControls can be used to do the FP event handling in the AO, but they have the very annoying habit of locking any classes used within them..
Has anyone else got some wisdom and experience to share?
oh.. using LabVIEW 2010 sp1
11-15-2011 01:21 AM
I thought re-entrant vis can handle the FP events prety well..!!
11-15-2011 01:30 AM
@WireJunky2 wrote:
I know that reentrant VI's only clone the dataspace of a VI (so from what I gathered not good for FP events)
That was only true in the past (~ <8.0). Today, as already suggested, reentrant clones have their own FP and you should use them.
11-15-2011 02:31 AM
I'll have to go and test reentrant VIs again.. maybe I missed something. I'll be very happy if it does work as advertised