04-01-2015 01:31 AM
Hello,
I have a main VI which have subVI's inside case structures set up to show FP when called and be modal.
These subVIs have a subpanel that will pull up a dynamicVI using RunVI invoke method.The dymaicVIs path is built using application directory constant+the VI name to the invoke method.
now the main VI is built into exe with the dynamicVIs in always included list.
when i run the main exe i am getting 1026 error VI reference invalid.
Plz help
Thanks
Solved! Go to Solution.
04-02-2015 11:32 AM
Hi Freemason,
The problem could be coming from the use of relative paths, because the path can sometimes change when building an application. Double check to make sure they are calling the right path. You can also try changing the AutoDispose Refnum in your run VI invoke node to false. It is one of the methods you can select in your run VI invoke node. If neither of these solutions work, run your code using the highlight execution function. If you implemented error handling in your program, you should be able to see the source of the error.
If you’re still having issues, could you post some screenshots or your actual VI? I may be able to get a better idea of the issue that way. I’ve also attached an example VI that uses multiple subVIs and a subpanel for reference. Hope this helps.
04-02-2015 03:17 PM
it got fixed when 8.2 layout is enabled in the advanced tab.
what is the non 8.2 layout ? how is it different in its structure that it pops up the error.
Thnks for your help, appreciate it
04-03-2015 09:32 AM
I'm not sure I fully understand exactly what you did. Which advanced tab did you find the 8.2 enable in?
04-03-2015 06:11 PM
Choosing the 8.X file layout will change the path that your referenced VIs are located when you build your executable.
http://zone.ni.com/reference/en-XX/help/371361K-01/lvconcepts/referencing_files_in_applications/
If you choose that layout option you will just reference the vi you are calling where having the option unselected will mimic your file structure layout as it is in development.
04-03-2015 06:55 PM
i am curious to know in what situations the non 8.2 layout is a benefit to me if the exe is built and the VIs are not accessible ? should the internal file stucture matter to me?
04-06-2015 02:35 PM
The purpose of the 8.x layout is to help with creating correct file paths. It organizes the source files in your directory in one place. The internal file structure won't make a difference to your overall code. You won't see a huge benefit by always running in the 8.x layout, it is just there as a tool to make sure everything is where it needs to be. Hope this helps.