01-30-2015 02:16 AM
Is there a way to make persistent copy of a reference to any VI Server object?
Consider this code (it is simplified idea of what I'm trying to archieve):
If I close reference in one process, it becomes invalid in other. Is there any way to prevent this? I mean - any simple way, something like SpecialPersistentCopyMakerMegaSecretStuff.vi, hidden somewhere in vi.lib?
01-30-2015 02:31 AM
try to create a refnum for reference.
or try the VI server reference
01-30-2015 03:33 AM
01-30-2015 03:37 AM
@PiDi wrote:
Is there any way to prevent this? I mean - any simple way, something like SpecialPersistentCopyMakerMegaSecretStuff.vi, hidden somewhere in vi.lib?
No.
The question shouldn't actually extend to all VI server references, because for many of them, the close primitive actually does nothing. But let's extend the question to references in general (queue refs, etc.) and then you have some options: