07-11-2007 10:12 AM
07-11-2007 12:04 PM
07-11-2007 02:48 PM
07-11-2007 03:00 PM
c:\my development directory\main.vi\kill.viYou need to strip the path one time to remove the file name, after which you can add the new one on. By the way the reason this works is that in a built application all the VIs reside in one library so while the path as a whole is different in a built executable (it includes the name of the executable), the relative path stays the same.
07-11-2007 03:15 PM
That's what I was thinking too, but the "Launch Tag Engine I.vi" example (C:\Program Files\National Instruments\LabVIEW 7.1\examples\lvdsc\_common\Tag Engine.llb) uses this method to get the path, and upon running the example with a couple probes on the lines, it did in fact work in fabricating the path. I'm thinking being that it is a relative path that is being attached to Build Path ("..\Kill Engine.vi"), the ".." goes up one level, ie getting rid of the "Main.vi", then adds the "\Kill Engine.vi" to the path.
This does make a lot more sense to me now, specifically how the library is structured and the reasoning for this methodology.
Mike you have been most helpful. I greatly appreciate your assistance.
--
Sean