LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Error 1003 on second and subsequent opens of VIT

I have a VIT called dynamically (a graph) that works fine in development mode. When my app is built however, only the very first call to open the graph is successful, second and subsequent calls fail with Error 1003. None of the VIs in my app are broken. The VIT properties are set for REENTRANT and PREALLOCATE (send in the clones) using LabVIEW 8.5.
0 Kudos
Message 1 of 5
(2,851 Views)
I should also mention that the VIT was built as part of my .exe, I'm not loading it off disk.
0 Kudos
Message 2 of 5
(2,846 Views)
For starting any VI dynamically it is important that the started VI has opened a reference to itself, before the Caller closes the reference.

The called VI will have an open reference when the FP is open.

The fact that it works in dev mode and not in exe, could indiacte a timing problem.

I found the following document very usefull in VI template dispatching.

André
Regards,
André (CLA, CLED)
0 Kudos
Message 3 of 5
(2,833 Views)
I found the problem. If the VIT is in a .lvlib, you can't open more than one instance. Now to find out why.
0 Kudos
Message 4 of 5
(2,818 Views)
Strang, but good to know when I convert my code to LV 8.x.

André
Regards,
André (CLA, CLED)
0 Kudos
Message 5 of 5
(2,798 Views)