12-01-2007 01:13 AM
12-03-2007 09:21 AM
Hey Daniel,
I looked into this issue and found that LabVIEW only stores file paths in relative format. There does not appear to be a method to force your deployed VI to use absolute file path references for its sub-VI locations. However, I would suggest that you copy your sub-VIs to the directory that your top-level VI is in to speed up the search time. Since the first search path location is the top-level VI’s directory, this should speed up the time it takes to find all of your sub-VIs in your deployment system. I hope this helps!
12-03-2007 07:43 PM
12-04-2007 12:29 AM
Hi Daniel,
The first place a VI looks for its sub VI's is in the original positions when the VI's were saved. Then it starts using the search paths.
Is this happening with using the SeqEditor or the Operator Interface?
Regards
Ray
12-04-2007 01:00 AM
12-04-2007 02:41 AM
12-04-2007 04:08 AM
12-04-2007 04:00 PM
Hey Daniel,
I have two potential options for you. The first option involves setting the Load Options of the step that is calling the top-level VI to Preload when opening sequence file. You can access this option by selecting the step that calls the top-level VI in the sequence editor and selecting the properties tab in the step settings. Once there, select Run Options on the left and then change the Load Option to Preload when opening sequence file. This will shift the ~30 second load time to the start up of the Operator Interface.
The second option involves compiling this code into a .dll. If you open this Top-level VI in LabVIEW and add it to a project, you will be able to compile this code into a .dll. You can refer to “Distributing Applications with the LabVIEW Application Builder” at http://zone.ni.com/devzone/cda/tut/p/id/3303 for a general overview of how to use application builder. Once you have built everything into a .dll, you can call this code module from TestStand without all of the pre-loading overhead of LabVIEW. Have a great afternoon!
12-04-2007 04:50 PM
Hey Daniel,
There is yet a third option that could potential speed up the pre-load time for this VI. If the VI was written in another LabVIEW version than you are currently running it in, I would suggest a mass-compile on the top-level VI and all of the non-library sub-VIs. To perform a mass compile, open up LabVIEW and select Tools » Advanced » Mass-Compile…, then select the directory where these VIs are located. Make sure that all of the VIs are not read-only because the mass-compile will throw an error. After you have successfully mass-compiled the directory, try running the VI through TestStand again. I look forward to hearing how these suggestions work for you.
12-04-2007 08:50 PM