10-30-2006 02:27 PM
10-30-2006 03:07 PM
The most likely reason is that you're building the path to the file using the path of the VI. When building a VI into an EXE, the EXE is treated as a directory, so the VI path is c:\....exe\VINAME.vi.
You can get around this by using a while loop to strip the path until you get a directory (using the File\Folder Info VI) or you can use the property Application.Kind to know whether you're running in LV or the exe and perform an extra strip. Placing a path indicator to see the actual path of the file should help you with this.
If this didn't help you, I suggest you post your code.
10-30-2006 03:50 PM
Thank you for responding so quickly!
I left out a couple of pieces of info that you may find important. I moved the exe file to a laptop for runtime operation. I thought that maybe this had something to do with it.
I also have built a second utility that also creates a file and dumps data into it. This app works ok as built. if you have any other suggestions, please post them.
I will try your suggestions as I need to rebuild. But the code is rather large to make too many alterations this late in my game.
Thanks again for your help! It's greatly appreciated!
11-01-2006 01:30 PM
I am still unable to resolve this issue. Please help!
As suggested, I have added an indicator to display the filename and path to see if it is being created where I want it.
The path is correct but my filenaming convention is not working as it did before build.
Example: My SubVI takes field input to build the filename. i.e. a-1234 and concatenates with root directory (c:\) and .txt.
Although the indicator displays only part of the filename unconcatenated. i.e. C:\a-123 and no extension, the partial filename and data never make it to
the root directory.
Any help is greatly appreciated!
11-01-2006 01:47 PM
First, make the indicator big enough to display the entire path. I suspect that this may help you see the problem.
Second, I suggest you use the Build Path VI instead of string concatenation.
Third, if you're still having problems, add more debugging indicators. Build in the ability to single step through the code to be able to see where the problem occurs.
If all this still doesn't help, at least upload an image of the code and what the FP with the debugging information looks like.
11-06-2006 08:35 AM
This issue has been resolved! Thank you for all your help! Through your suggestions I have identified my problem.
It turned out that some idiot locked up some paths on the laptop for security reasons making the root directory inaccessible.
I have removed all file write restrictions and I am all set.
Thanks Again very much!