LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

I cant get sounds or videos after I've built my application

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

print screen.jpg

0 Kudos
Message 1 of 4
(2,447 Views)

Is the video still in the same folder as your exe?

Cory K
Message 2 of 4
(2,442 Views)

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.

 

Message 3 of 4
(2,431 Views)

Thank you very much for your help.

 

I have tried your solutions and it works....!!!! yihoooo Smiley Happy

 

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

 

 

 

   

0 Kudos
Message 4 of 4
(2,402 Views)