09-06-2006 06:49 AM
09-06-2006 01:59 PM
Kenneth,
My understanding of the heart of the problem is that you have a LabVIEW OI contains VIs that have the same names as VIs that your sequences call dynamically. Since the LabVIEW OI loads first it will load "..\Program.exe\startup.vi" into memory. Later a sequence tries to load a VI named "...\Source\Components\startup.vi" which fails with error code -17600. The reason for the failure is that LabVIEW only allows one VI of a given name to be in memory at one time.
There are two copies of this VI because every VI that is not dynamically called by the OI is copied into the exe at build time. This problem can be solved by either calling the VI dynamically from the OI using VI server or by moving the calls out of the OI entirely. If you are going to move the calls, they could be moved to the sequence that requires them or into the process model sequence if it is required by many sequences. I am not familiar with your system so I can't say which is the best solution, however generally modifying a sequence is easier to do and debug then to modify the OI.
If you are unfamiliar with the process model here is a knowledge base article that describes it and how it is selected:
http://digital.ni.com/public.nsf/allkb/D9E7A0BDDDA2A87886256FD9007598D2
For more information on VI Server look in the LabVIEW examples: LabVIEW 7.1\examples\viserver\dynload.llb\Dynamic Load Example.vi