05-23-2013 04:59 AM - edited 05-23-2013 05:00 AM
I have an application in LV2012 SP1 that uses both FTP VIs and InternetTK VIs (from the deprecated Internet TK).
When I build the application to an executable, I end up with 2 directories next to the exe: NI_FTP and NI_InternetTK_Common_VIs. Both have 5 VIs with the same names in them (from their corresponding .lvlib, e.g. "Get Case Matching.vi" or "No Time Out Error.vi").
In LV2011 I didn't have any folders with VIs when building the same application.
Why do I get these 2 folders when building the executable in LV2012? Is there any way to have the application builder pack these VIs into the exe? I thought having 2 VIs with the same name in different lvlibs should not be a problem.
Solved! Go to Solution.
05-23-2013 06:51 AM
Have you checked the flag "Use LabView 8.x file layout" (Advanced tab in Build properties)?
Regards,
Marco
05-23-2013 07:01 AM - edited 05-23-2013 07:02 AM
Yes, we use the 8.x file layout since we rely on that structure inside the exe (the application was initially in LV8.5). Would require major changes if we change that. Do you think this would change anything? I will try.
05-23-2013 08:10 AM
Yes, disabling 8.x file layout seems to make those folders disappear. I guess we'll have to adapt our code then...
Thanks.
05-23-2013 09:45 AM
With the ability to have static VI references I see very little reason to use paths inside an EXE, or even to use VITs in applications any more. Your code doesn't need to be changed much to support the newer file structure. Just replace the code that you did have figureing out the path to the EXE with a static VI reference to the VI, and then get the Path using a property node, then all your existing code should work using the path to the VI no matter where it is in the EXE. Or of course you can just check use 8.x file layout.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord