10-15-2013 09:20 PM
Hi,
I have a problem when I built a program into exe file.
The source code can run fine, but after turn it into exe file, it doesn't work.
It has a main vi that call sub vi by opening the vi reference, and the sub vi has some functions from NI_LVConfig.lvlib ( Configuration file functions )
Here has two pictures of the demo program.
I searched NI_LVConfig.lvlib in forum and found some topics about this, but I still didnot work out this problem.
I believe this is a problem of vi dependence, that after built, the executable file cannot find the resource of NI_LVConfig.lvlib.
Best Regards!
Vincent
10-15-2013 10:50 PM
Can you try using application directory as shown inhttp://digital.ni.com/public.nsf/allkb/FD7DE8BC8FFC256C862565F4006BE363
10-15-2013 11:02 PM
Yeah, it also can get same result by using Current VI Path.
Vincent
10-16-2013 08:01 AM
Anyone who has some idea ?
Thanks
BR
Vincent
10-18-2013 03:24 AM
Have you remembered to put your dynamically called subvi into the "always included" in the build specification? As it is called by reference it won't automatically be included.
10-18-2013 03:37 AM
Hi, Lan,
I tried my demo project, it can work in right way.
I will try my test system.
It is interesting that the dynamic subvi can be called successfully without LVConfig.lvlib functions in use, so I didn't pay attention on included vis.
Thank you very much.
BR
Vincent
10-18-2013 04:36 AM
Hi, Lan,
Please kindly help to look at my new problem.
After including all dynamic subvi into the project, the exe file turns to search VISA Configure Serial Port.
I tried to include this vi into project/re-direct the vi, but it helps nothing. The _visa.llb be included into project will affect exe file building due to it has some unexecutable file.
I use this vi in my init function for serial control.
Should I turn to include some other llb file or even other dll file for visa support?
Thank you very much!
Hope can get your kindly help.
BR
Vincent.
10-18-2013 05:09 AM
It may be that the VISA driver isn't included in the target machine?
You can include it in the "additional installers" page in the installer build.
10-18-2013 08:22 AM
But this problem occurs on my own PC, I didn't run the exe application in test machine cause the exe build problem.
From my previous experience, I think VISA driver doesn't need to build into the exe file but ask user to install NI 488.2.
BR
Vincent
10-21-2013 12:15 AM
Hi, Lan
Could you kindly help to take a look at this problem?
Thank you very much!
Vincent