‎07-04-2008 01:43 PM
I am using Lab View 8.0 to write a program and I have some suppot files such as JPG pictures, pdf files and (.wav) audio files that I use in the program.
For Example:
I have made a ‘Help’ button in the program. If the user clicks the button, in my block diagram I have the pointer/path going to C:\Program Files\SCUorderSupport\Help Pics\Pic2.jpg. I basically have set the default value of the ‘path’ to that location so everytime the user presses the help button, that picture comes up on the front panel.
I have similar paths for audio files (.wav) and pdf files when the user clicks certain buttons on the Front Panel.
I tried to generate executables of the program to provide it to the intender users. But when the user runs the program in his computer, how will the program find those support (pictures and audio files) files in his folders? The program in not responding to those buttons in the executable.
Could I get some steps to do this? I have never made an executable before, so maybe I am missing something!!
Thanks.
‎07-04-2008 01:54 PM
Two things:
1) yes, you can and should include the support files as part of building your executable.
2) how did you code the path? is it hardcoded? or relative to the location of the installed executable?
R
‎07-04-2008 02:01 PM
‎07-04-2008 02:07 PM
I guess I am missing something…
Is there any place I can find a procedure to convert my regular LabView8.0 program into an executable that also shows the steps needed to perform my previous question about the support files?
I might not be performing the entire process correctly, as I have never done this before.
‎07-04-2008 04:26 PM
Below are a couple of thread that discuss a similar subject.
http://forums.ni.com/ni/board/message?board.id=170&thread.id=307766
http://forums.ni.com/ni/board/message?board.id=170&message.id=149642
‎07-04-2008 05:24 PM
I seem to have tried everything. Here is what I did:
1. I created a new Project.
2. I added the VI to it.
3. I didn’t see any support files in the project tree, so I right clicked and added the jpg and pdf support files.
4. I created a new application.
5. In the Source Files, I gave it the correct startup VI, and the support pdf and jpg files.
6. I built the application.
7. I created an installer.
8. In the source files, I added the application and the support files (pdf,jpg) from the tree into the destination area.
9. I built the installer.
10. I ran the installer in the user’s computer.
Here is the issue:
In my labview program I have the path for the jpg file directed to C:\Program Files\SCUorderSupport\Help Pics\Pic2.jpg in my computer. But in the user’s computer he has the Pic2.jpg file loaded in a different folder after running the installer. So when the user runs the program and presses the button on the front panel to pop up the Pic2.jpg, he gets an error since the program cannot find that path in the user’s computer.
Am I doing something wrong!!
‎07-04-2008 06:34 PM
‎07-04-2008 07:05 PM
I tried doing that... it didnt work...
When the user runs the executable on his computer, my program is looking for Pic2,jpg in C:\Program Files\SCUorderSupport\Help Pics\Pic2.jpg. But he doesnt have a folder like this in his computer. I tried changing the name of the folder in the destination area to the path name. Folder names dont take '\'. Do I need to change the path name in my program to something else? How does lab view executable open a file that is no a VI in any application, without having to load the support files in the exact same folders on the user's computer replicating my computer?
‎07-05-2008 10:26 AM
‎07-05-2008 12:55 PM
Thanks a ton for your help 🙂
When generating the installer, I didn’t ensure the installation was taking place in the correct destination.
Thanks Again!