05-30-2016 03:14 PM
Hello: I have an application running in LabView 2014 that creates and reads multiple 3D arrays (25 X 8 X6) to and from binary files. Works fine in the Development Environment. Problem is that now I need to create a Build (stand alone ) for the client. Binary File functions do not seem to work. Any help or guidance would be apprciated.
Solved! Go to Solution.
05-30-2016 03:30 PM
What errors or problems come up when you try to do this? Creating a debuggable executable might help you figure out exactly what isn't working.
05-30-2016 03:44 PM
You likely have pathing issues. Take Jacobson's advice and see what error pops up
05-30-2016 04:48 PM
05-30-2016 07:31 PM
I've had no problem running exactly the same code in Development and Build mode and reading and writing multiple Binary Files. As others have noted, however, the file paths are specified by absolute paths (the User is asked to choose a Folder for saving the data using a (hmm, what do you call the file/folder-like browser?) thing as the starting folder, and building the file name according to some rules (such as the (unique) name of the Experiment, possibly made unique by encoding a File Number, a Date/Time string, etc. The point is that regardless of where the code lives, the total data file name is not related to the file location of the code).
Bob Schor
05-31-2016 01:30 AM
@Dboucher wrote:Hello: I have an application running in LabView 2014 that creates and reads multiple 3D arrays (25 X 8 X6) to and from binary files. Works fine in the Development Environment. Problem is that now I need to create a Build (stand alone ) for the client. Binary File functions do not seem to work. Any help or guidance would be apprciated.
What do you mean by "do not seem to work"?
Do you get an error? If so, what does it say?
Do they give different results to what is expected?
Do they just not run at all? If not, what about the rest of the code?
05-31-2016 07:51 AM
Thanks for all of the rapid responses. In short, I use the Open/Create/Replace command to create the binary files during an initialization routine. These files contain the 3 D arrays of data, which are then read and modified during the main .vi. In the Development enviornment all is fine and the system runs well. In the stand alone, the system runs through the initiailization but the binary files are not created, so later reads do not happen
05-31-2016 07:57 AM
Try running the executable as an administrator
05-31-2016 08:08 AM
05-31-2016 09:31 AM
No errors thrown. When I halt the main .vi execution during the initialization stage, the binary files are nowhere to be found. If I let the program run to completeion. The files appear on the drive. Is it possible that the binary files are created in virtual memory during the initialize routine and only saved to disk after the program completes its final write to file (binary write and close).