Thanks for you reply Yair
I do load the functional global (F.G.) into memory first, in my main VI (this actually is a set of costum steps used in TestStand so i load the F.G.'s in a initialization step). However, this is apparently not enough, since LabVIEW still closes the references even though they have been moved to the F.G.
I would really like not to have to open the references in a daemon, since it is quite advanced DAQ that is going on (up to 6 parallel tasks sharing triggers and sample clock across two cDAQ systems) with many different setups. Is there no way to protect a reference from labview cleanup?
Can I disable the cleanup for specific VIs or just turn it on and off when I dont want it to destroy my references?
Thanks for your reply Mellroth
What you are saying is basicly the same as Yair, move the create reference to a daemon (or F.G. type external handler) which is in memory outside the VI called by the Run VI method. It will solve the problem, but the complexity of the application will also become much greater.
If there is no way to work around the LabVIEW cleanup I guess I will have to move the creation of references to an external handler.
I wish there was a way to tell LabVIEW not to run the cleanup or to protect specific references.