01-10-2014 12:51 PM
hi, i make a program which calling " pictures" and view them in labview front panel but when i building this program to file.exe.....my program doesn't calling pictures ....i am attach program
how can i make my exe program calling "picture" ?????
Solved! Go to Solution.
01-10-2014 02:20 PM
01-10-2014 02:23 PM
this is file
01-10-2014 02:27 PM
As I told you by PN the path of the VI changes in an executable. In the EXE you need one additional StripPath before adding the picture file name...
This is stated in the context help for the "VI path" constant!
Do you need to open and close the serial port in each iteration?
Do you need to get the VI path in each iteration and each case?
01-10-2014 02:37 PM
no i don't need to open and close the serial port in each iteration.
no i don't need to get the VI path in each iteration and each case.
just i want to put the picture in the folder which have EXE file and i want to call it from that file when we execute the EXE file
01-10-2014 03:19 PM
Hello thaeralhwaiti,
As Gerd indicated, the "Current VI's Path" primitive will return the path to the current VI. If the VI is built into an executable, the path returned will also be inside the executable. If you placed an indicator on the wire or built the executable for debugging (http://digital.ni.com/public.nsf/allkb/8DA679805915DE40862572D5007B2F70 - can be useful when attempting to identify what's changed in a built exe!) you would see that the path is now <folder>/<executable name>.exe/RFID Read.vi not <folder>/RFID Read.vi.
If you want to get the folder the executable is in, you either need to use another strip path to get the folder the executable is in or use the Application Directory primitive instead.
More information on this behavior can be found with a quick internet search, this KnowledgeBase is probably what you were looking for:
KnowledgeBase: Why Does My Executable Not Work When Using the Current VI's Path Constant?
http://digital.ni.com/public.nsf/allkb/FD7DE8BC8FFC256C862565F4006BE363
Regards,
01-10-2014 04:33 PM
thank you GerdW
thank you 0utlaw
my problem is solved and my program run as i want ....but when i run my program on a computer which don't have a labview program the message is attached show....how can i solve this problem
01-10-2014 04:37 PM - edited 01-10-2014 04:39 PM
You need to install the free LabVIEW 2010 run time engine on the target computer.
01-10-2014 05:53 PM
thank you altenbach .....my problem is solved