10-05-2010 06:05 AM
Hi there,
I've written a piece of code (using 8.6) where I've refered to a video file (.avi) using "Curren VI's Path, Strip Path an d Build Path VIs". The application works fine before building it. However, when the application is built to be an .exe file the video file is not read.
Could you please tell me what Im doing wrong here?
Thanks for your help
10-05-2010 06:16 AM
Is the video still in the same folder as your exe?
10-05-2010 06:39 AM
Hi,
I guess, you've made typical error... Current VI's path varies based on whether the VI is running in the LabVIEW development environment or in a stand-alone application.
Read this KB: Why Does My Executable Not Work When Using the Current VI's Path Constant?
Andrey.
10-06-2010 04:05 AM
Thank you very much for your help.
I have tried your solutions and it works....!!!! yihoooo
The paths varies based on whether the VI is running in the Labview developement environment or in a stand-alone application. Therefore they have to be stripped differently depending on where they are run from. To fix my problem, I've used the method described in the knowledge base document (see link above).
However the video or sound files have to be included in the same folder as the .exe