I have written a program for the analysis of Scanning Transmission X-ray Microscope (STXM) data which is pretty popular with users and is distributed in the form of a LabVIEW executable. I would like to add the ability to read HDF5 files to it. However, I can't seem to get a simple executable to work. When I try to make an executable out of the simple-write.vi example and run it, it dies with error 7 :Call Library Function Node in H5F.lvlib:H5Fopen.vi:6750001->simple-write.vi, even when I put the executable in the same folder as the source. It it possible to build an executable with this library?
Matthew Marcus
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
The DLLs need to be in a subdirectory called "data" relative to the application EXE. I believe this is standard practice with LabVIEW compiled applications, although for various compatibility reasons LabVIEW doesn't correctly locate the DLLs automatically during the build process and you have to copy them manually.
Since the code looks for this "data" directory, you're getting file-not-found in the CLN. Make sure to copy all the DLL dependencies as well to avoid load errors.
Cheers,
Martijn
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have written a program for the analysis of Scanning Transmission X-ray Microscope (STXM) data which is pretty popular with users and is distributed in the form of a LabVIEW executable. I would like to add the ability to read HDF5 files to it. However, I can't seem to get a simple executable to work. When I try to make an executable out of the simple-write.vi example and run it, it dies with error 7 :Call Library Function Node in H5F.lvlib:H5Fopen.vi:6750001->simple-write.vi, even when I put the executable in the same folder as the source. It it possible to build an executable with this library?
Matthew Marcus
Hi,
The DLLs need to be in a subdirectory called "data" relative to the application EXE. I believe this is standard practice with LabVIEW compiled applications, although for various compatibility reasons LabVIEW doesn't correctly locate the DLLs automatically during the build process and you have to copy them manually.
Since the code looks for this "data" directory, you're getting file-not-found in the CLN. Make sure to copy all the DLL dependencies as well to avoid load errors.
Cheers,
Martijn